2011-08-09 33 views
2

Linuxシステム(Mint-Linuxディストリビューション)でrvmを使用してruby1.9.2をインストールしようとしていますが、デバッグできないエラーがあります。これは、私がinstallコマンドを実行したときに表示されるエラーです。ruby​​1.9.2のインストール中に問題が発生しました

$ rvm install 1.9.2 
Installing Ruby from source to: /home/nnn/.rvm/rubies/ruby-1.9.2-p290, this may take a while depending on your cpu(s)... 

ruby-1.9.2-p290 - #fetching 
ruby-1.9.2-p290 - #extracted to /home/nnn/.rvm/src/ruby-1.9.2-p290 (already extracted) 
Fetching yaml-0.1.4.tar.gz to /home/nnn/.rvm/archives 
Extracting yaml-0.1.4.tar.gz to /home/nnn/.rvm/src 
Configuring yaml in /home/nnn/.rvm/src/yaml-0.1.4. 
Compiling yaml in /home/nnn/.rvm/src/yaml-0.1.4. 
Installing yaml to /home/nnn/.rvm/usr 

ruby-1.9.2-p290 - #configuring 
ERROR: Error running ' ./configure --prefix=/home/nnn/.rvm/rubies/ruby-1.9.2-p290 --enable-shared --disable-install-doc --with-libyaml-dir=/home/nnn/.rvm/usr ', 
please read /home/nnn/.rvm/log/ruby-1.9.2-p290/configure.log 
ERROR: There has been an error while running configure. Halting the installation. 

configure.logファイルには、次のエラーがあります。

./configure --prefix=/home/nnn/.rvm/rubies/ruby-1.9.2-p290 --enable-shared --disable-install-doc --with-libyaml-dir=/home/nnn/.rvm/usr 
configure: WARNING: unrecognized options: --with-libyaml-dir 
configure: error: could not determine MAJOR number from version.h 

私を助けてもらえますか?

おかげで、あなたは 'は-libyaml-dirの' noオプションが実際に存在しないことがわかります

./configure --help 

を実行する場合

答えて

2

、それはRubyのメインconfigureスクリプトでサポートされていません。

これらの「と-XXX-dirの」パラメータは、多くの場合、あなたがこの問題を回避するソリューションは、APT-使用libyamlインストールすることですあなたのケースでは

ruby extconf.rb --with-libimportantforextension-dir=... 

を実行してMakefileを作成する拡張のコンパイル、中に使用されています取得:

sudo apt-get install libyaml 

RVMは、おそらくそれが既にインストールされていることを理解するであろうと、あなたはもうあなたが現在取得エラーを受け取るべきではありませんので、カスタムの場所にそれをダウンロードしてインストールしようとしません。この道を。

+0

"with-xxx-dir"の構文はどこから来ますか?それはルビーの一部ですか? –

関連する問題