簡體   English   中英

無法使用Zend Server在Snow Leopard上安裝mysql gem

[英]Can't install mysql gem on Snow Leopard using Zend Server

關於在Snow Leopard上安裝ruby / rails mysql gem的信息很多,但是,似乎沒有一個對我有用。 我想知道是否是因為我將Zend Server(CE)用作Web堆棧?

這是我正在運行的安裝gem的方法:

sudo env ARCHFLAGS="-arch x86\_64" gem install mysql -- --with-mysql-config=/usr/local/zend/mysql/bin/mysql_config

並得到這個錯誤:

ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb --with-mysql-config=/usr/local/zend/mysql/bin/mysql_config
checking for mysql_ssl_set()... no
checking for rb_str_set_len()... yes
checking for rb_thread_start_timer()... yes
checking for mysql.h... no
checking for mysql/mysql.h... no
*** 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.

有什么建議么?

好的,好吧,我繼續為OSX 10.6(64位)編譯了一個全新的mysql版本,然后使用該新安裝的路徑運行了gem install。 然后成功創建了該寶石。

我不建議使用自我安裝程序,因為它會覆蓋Zend Server安裝中的某些設置。

因此,即使我安裝了兩個mysql,我仍然只引用一個mysql-我什至不知道如何引用第二個mysql-但是現在,我不需要。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM