在安装OpenSSL 1.0.1e的情况下编译ruby 1.9.3p392时出现分段错误

时间:2013-03-09 16:23:16

标签: ruby openssl osx-mountain-lion

我正在尝试在我全新安装的Mountain Lion Server上运行我的Rails网站。不使用RVM,因为我不需要很多rails或ruby安装。配置ruby和rails以顺利运行是一件痛苦的事。

使用以下命令编译最新版本的OpenSSL:

sudo ./configure --prefix=/usr/local/ darwin64-x86_64-cc
sudo make
sudo make install

现在当我输入时,我得到了这个:

grid:ruby-1.9.3-p392 Clu$ openssl version
OpenSSL 1.0.1e 11 Feb 2013

当我尝试从源代码配置Ruby时,我会遇到Segmentation Fault:

compiling md5init.c
compiling md5ossl.c
linking shared-object digest/md5.bundle
installing default md5 libraries
compiling rmd160init.c
compiling rmd160ossl.c
linking shared-object digest/rmd160.bundle
installing default rmd160 libraries
compiling sha1init.c
compiling sha1ossl.c
linking shared-object digest/sha1.bundle
collect2: ld terminated with signal 11 [Segmentation fault: 11]
make[2]: *** [../../../.ext/x86_64-darwin12.2.1/digest/sha1.bundle] Error 1
make[1]: *** [ext/digest/sha1/all] Error 2
make: *** [build-ext] Error 2

0 个答案:

没有答案