handbook icon indicating copy to clipboard operation
handbook copied to clipboard

Issues running jekyll and bundler after ubuntu container instructions.

Open cd-champion-dev opened this issue 1 year ago • 0 comments

In the Ubuntu Container instructions you are told to add the $HOME/gems/bin to your path. Then you can optionally export them with apx. Doing so gives you an error, but does export it as apt_jekyll.

 WARNING  Another program with name `jekyll` already exists on host, exporting as `apt_jekyll`.                                                                                                      
 ▀ Exporting binary: jekyll. (0s)                                                                                                                                                                    
  ERROR   Error exporting binary: Error: Could not find a binary with name `jekyll` in $PATH. Nothing to export.

At this point running jekyll results in

bash: /home/<user>/gems/bin/jekyll: cannot execute: required file not found

With the correct way to run it using apt_jekyll or apx run jekyll. The rest of the documentation uses jekyll which exists, but errors out.

My current work around to get jekyll to work correctly is to add the gem bin to PATH in .bashrc, export jekyll as apt_jekyll, remove the gem bin from PATH in .bashrc, then rename apt_jekyll to jekyll.

cd-champion-dev avatar Jun 04 '23 03:06 cd-champion-dev