2012-07-09 3 views
1

aptosid (예 : debian sid)에 rvm 1.9.2가 설치된 번들러로 linecache19 gem을 설치하지 못했습니다.error linecache19 gem bundler rvm 설치

루비를 처음 사용했지만 레일과 보석 세트를 설치할 수있어서 루비 설치가 완전히 잘못 구성되지 않았습니다.

Installing linecache19 (0.5.12) with native extensions 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. 

     /home/caz/.rvm/rubies/ruby-1.9.2-p320/bin/ruby extconf.rb     
*** 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:             

/home/caz/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': no such file to load -- openssl (LoadError)    
ms/custom_require.rb:36:in `require'            
in `<top (required)>'                
ms/custom_require.rb:36:in `require' 
     from /home/caz/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' 
     from /home/caz/.rvm/gems/ruby-1.9.2-p320/gems/ruby_core_source-0.1.5/lib/contrib/uri_ext.rb:11:in `<top (required)>' 
     from /home/caz/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' 
     from /home/caz/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' 
     from /home/caz/.rvm/gems/ruby-1.9.2-p320/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb:6:in `<top (required)>' 
     from <internal:lib/rubygems/custom_require>:33:in `require' 
     from <internal:lib/rubygems/custom_require>:33:in `rescue in require' 
     from <internal:lib/rubygems/custom_require>:29:in `require' 
     from extconf.rb:2:in `<main>' 


Gem files will remain installed in /home/caz/.rvm/gems/ruby-1.9.2-p320/gems/linecache19-0.5.12 for inspection. 
Results logged to /home/caz/.rvm/gems/ruby-1.9.2-p320/gems/linecache19-0.5.12/ext/trace_nums/gem_make.out 
An error occured while installing linecache19 (0.5.12), and Bundler cannot continue. 
Make sure that `gem install linecache19 -v '0.5.12'` succeeds before bundling. 

나는 보통 제안 솔루션을 시도 :

내가 얻을 출력은 다음과 같다

나는 또한 성공없이 --force 옵션을 사용하여 시도
gem install ruby-debug19 -- --with-ruby-include=$rvm_path/src/ruby-1.9.2-p320 

에 따라 다음

Installing Gems without rvm, as root, with explicit version of ruby

난 사기꾼 출력에서보고 된 경로에 "1.9.1"의 존재에 의해 융합되었습니다. 이것이 데비안 루비 패키지의 숙취인지 내 문제의 근원인지 궁금합니다.

ps 이것은 모두 가장 작은 페더레이션 위키를 설치하는 데 도움이됩니다. 독자들이이 프로젝트를 살펴 보도록 권장합니다. 터미널에서

+0

libopenssl 패키지가 없거나 뭔가있을 수 있습니까? – rogerdpack

+0

아마도 여러분은 ruby-debug19를 포함 된 모든 것을 담고있는 디버거로 대체 할 필요가있을 것입니다. 이 질문에 내 대답보기 http://stackoverflow.com/a/10414984/773690 – iblue

+0

디버거를 설치하는 데 같은 문제가있었습니다. 결국 그것은 내 시스템 openssl 패키지 (이 단계는 필자가 필요하지 않음)를 제거하고 rvm openssl 패키지를 로컬에 설치하고 루비를 가리키는 것으로 해결되었습니다. 이 솔루션은 실제로 내가 질문에 좋아하는 게시물에 snwers 중 하나에 설명되어 있습니다 .... Duh! – maninalift

답변

2

rvm requirements

그것은

Additional Dependencies: 
# For Ruby/Ruby HEAD (MRI, Rubinius, & REE), install the following: 
    ruby: /usr/bin/apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion 

이 가서 명령을 복사하여 실행처럼 뭔가를 제공 할 것입니다 입력합니다. 루비 실행에 필요한 모든 의존성을 설치합니다.

+0

응답 해 주셔서 감사합니다. 나는 이미 이것을했다. 나는 이것을 언급 했어야했다. 그러나 나는 그 글을 쓸 때쯤에 나는 아주 좌절했다. 늦게 나는 내가 한 일에 대해 자세하게 설명 할 것이다. – maninalift

+0

정확하게 수정해야했습니다. Ruby 인터프리터가 이미 설치되어 있다면'rvm reinstall 1.9.3' 명령으로 그 명령을 따라 잡아야합니다. –

+0

예. 나는 사과해야한다, 나는 그것을 언급해야했다. – sohaibbbhatti