我一直在嘗試整夜,到目前爲止,我一直無法編譯我的Debian測試64位系統上的紅寶石的MySQL寶石。在debian測試中破解的mysql gem?
我相信這是因爲我安裝了openssl v1.0.0庫。
這裏是我所得到的,當我嘗試安裝(使用RVM 1.14.7和Ruby 1.9.1p431):
gem install mysql
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/home/jarrett/.rvm/rubies/ruby-1.9.1-p431/bin/ruby extconf.rb
checking for mysql_ssl_set()... *** 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=/home/jarrett/.rvm/rubies/ruby-1.9.1-p431/bin/ruby
--with-mysql-config
--without-mysql-config
/home/jarrett/.rvm/rubies/ruby-1.9.1-p431/lib/ruby/1.9.1/mkmf.rb:364:in `try_do': The complier failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /home/jarrett/.rvm/rubies/ruby-1.9.1-p431/lib/ruby/1.9.1/mkmf.rb:417:in `try_link0'
from /home/jarrett/.rvm/rubies/ruby-1.9.1-p431/lib/ruby/1.9.1/mkmf.rb:421:in `try_link'
from /home/jarrett/.rvm/rubies/ruby-1.9.1-p431/lib/ruby/1.9.1/mkmf.rb:529:in `try_func'
from /home/jarrett/.rvm/rubies/ruby-1.9.1-p431/lib/ruby/1.9.1/mkmf.rb:774:in `block in have_func'
from /home/jarrett/.rvm/rubies/ruby-1.9.1-p431/lib/ruby/1.9.1/mkmf.rb:670:in `block in checking_for'
from /home/jarrett/.rvm/rubies/ruby-1.9.1-p431/lib/ruby/1.9.1/mkmf.rb:276:in `block (2 levels) in postpone'
from /home/jarrett/.rvm/rubies/ruby-1.9.1-p431/lib/ruby/1.9.1/mkmf.rb:250:in `open'
from /home/jarrett/.rvm/rubies/ruby-1.9.1-p431/lib/ruby/1.9.1/mkmf.rb:276:in `block in postpone'
from /home/jarrett/.rvm/rubies/ruby-1.9.1-p431/lib/ruby/1.9.1/mkmf.rb:250:in `open'
from /home/jarrett/.rvm/rubies/ruby-1.9.1-p431/lib/ruby/1.9.1/mkmf.rb:272:in `postpone'
from /home/jarrett/.rvm/rubies/ruby-1.9.1-p431/lib/ruby/1.9.1/mkmf.rb:669:in `checking_for'
from /home/jarrett/.rvm/rubies/ruby-1.9.1-p431/lib/ruby/1.9.1/mkmf.rb:773:in `have_func'
from extconf.rb:45:in `<main>'
Gem files will remain installed in /home/jarrett/.rvm/gems/ruby-1.9.1-p431/gems/mysql-2.9.1 for inspection.
Results logged to /home/jarrett/.rvm/gems/ruby-1.9.1-p431/gems/mysql-2.9.1/ext/mysql_api/gem_make.out
當我檢查了mkmf.log文件(位於/home/jarrett/.rvm/gems/ruby-1.9.1-p431/gems/mysql-2.9.1/ext/mysql_api/mkmf.log
,它是空)。
我已經試過
1)確保所有需要的開發包都安裝(的libssl-dev的libopenssl - 紅寶石建立必要的GCC的autoconf automake的的libmysql-紅寶石紅寶石的mysql libmysqld-dev的紅寶石DEV)
2)我最初安裝了一個更新的RVM--我卸載了它並重新安裝了早期版本的RVM。我這樣做(按照這些說明:undefined symbol: SSLv2_method when trying to run Thin webserver),希望能夠運行rvm pkg install openssl
(本地安裝openssl 0.9.8),然後安裝ruby:rvm install 1.9.1 --with-openssl-dir=/home/jarrett/.rvm/usr
。我希望這會使用0.9.8版本的openssl。沒有骰子。
3)嘗試導出本地openssl 0.9.8到LD_LIBRARY_PATH
與export LD_LIBRARY_PATH=/home/jarrett/.rvm/usr/lib
,然後再次運行安裝。沒有骰子。
4)通過RVM安裝ruby 1.9.2和1.9.3並試用它們。沒有骰子。
5)大吼大叫電腦。沒有骰子。
任何人有任何意見/建議嗎?
也許有機會將mysql gem更新爲即將使用openssl 1.0.0?
也許發佈了此服務器錯誤? – fotanus 2013-04-25 02:35:50
謝謝@fotanus,我會給出一個去:http://serverfault.com/q/502575/153027 – Jarrett 2013-04-25 14:17:17