Project

General

Profile

Actions

Bug #11345

closed

Failed to build standard library openssl on OSX 10.10.4

Added by tomoasleep (Tomoya Chiba) over 9 years ago. Updated over 9 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-dev:49185]

Description

I failed to build standard library openssl when I use OpenSSL provided by Apple.
When I tried to build ruby by running ./configure && make,
building of standard library openssl failed and was skipped.
I couldn't find the following error message because other long messages hid the message.
I noticed that I failed to build standard library openssl when I used a code which requires standard library openssl.

configuring openssl
Ignore OpenSSL broken by Apple.
Please use another openssl. (e.g. using `./configure --with-openssl-dir=/path/to/openssl')
Failed to configure openssl. It will not be installed.

(This code would raise this error.)

I think that it is hard to find this message and documents should describe that OSX users should specify another openssl library as --with-openssl-dir parameter of the configure script.
What do you think?

If you tell me a proper place to add the description, I will add such description and send a pull request :-)

You cannot use openssl provided by Apple to build standard library openssl.
If you use OSX, you should install another openssl and run ```./configure --with-openssl-dir=/path/to/another-openssl```.
For Homebrew user, run `brew install openssl` and then ```./configure --with-openssl-dir=`brew prefix openssl` ```.

There are other people failing to build standard library openssl because of using Apple OpenSSL.


In Japanese,

標準添付のopensslをMacOSXでビルドすると、AppleがバンドルしているOpenSSLだと以下の様なエラーメッセージが出て標準添付のopensslのビルドに失敗してスキップされてしまうのですが、configure && makeしてビルドすると長いメッセージに埋もれてしまい、このことに気づきにくいと感じました。(私はopensslが必要なコードを使って初めてスキップされたことに気づきました。)

configuring openssl
Ignore OpenSSL broken by Apple.
Please use another openssl. (e.g. using `configure --with-openssl-dir=/path/to/openssl')
Failed to configure openssl. It will not be installed.

(エラーメッセージが出るのは、ここのソースコードの処理によるようです。)

Macでビルドする際には configure --with-openssl-dir=/path/to/openssl と他のOpenSSLの場所を指定するようにREADME等に明記したほうが良いと思うのですが、いかがでしょうか。

どこの箇所に説明を追加するべきかを教えていただければ、以下の内容を書き足してプルリクエストを送ります:-)

You cannot use openssl provided by Apple to build standard library openssl.
If you use OSX, you should install another openssl and run ```./configure --with-openssl-dir=/path/to/another-openssl```.
For Homebrew user, run `brew install openssl` and then ```./configure --with-openssl-dir=`brew prefix openssl` ```.

AppleのOpenSSLを使用してしまっているせいで標準添付のOpenSSLのビルドに失敗している方が他にもいるようです。

Updated by zzak (zzak _) over 9 years ago

  • Status changed from Open to Assigned
  • Assignee set to 7150
Actions #2

Updated by zzak (zzak _) over 9 years ago

  • Status changed from Assigned to Closed

Applied in changeset r51222.


  • ext/openssl/ossl.c: [DOC] Backport ruby/openssl@dbb3fdb [Bug #11345]
    Thanks to Tomoya Chiba for the report and help with patch.
Actions

Also available in: Atom PDF

Like0
Like0Like0