2011-09-26 3 views
0

Ruby Mine에서 폴더 (오픈 디렉토리)를 가져 오려고하는데 "누락 된 보석 설치"라고 말하면 매번 클릭하여 설치하고 다시 동일한 오류가 발생합니다. Mac OS X 10.7을 사용하고 있습니다. 왜 그렇게에RubyMine에 요리 책 설치

/Users/Vinisa/.rvm/rubies/ree-1.8.7-2011.03/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/bin/bundle install 
Fetching source index for http://rubygems.org/ 
Using rake (0.9.2) 
Using multi_json (1.0.3) 
Using activesupport (3.1.0) 
Using bcrypt-ruby (3.0.1) 
Using builder (3.0.0) 
Using i18n (0.6.0) 
Using activemodel (3.1.0) 
Using erubis (2.7.0) 
Using rack (1.3.2) 
Using rack-cache (1.0.3) 
Using rack-mount (0.8.3) 
Using rack-test (0.6.1) 
Using hike (1.2.1) 
Using tilt (1.3.3) 
Using sprockets (2.0.0) 
Using actionpack (3.1.0) 
Using mime-types (1.16) 
Using polyglot (0.3.2) 
Using treetop (1.4.10) 
Using mail (2.3.0) 
Using actionmailer (3.1.0) 
Using arel (2.2.1) 
Using tzinfo (0.3.29) 
Using activerecord (3.1.0) 
Using activeresource (3.1.0) 
Using ansi (1.3.0) 
Using bundler (1.0.18) 
Installing nokogiri (1.5.0) with native extensions /Users/Vinisa/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/rubygems/installer.rb:551:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError) 

     /Users/Vinisa/.rvm/rubies/ree-1.8.7-2011.03/bin/ruby extconf.rb 
checking for libxml/parser.h... yes 
checking for libxslt/xslt.h... yes 
checking for libexslt/exslt.h... yes 
checking for iconv_open() in iconv.h... no 
checking for iconv_open() in -liconv... no 
----- 
libiconv is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies. 
----- 
*** extconf.rb failed *** 
Could not create Makefile due to some reason, probably lack of 
necessary libraries and/or headers. Check the mkmf.log file for more 
details. You may need configuration options. 

Provided configuration options: 
    --with-opt-dir 
    --without-opt-dir 
    --with-opt-include 
    --without-opt-include=${opt-dir}/include 
    --with-opt-lib 
    --without-opt-lib=${opt-dir}/lib 
    --with-make-prog 
    --without-make-prog 
    --srcdir=. 
    --curdir 
    --ruby=/Users/Vinisa/.rvm/rubies/ree-1.8.7-2011.03/bin/ruby 
    --with-zlib-dir 
    --without-zlib-dir 
    --with-zlib-include 
    --without-zlib-include=${zlib-dir}/include 
    --with-zlib-lib 
    --without-zlib-lib=${zlib-dir}/lib 
    --with-iconv-dir 
    --with-iconv-include 
    --without-iconv-include=${iconv-dir}/include 
    --with-iconv-lib 
    --without-iconv-lib=${iconv-dir}/lib 
    --with-xml2-dir 
    --without-xml2-dir 
    --with-xml2-include 
    --without-xml2-include=${xml2-dir}/include 
    --with-xml2-lib 
    --without-xml2-lib=${xml2-dir}/lib 
    --with-xslt-dir 
    --without-xslt-dir 
    --with-xslt-include 
    --without-xslt-include=${xslt-dir}/include 
    --with-xslt-lib 
    --without-xslt-lib=${xslt-dir}/lib 
    --with-iconvlib 
    --without-iconvlib 


Gem files will remain installed in /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/nokogiri-1.5.0 for inspection. 
Results logged to /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/nokogiri-1.5.0/ext/nokogiri/gem_make.out 
    from /Users/Vinisa/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/rubygems/installer.rb:504:in `each' 
    from /Users/Vinisa/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/rubygems/installer.rb:504:in `build_extensions' 
    from /Users/Vinisa/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/rubygems/installer.rb:180:in `install' 
    from /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/bundler-1.0.18/lib/bundler/source.rb:101:in `install' 
    from /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/bundler-1.0.18/lib/bundler/rubygems_integration.rb:78:in `preserve_paths' 
    from /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/bundler-1.0.18/lib/bundler/source.rb:91:in `install' 
    from /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/bundler-1.0.18/lib/bundler/installer.rb:58:in `run' 
    from /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/bundler-1.0.18/lib/bundler/rubygems_integration.rb:93:in `with_build_args' 
    from /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/bundler-1.0.18/lib/bundler/installer.rb:57:in `run' 
    from /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/bundler-1.0.18/lib/bundler/installer.rb:49:in `run' 
    from /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/bundler-1.0.18/lib/bundler/installer.rb:8:in `install' 
    from /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/bundler-1.0.18/lib/bundler/cli.rb:220:in `install' 
    from /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/bundler-1.0.18/lib/bundler/vendor/thor/task.rb:22:in `send' 
    from /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/bundler-1.0.18/lib/bundler/vendor/thor/task.rb:22:in `run' 
    from /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/bundler-1.0.18/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task' 
    from /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/bundler-1.0.18/lib/bundler/vendor/thor.rb:263:in `dispatch' 
    from /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/bundler-1.0.18/lib/bundler/vendor/thor/base.rb:386:in `start' 
    from /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/bundler-1.0.18/bin/bundle:13 
    from /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/bin/bundle:19:in `load' 
    from /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/bin/bundle:19 
    from -e:1:in `load' 
    from -e:1 

