我有一個博客,我在jekyll中,我想在github頁面上發佈它。 從這裏參考: https://help.github.com/articles/using-jekyll-with-pages。 但在運行安裝包運行bundle安裝時未安裝public_suffix jekyll github-pages
Gem::InstallError: public_suffix requires Ruby version >= 2.0.
An error occurred while installing public_suffix (1.5.1), and Bundler cannot continue.
Make sure that `gem install public_suffix -v '1.5.1'` succeeds before bundling.
下面
我得到這個錯誤是我的寶石ENV 寶石ENV的細節:
RubyGems Environment:
- RUBYGEMS VERSION: 2.2.3
- RUBY VERSION: 2.1.6 (2015-04-13 patchlevel 336) [x86_64-linux-gnu]
- INSTALLATION DIRECTORY: /var/lib/gems/2.1.0
- RUBY EXECUTABLE: /usr/bin/ruby2.1
- EXECUTABLE DIRECTORY: /usr/local/bin
- SPEC CACHE DIRECTORY: /home/ashwin/.gem/specs
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /var/lib/gems/2.1.0
- /home/ashwin/.gem/ruby/2.1.0
- /usr/share/rubygems-integration/2.1.0
- /usr/share/rubygems-integration/2.1
- /usr/share/rubygems-integration/all
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /usr/local/heroku/bin
- /usr/local/sbin
- /usr/local/bin
- /usr/sbin
- /usr/bin
- /sbin
- /bin
- /usr/games
- /usr/local/games
錯誤:無法找到有效的寶石 'public_suffix'(= 1.5.1),這是爲什麼: 無法從https://rubygems.org/下載數據 - 沒有這樣的名稱(HTTPS:/ /api.rubygems.org/specs.4.8.gz) – Aswin
我也嘗試使用sudo gem install github-pages: 構建原生擴展。這可能需要一段時間... 錯誤:安裝github頁面時出錯: \t錯誤:無法構建gem本機擴展。在/usr/lib/ruby/include/ruby.h extconf /usr/bin/ruby2.1 extconf.rb mkmf.rb找不到紅寶石頭文件失敗,退出代碼1個 寶石文件將繼續安裝在/var/lib/gems/2.1.0/gems/fast-stemmer-1.0.2中進行檢查。 結果記錄到/var/lib/gems/2.1.0/extensions/x86_64-linux/2.1.0/fast-stemmer-1.0.2/gem_make.out – Aswin
我想我們有一個紅寶石的問題。我建議你使用rbenv(https://github.com/sstephenson/rbenv)並嘗試更新到像2.1.1這樣的上層ruby版本 –