2017-05-10 4 views
1

지킬의 로컬 설치에 Google 태그 관리자 젬을 추가하려고 시도했을 때 시작되었습니다.어떤 소스에서 public_suffix-2.0.4를 찾을 수 없습니다

A little background here, I'm using homebrew and rbenv.
My ruby version is 2.4.1 or at least I think it is.

주옥은 설치하지 않은 그 지킬 나에게이 메시지를주고 시작 후 : 나는

Rubygems 2.0.14.1 is not threadsafe, so your gems will be installed one at a time. Upgrade to Rubygems 2.1.0 or higher to enable parallel gem installation. 
Using public_suffix 2.0.4 
Using colorator 1.1.0 
Using ffi 1.9.14 
Using forwardable-extended 2.6.0 
Using sass 3.4.22 
Using rb-fsevent 0.9.8 
Using kramdown 1.12.0 
Using liquid 3.0.6 
Using mercenary 0.3.6 
Using rouge 1.11.1 
Using safe_yaml 1.0.4 
Using bundler 1.14.6 
Using addressable 2.5.0 
Using rb-inotify 0.9.7 
Using pathutil 0.14.0 
Using jekyll-sass-converter 1.4.0 
Using listen 3.0.8 
Using jekyll-watch 1.5.0 
Using jekyll 3.3.0 
Using jekyll-feed 0.8.0 
Bundle complete! 2 Gemfile dependencies, 20 gems now installed. 
Use `bundle show [gemname]` to see where a bundled gem is installed. 

그래서 : 실행 한 후

Could not find public_suffix-2.0.4 in any of the sources 
Run `bundle install` to install missing gems. 

을 나는이 오류가 '번들 설치' Rubygems를 업데이트하려고했습니다. 바보 나.

이 메시지

터미널에 보여 주었다 :

/usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/yaml.rb:5:in <top (required)>': It seems your ruby installation is missing psych (for YAML output). To eliminate this warning, please install libyaml and reinstall your ruby. /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in require': dlopen(/usr/local/lib/ruby/gems/2.4.0/gems/psych-2.2.4/lib/psych.bundle, 9): Library not loaded: /usr/local/opt/ruby/lib/libruby.2.4.0.dylib (LoadError) Referenced from: /usr/local/lib/ruby/gems/2.4.0/gems/psych-2.2.4/lib/psych.bundle Reason: image not found - /usr/local/lib/ruby/gems/2.4.0/gems/psych-2.2.4/lib/psych.bundle from /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in require' from /usr/local/lib/ruby/gems/2.4.0/gems/psych-2.2.4/lib/psych.rb:8:in ' from /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in require' from /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in require' from /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/yaml.rb:6:in <top (required)>' from /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in require' from /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in require' from /usr/local/lib/ruby/site_ruby/2.4.0/rubygems.rb:701:in load_yaml' from /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/config_file.rb:340:in load_file' from /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/config_file.rb:202:in initialize' from /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/gem_runner.rb:75:in new' from /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/gem_runner.rb:75:in do_configuration' from /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/gem_runner.rb:40:in run' from /usr/local/bin/gem:21:in '

가 나는 사제와 rbenv를 사용하고 언급 했습니까? 승인.

오늘 아침 Ruby를 다시 설치하고 (rbenv를 사용하여) 해당 버전을 사용하도록 rbenv에게 알려 줬습니다.

그래서 나는 나의 경로가 문제가 될 수 있다고 생각하지만, 나는이 내 경로의 내용이 있기 때문에 의심 파일 :

/Users/bgomes/.nvm/versions/node/v6.10.2/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin 

이것은 .bash_profile에의 내용이다 :

[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile 
test -e "${HOME}/.iterm2_shell_integration.bash" && source "${HOME}/.iterm2_shell_integration.bash" 
export export NVM_DIR="$HOME/.nvm" 
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm 
source ~/.nvm/nvm.sh 

그리고 이 .bashrc에의 내용이다 :

export NVM_DIR="$HOME/.nvm" 
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm 
source ~/.nvm/nvm.sh 

여기 결정적 아이디어를 사용할 수 있다면 밖으로 해요 요 ur 도움.

감사합니다.

답변

2

맞아요. 내 문제를 해결하는 방법은 루비의 자작 설치를 철저히하고, 심볼릭 링크를 제거한 다음, rvm을 설치하고 rvm을 통해 루비를 설치하는 것이 었습니다.

이 솔루션을 찾으려면 3 시간이 걸렸습니다.

¯ \ _ (ツ)) _/¯