每当我更新操作系统时,我都会遇到Ruby和Jekyll的问题。当前操作系统:OS X,10.10.2。当我尝试构建我的网站时,这是我得到的错误:
$gem list
*** LOCAL GEMS ***
bigdecimal (1.2.7, 1.2.4)
blankslate (2.1.2.4)
bundler (1.9.4, 1.6.1)
bundler-unload (1.0.2)
celluloid (0.16.0)
classifier-reborn (2.0.3)
coffee-script (2.4.1)
coffee-script-source (1.9.1.1)
colorator (0.1)
execjs (2.5.2)
executable-hooks (1.3.2, 1.3.1)
fast-stemmer (1.0.2)
ffi (1.9.8)
gem-wrappers (1.2.7, 1.2.4)
hitimes (1.2.2)
io-console (0.4.2)
jekyll (2.5.3)
jekyll-coffeescript (1.0.1)
jekyll-gist (1.2.1)
jekyll-paginate (1.1.0)
jekyll-sass-converter (1.3.0)
jekyll-watch (1.2.1)
json (1.8.1)
kramdown (1.6.0)
liquid (2.6.2)
listen (2.10.0)
mercenary (0.3.5)
minitest (5.6.0, 4.7.5)
parslet (1.5.0)
posix-spawn (0.3.11)
power_assert (0.2.3)
psych (2.0.13, 2.0.3)
pygments.rb (0.6.3)
rake (10.4.2, 10.1.0)
rb-fsevent (0.9.4)
rb-inotify (0.9.5)
rdoc (4.2.0, 4.1.0)
redcarpet (3.2.3)
rubygems-bundler (1.4.4, 1.4.3)
rvm (1.11.3.9)
safe_yaml (1.0.4)
sass (3.4.13)
test-unit (3.0.9, 2.1.1.0)
timers (4.0.1)
toml (0.1.2)
yajl-ruby (1.2.1)
$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 2.4.6
- RUBY VERSION: 2.1.1 (2014-02-24 patchlevel 76) [x86_64-darwin12.0]
- INSTALLATION DIRECTORY: /Users/dafnapresler/.rvm/gems/ruby-2.1.1
- RUBY EXECUTABLE: /Users/dafnapresler/.rvm/rubies/ruby-2.1.1/bin/ruby
- EXECUTABLE DIRECTORY: /Users/dafnapresler/.rvm/gems/ruby-2.1.1/bin
- SPEC CACHE DIRECTORY: /Users/dafnapresler/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-12
- GEM PATHS:
- /Users/MyName/.rvm/gems/ruby-2.1.1
- /Users/MyName/.rvm/gems/ruby-2.1.1@global
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /Users/MyName/.rvm/gems/ruby-2.1.1/bin
- /Users/MyName/.rvm/gems/ruby-2.1.1@global/bin
- /Users/MyName/.rvm/rubies/ruby-2.1.1/bin
- /usr/local/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin
- /Users/MyName/.rvm/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin
- /usr/local/bin
- /Users/MyName/.rvm/bin
- /Users/MyName/bin
我尝试卸载jekyll,ruby,rvm并重新安装。
我的宝石列表&宝石环境:
$ which jekyll
/Users/MyName/.rvm/gems/ruby-2.1.1/bin/jekyll
$ which gem
/Users/MyName/.rvm/rubies/ruby-2.1.1/bin/gem
$ which ruby
/Users/MyName/.rvm/rubies/ruby-2.1.1/bin/ruby
以下是我的装置:
show parameter max_string_size
会喜欢任何让我摆脱困境的建议。
答案 0 :(得分:0)
我建议使用Bundler管理应用程序的依赖项。
您可以使用gem安装bundler。如果存在,请删除Gemfile.lock
文件。然后运行该命令以检查并修复依赖项:
> gem install bundler
> rm Gemfile.lock
> bundle install