首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > Ruby Rails >

安装 Ruby Enterprise Edition 出罕见异常

2012-12-28 
安装 Ruby Enterprise Edition 出罕见错误make[1]: Entering directory `/tmp/ruby-enterprise-1.8.7-2011

安装 Ruby Enterprise Edition 出罕见错误

make[1]: Entering directory `/tmp/ruby-enterprise-1.8.7-2011.03/source/ext/gdbm'make[1]: Nothing to be done for `all'.make[1]: Leaving directory `/tmp/ruby-enterprise-1.8.7-2011.03/source/ext/gdbm'compiling iconvmake[1]: Entering directory `/tmp/ruby-enterprise-1.8.7-2011.03/source/ext/iconv'make[1]: Nothing to be done for `all'.make[1]: Leaving directory `/tmp/ruby-enterprise-1.8.7-2011.03/source/ext/iconv'compiling io/waitmake[1]: Entering directory `/tmp/ruby-enterprise-1.8.7-2011.03/source/ext/io/wait'make[1]: Nothing to be done for `all'.make[1]: Leaving directory `/tmp/ruby-enterprise-1.8.7-2011.03/source/ext/io/wait'compiling nkfmake[1]: Entering directory `/tmp/ruby-enterprise-1.8.7-2011.03/source/ext/nkf'make[1]: Nothing to be done for `all'.make[1]: Leaving directory `/tmp/ruby-enterprise-1.8.7-2011.03/source/ext/nkf'compiling opensslmake[1]: Entering directory `/tmp/ruby-enterprise-1.8.7-2011.03/source/ext/openssl'gcc -I/opt/local/include -I. -I/opt/local/include -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H="extconf.h"    -fPIC -g -O2-c ossl_x509cert.cIn file included from ossl.h:205,                from ossl_x509cert.c:11:openssl_missing.h:71: error: conflicting types for 'HMAC_CTX_copy'/usr/local/include/openssl/hmac.h:102: error: previous declaration of'HMAC_CTX_copy' was hereopenssl_missing.h:95: error: conflicting types for'EVP_CIPHER_CTX_copy'/usr/local/include/openssl/evp.h:459: error: previous declaration of'EVP_CIPHER_CTX_copy' was hereossl_x509cert.c: In function 'ossl_x509_inspect':ossl_x509cert.c:693: warning: initialization discards qualifiers frompointer target typemake[1]: *** [ossl_x509cert.o] Error 1make[1]: Leaving directory `/tmp/ruby-enterprise-1.8.7-2011.03/source/ext/openssl'make: *** [all] Error 1


经多方折腾,结果是

因为我手工升级了 openssl 到 1.0 , Ruby 源码安装时用到 openssl 并且必须时 0.9.8X
解决方案

 501  apt-get source openssl  502  ls  503  cd openssl-0.9.8g/  504  ls  505  ./config --prefix=/opt/openssl-0.9.8g --openssldir=/opt/openssl-0.9.8g/openssl  506  make   507  make install  508  cd ..  509  tar xzvf ruby-enterprise-1.8.7-2011.03.tar.gz   510  cp -r /opt/openssl-0.9.8g/include/openssl/ ./ruby-enterprise-1.8.7-2011.03/source/  511  ls ./ruby-enterprise-1.8.7-2011.03/source/  512  rm -rf /opt/ruby-enterprise-1.8.7-2011.03/  513  cd ruby-enterprise-1.8.7-2011.03/  514  ./installer


热点排行