Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in local install instructions #149

Open
jaraco opened this issue Sep 1, 2018 · 5 comments
Open

Error in local install instructions #149

jaraco opened this issue Sep 1, 2018 · 5 comments

Comments

@jaraco
Copy link
Contributor

jaraco commented Sep 1, 2018

I ran the local install instructions on a macOS 10.13 system with Ruby installed via Homebrew, but got the following error when trying to run the server:

python3statement.github.io feature/cherrypy $ jekyll serve -w
Traceback (most recent call last):
        10: from /usr/local/bin/jekyll:23:in `<main>'
         9: from /usr/local/bin/jekyll:23:in `load'
         8: from /usr/local/lib/ruby/gems/2.5.0/gems/jekyll-3.8.3/exe/jekyll:11:in `<top (required)>'
         7: from /usr/local/lib/ruby/gems/2.5.0/gems/jekyll-3.8.3/lib/jekyll/plugin_manager.rb:50:in `require_from_bundler'
         6: from /usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/bundler.rb:107:in `setup'
         5: from /usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/bundler/runtime.rb:26:in `setup'
         4: from /usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/bundler/runtime.rb:26:in `map'
         3: from /usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/forwardable.rb:229:in `each'
         2: from /usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/forwardable.rb:229:in `each'
         1: from /usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/bundler/runtime.rb:31:in `block in setup'
/usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/bundler/runtime.rb:313:in `check_for_activated_spec!': You have already activated rouge 3.2.1, but your Gemfile requires rouge 2.2.1. Prepending `bundle exec` to your command may solve this. (Gem::LoadError)
@jaraco
Copy link
Contributor Author

jaraco commented Sep 1, 2018

Seems the recommendation by the error message does work around the issue:

python3statement.github.io feature/cherrypy $ bundle exec jekyll serve -w
Configuration file: /Users/jaraco/code/public/python3statement.github.io/_config.yml
            Source: /Users/jaraco/code/public/python3statement.github.io
       Destination: /Users/jaraco/code/public/python3statement.github.io/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
                    done in 2.071 seconds.
 Auto-regeneration: enabled for '/Users/jaraco/code/public/python3statement.github.io'
    Server address: http://0.0.0.0:4000
  Server running... press ctrl-c to stop.

@jaraco
Copy link
Contributor Author

jaraco commented Sep 1, 2018

Here's the full install log.

@Carreau
Copy link
Member

Carreau commented Sep 1, 2018

Yeah I always use bundle with jekyll, I think we can update the instruction.
It is also pre-deployed on netlify so we could actually tell people: send a PR, and click on the preview link if you can't get it to work on your machine.

@Carreau
Copy link
Member

Carreau commented Sep 1, 2018

See #152, I'm not a ruby person, so invocationas are magics to me.

@avangmbp
Copy link

ຂ້ອຍແລ່ນຄໍາແນະນໍາການຕິດຕັ້ງທ້ອງຖິ່ນຢູ່ໃນລະບົບ macOS 10.13 ທີ່ມີ Ruby ຕິດຕັ້ງຜ່ານ Homebrew, ແຕ່ໄດ້ຮັບຂໍ້ຜິດພາດຕໍ່ໄປນີ້ເມື່ອພະຍາຍາມແລ່ນ server:

python3statement.github.io feature/cherrypy $ jekyll serve -w
Traceback (most recent call last):
        10: from /usr/local/bin/jekyll:23:in `<main>'
         9: from /usr/local/bin/jekyll:23:in `load'
         8: from /usr/local/lib/ruby/gems/2.5.0/gems/jekyll-3.8.3/exe/jekyll:11:in `<top (required)>'
         7: from /usr/local/lib/ruby/gems/2.5.0/gems/jekyll-3.8.3/lib/jekyll/plugin_manager.rb:50:in `require_from_bundler'
         6: from /usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/bundler.rb:107:in `setup'
         5: from /usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/bundler/runtime.rb:26:in `setup'
         4: from /usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/bundler/runtime.rb:26:in `map'
         3: from /usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/forwardable.rb:229:in `each'
         2: from /usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/forwardable.rb:229:in `each'
         1: from /usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/bundler/runtime.rb:31:in `block in setup'
/usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/bundler/runtime.rb:313:in `check_for_activated_spec!': You have already activated rouge 3.2.1, but your Gemfile requires rouge 2.2.1. Prepending `bundle exec` to your command may solve this. (Gem::LoadError)

#149 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants