2012-03-02 46 views
0

我不知道什麼時候,但是從雪豹獅子升級假設(10.7.3)我的系統配置似乎很混亂。當試圖安裝REE-1.8.7我遇到了什麼辦法,我嘗試了同樣的問題:OSX獅子安裝紅寶石1.8.7(Xcode中的命令行工具)的:OpenSSL的開發頭...沒有找到

Checking for required software... 

* Non-broken C compiler... found at /usr/bin/gcc-4.2 
* Non-broken C++ compiler... found at /usr/bin/g++-4.2 
* The 'make' tool... found at /usr/bin/make 
* The 'patch' tool... found at /usr/bin/patch 
* Zlib development headers... found 
* OpenSSL development headers... not found 
* GNU Readline development headers... found 

Some required software is not installed. 

使用RVM,rbenv或運行安裝程序稀土元素時會出現這種情況(通過所有選項去)。雖然openssl安裝並正常工作:

openssl version                            
OpenSSL 0.9.8r 8 Feb 2011 

我試着醞釀openssl,但那也沒有幫助,所以也刪除了它。

我,因爲我不能夠得到它運行很絕望。任何提示都表示讚賞。

編輯:我錯過了細節,我只安裝,而不是完整的Xcode包Xcode的命令行工具。

回答

1

你需要告訴./configure腳本在哪裏可以找到OpenSSL的頭

RVM轉發任何--with*標誌進行配置,因此你可以通過--with-openssl-dir=...rvm命令 - >https://rvm.beginrescueend.com/packages/openssl/

使用--with-openssl-dir=/usr應該做的伎倆,但也有更多的選擇:--with-openssl-include-dir=/usr/include/openssl--with-openssl-lib-dir=/usr/lib(這可能是非標準安裝)

也是非常重要的 - ./configure會聲稱此標誌不被識別,它將用於make命令 - 檢查make.log是否爲RVM。

+0

感謝您指出我朝着正確的方向。 – dhenze 2012-03-05 09:31:35

相關問題