2011-09-24 1 views
1

私はRuby on Railsを学びたいと考えています。 Ruby Mineを購入し、Ubuntuにインストールしました。私は、インストール手順に従って、私はルビーマインでの私の最初のプロジェクトをデバッグしようとしたとき、私はこれを取得:RubyMineでエラーを受け取る

Error running Development: test001: Failed to install gems. 

Following gems were not installed: linecache19 (0.5.12): Error installing linecache19: ERROR: Failed to build gem native extension. /home/stormkiernan/.rvm/rubies/ruby-1.9.2-p290/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: --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=/home/stormkiernan/.rvm/rubies/ruby-1.9.2-p290/bin/ruby /home/stormkiernan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require': no such file to load -- openssl (LoadError) from /home/stormkiernan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from /home/stormkiernan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/https.rb:92:in ' from /home/stormkiernan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from /home/stormkiernan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from /home/stormkiernan/.rvm/gems/[email protected]/gems/ruby_core_source-0.1.5/lib/contrib/uri_ext.rb:11:in ' from /home/stormkiernan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from /home/stormkiernan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from /home/stormkiernan/.rvm/gems/[email protected]/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb:6:in ' from rubygems/custom_require>:33:in require' from rubygems/custom_require>:33:in rescue in require' from rubygems/custom_require>:29:in require' from extconf.rb:2:in ' Gem files will remain installed in /home/stormkiernan/.rvm/gems/[email protected]/gems/linecache19-0.5.12 for inspection. Results logged to /home/stormkiernan/.rvm/gems/[email protected]/gems/linecache19-0.5.12/ext/trace_nums/gem_make.out /home/stormkiernan/Downloads/RubyMine-3.2.4/rb/gems/ruby-debug-base19x-0.11.30.pre2.gem: Error installing ruby-debug-base19x-0.11.30.pre2.gem: ERROR: Failed to build gem native extension. /home/stormkiernan/.rvm/rubies/ruby-1.9.2-p290/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: --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=/home/stormkiernan/.rvm/rubies/ruby-1.9.2-p290/bin/ruby /home/stormkiernan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require': no such file to load -- openssl (LoadError) from /home/stormkiernan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from /home/stormkiernan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/https.rb:92:in ' from /home/stormkiernan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from /home/stormkiernan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from /home/stormkiernan/.rvm/gems/[email protected]/gems/ruby_core_source-0.1.5/lib/contrib/uri_ext.rb:11:in ' from /home/stormkiernan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from /home/stormkiernan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from /home/stormkiernan/.rvm/gems/[email protected]/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb:6:in ' from rubygems/custom_require>:33:in require' from rubygems/custom_require>:33:in rescue in require' from rubygems/custom_require>:29:in require' from extconf.rb:2:in ' Gem files will remain installed in /home/stormkiernan/.rvm/gems/[email protected]/gems/linecache19-0.5.12 for inspection. Results logged to /home/stormkiernan/.rvm/gems/[email protected]/gems/linecache19-0.5.12/ext/trace_nums/gem_make.out

さて、直前にこのエラーには、私はと促されました:

The gem ruby-debug-base19x required by the debugger is not currently installed. Would you like to install it?

私は答えました"はい"、それはソフトウェアが必要とするどんな必要な依存関係もダウンロードしようとしました(そして私は失敗したと思います)。ウィンドウのタイトルは "Install Gems"でした。このウィンドウが閉じられた直後、私は上記のエラーを受けました。

何をする必要がありますか?

編集:ルビーのEnv

RubyGems Environment: 
    - RUBYGEMS VERSION: 1.8.10 
    - RUBY VERSION: 1.9.2 (2011-07-09 patchlevel 290) [x86_64-linux] 
    - INSTALLATION DIRECTORY: /home/stormkiernan/.rvm/gems/ruby-1.9.2-p290 
    - RUBY EXECUTABLE: /home/stormkiernan/.rvm/rubies/ruby-1.9.2-p290/bin/ruby 
    - EXECUTABLE DIRECTORY: /home/stormkiernan/.rvm/gems/ruby-1.9.2-p290/bin 
    - RUBYGEMS PLATFORMS: 
    - ruby 
    - x86_64-linux 
    - GEM PATHS: 
    - /home/stormkiernan/.rvm/gems/ruby-1.9.2-p290 
    - /home/stormkiernan/.rvm/gems/[email protected] 
    - GEM CONFIGURATION: 
    - :update_sources => true 
    - :verbose => true 
    - :benchmark => false 
    - :backtrace => false 
    - :bulk_threshold => 1000 
    - REMOTE SOURCES: 
    - http://rubygems.org/ 

編集#2を示すエラー:あなたが使用している場合の

sudo gem install ruby-debug-base19x 

$ gem install ruby-debug-base19x Fetching: linecache19-0.5.12.gem (100%) Building native extensions. This could take a while... ERROR: Error installing ruby-debug-base19x: ERROR: Failed to build gem native extension.

/home/stormkiernan/.rvm/rubies/ruby-1.9.2-p290/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: --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=/home/stormkiernan/.rvm/rubies/ruby-1.9.2-p290/bin/ruby :29:in require': no such file to load -- ruby_core_source (LoadError) from <internal:lib/rubygems/custom_require>:29:in require' from extconf.rb:2:in `'

Gem files will remain installed in /home/stormkiernan/.rvm/gems/ruby-1.9.2-p290/gems/linecache19-0.5.12 for inspection. Results logged to /home/stormkiernan/.rvm/gems/ruby-1.9.2-p290/gems/linecache19-0.5.12/ext/trace_nums/gem_make.out

答えて

0

代わりに、コマンドプロンプトから次を実行します。 rvm(推奨):

gem install ruby-debug-base19x 

EDITED:この最初のタイプ:rvm --default use 1.9.2

+0

エラー:Gemを実行中...(Gem :: FilePermissionError) /var/lib/gems/1.8ディレクトリへの書き込み権限がありません。私はスーパーユーザモードで同じことをやってみましたが、それは私に言った:エラー:ruby-debug-base19xのインストールエラー:linecache19はRubyバージョン> = 1.9.2を必要とします。これは私がRuby 1.9.2を正常にインストールするためにRVMを使用していた瞬間から可能ではありません... –

+0

宝石環境は何を示していますか? – jschorr

+0

rvm 1.9.2を試してください - デフォルトと上記の宝石をインストール – jschorr

3

私は同じ問題を抱えていたし、私はこれに出くわした前に非常に多くのオプションを試してみました: http://beginrescueend.com/packages/openssl/

$ rvm pkg install openssl 
$ rvm remove 1.9.2m 
$ rvm install 1.9.2 --with-openssl-dir=$rvm_path/usr 

これはlinecache19のrubydebug-19との問題を解決しますopensslの:

*** extconf.rb failed *** 
custom_require.rb:36:in `require': no such file to load -- openssl (LoadError) 
0

私はUbuntuの中で、次のコマンドを実行し、このエラーを解決してきました:

$ sudo apt-get install ruby-dev 
関連する問題