2012-01-22 20 views
1

OSX 10.7 LionにRails 3をインストールする際にこのエラーが発生します。 Rubyのバージョンは1.9.2p290です。私はすでにMySQLをインストールしており、完全に動作しています。MySQL GemとRails 3(Lion 10.7)のインストール

Building native extensions. This could take a while... 
ERROR: Error installing mysql: 
ERROR: Failed to build gem native extension. 

/Users/garethbarker/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb --with-mysql-dir=/usr/bin --with-mysql-lib=/usr/lib64/mysql 

checking for mysql_ssl_set()... no 
checking for rb_str_set_len()... yes 
checking for rb_thread_start_timer()... no 
checking for mysql.h... yes 
llvm-gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags 
*** 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 
--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/garethbarker/.rvm/rubies/ruby-1.9.2-p290/bin/ruby 
--with-mysql-config 
--without-mysql-config 


Gem files will remain installed in /Users/garethbarker/.rvm/gems/ruby-1.9.2-p290/gems/mysql-2.8.1 for inspection. 
Results logged to /Users/garethbarker/.rvm/gems/ruby-1.9.2-p290/gems/mysql-2.8.1/ext/mysql_api/gem_make.out 

答えて

0

私のライオンズのOSで同様の問題があることを思い出しました。これを試してみてください。私は〜/ .bash_profileの中に横たわっていることがわかりました。追加あなたの〜/ .bash_profileを:

export DYLD_LIBRARY_PATH=/usr/local/mysql/lib:$DYLD_LIBRARY_PATH 

または

export DYLD_LIBRARY_PATH=/usr/local/mysql/lib 
+0

が、私はそれらの両方を試みたと私はまだ同じエラー:( –

+0

Noooooooooooooooooを取得しています:P私がしようとするでしょう< – kikuchiyo

+0

Thanks Kikuchiyo :) –

関連する問題