western-bioinfo / western-bioinfo.github.io

GitHub Pages repository for western-med-bioinfo
https://western-bioinfo.github.io/
1 stars 2 forks source link

dev environment failed to build on Aziraphale #24

Closed ArtPoon closed 2 months ago

ArtPoon commented 2 months ago
art@aziraphale:~/git/western-bioinfo.github.io$ bundle exec jekyll build
Configuration file: /home/art/git/western-bioinfo.github.io/_config.yml
To use retry middleware with Faraday v2.0+, install `faraday-retry` gem
  Dependency Error: Yikes! It looks like you don't have jekyll-commonmark-ghpages or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'incompatible library version - /home/art/git/western-bioinfo.github.io/vendor/bundle/ruby/3.0.0/gems/commonmarker-0.23.10/lib/commonmarker/commonmarker.so' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/! 
jekyll 3.9.3 | Error:  jekyll-commonmark-ghpages

Seems like the problem was that PATH got restored when I rebooted the system:

art@aziraphale:~/git/western-bioinfo.github.io$ which ruby
/usr/bin/ruby
art@aziraphale:~/git/western-bioinfo.github.io$ rbenv local 3.0.0
art@aziraphale:~/git/western-bioinfo.github.io$ which ruby
/usr/bin/ruby
art@aziraphale:~/git/western-bioinfo.github.io$ export PATH="$HOME/.rbenv/shims:$PATH"
art@aziraphale:~/git/western-bioinfo.github.io$ rbenv local 3.0.0
art@aziraphale:~/git/western-bioinfo.github.io$ which ruby
/home/art/.rbenv/shims/ruby
art@aziraphale:~/git/western-bioinfo.github.io$ bundle exec jekyll build
Configuration file: /home/art/git/western-bioinfo.github.io/_config.yml
To use retry middleware with Faraday v2.0+, install `faraday-retry` gem
            Source: /home/art/git/western-bioinfo.github.io
       Destination: /home/art/git/western-bioinfo.github.io/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
                    done in 1.6 seconds.
 Auto-regeneration: disabled. Use --watch to enable.
ArtPoon commented 2 months ago

Added export statement to ~/.profile