Process finished with exit code 1 

어떤 생각 : 여기

오류인가?

novigiri를 설치 한 후, 나는 다음과 같은 오류가 점점 오전 :

/Users/Vinisa/.rvm/rubies/ree-1.8.7-2011.03/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Assorted Mix/OOLS'11/OOLS-Lect/barik-csc517_cookbook3-325ff9f/script/rails server -b 0.0.0.0 -p 3000 -e development 
=> Booting WEBrick 
=> Rails 3.1.0 application starting in development on http://0.0.0.0:3000 
=> Call with -d to detach 
=> Ctrl-C to shutdown server 
/Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:234:in `load': /Assorted Mix/OOLS'11/OOLS-Lect/barik-csc517_cookbook3-325ff9f/config/initializers/session_store.rb:3: syntax error, unexpected ':', expecting $end (SyntaxError) 
...sion_store :cookie_store, key: '_cookbook3_session' 
          ^
    from /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:234:in `load' 
    from /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:223:in `load_dependency' 
    from /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:640:in `new_constants_in' 
    from /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:223:in `load_dependency' 
    from /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:234:in `load' 
    from /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/railties-3.1.0/lib/rails/engine.rb:555 
    from /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/railties-3.1.0/lib/rails/engine.rb:554:in `each' 
    from /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/railties-3.1.0/lib/rails/engine.rb:554 
    from /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/railties-3.1.0/lib/rails/initializable.rb:25:in `instance_exec' 
    from /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/railties-3.1.0/lib/rails/initializable.rb:25:in `run' 
    from /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/railties-3.1.0/lib/rails/initializable.rb:50:in `run_initializers' 
    from /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/railties-3.1.0/lib/rails/initializable.rb:49:in `each' 
    from /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/railties-3.1.0/lib/rails/initializable.rb:49:in `run_initializers' 
    from /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/railties-3.1.0/lib/rails/application.rb:92:in `initialize!' 
    from /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/railties-3.1.0/lib/rails/railtie/configurable.rb:30:in `send' 
    from /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/railties-3.1.0/lib/rails/railtie/configurable.rb:30:in `method_missing' 
    from /Assorted Mix/OOLS'11/OOLS-Lect/barik-csc517_cookbook3-325ff9f/config/environment.rb:5 
    from /Assorted Mix/OOLS'11/OOLS-Lect/barik-csc517_cookbook3-325ff9f/config.ru:4:in `require' 
    from /Assorted Mix/OOLS'11/OOLS-Lect/barik-csc517_cookbook3-325ff9f/config.ru:4 
    from /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/rack-1.3.2/lib/rack/builder.rb:51:in `instance_eval' 
    from /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/gems/rack-1.3.2/lib/rack/builder.rb:51:in `initialize' 
    from /Assorted Mix/OOLS'11/OOLS-Lect/barik-csc517_cookbook3-325ff9f/config.ru:1:in `new' 
    from /Assorted Mix/OOLS'11/OOLS-Lect/barik-csc517_cookbook3-325ff9f/config.ru:1 
Exiting 

Process finished with exit code 1 

감사합니다!

+1

네이티브 파트가있는 젬을 설치하려고하므로, 컴파일해야합니다. libiconv가 라이브러리 경로에 있는지 확인 했습니까? http://nokogiri.org/tutorials/installing_nokogiri.html 종속성을 확인 했습니까? – mliebelt

답변

1

Nokogiri 보석을 설치하지 못했습니다.

당신이 명령 라인으로 프로젝트를 시작할 수 Why does installing Nokogiri on Mac OS fail with libiconv is missing?

+0

감사합니다. – Ava

+0

안녕하세요, novigiri를 설치 한 후 내 질문을 편집했습니다. 다른 오류가 나타납니다. 그것은 구문 오류를 말합니다, 나는 그것을 고치려고했지만 지금은 더 많은 오류를 던지고있다. – Ava

0

@ 맥 OS 용 수동으로 설치하십시오? 그것은 당신의 루비 버전과 관련 될 수 있습니다.

이 내용을 확인하십시오. file과 동일한 구문을 사용하는지 확인하십시오.