码迷,mamicode.com
首页 > 其他好文 > 详细

CentOS-6.3 编译erlang-otp 17.0 报relocation R_X86_64_32 against `OPENSSL_ia32cap_P' can not be used when making a shared object; recompile with -fPIC错误

时间:2014-06-28 13:16:07      阅读:497      评论:0      收藏:0      [点我收藏+]

标签:blog   http   java   os   art   c   

编译erlang otp 17.0 一直提示:
/usr/bin/ld: /usr/local/ssl/lib/libcrypto.a(cryptlib.o): relocation R_X86_64_32 against `OPENSSL_ia32cap_P‘ can not be used when making a shared object; recompile with -fPIC

参考了一下这个:http://blog.csdn.net/zhongruixian/article/details/17929831

自己参考上面链接,步骤如下:
1. 重新下载了openssl-1.0.1g.tar.gz 解压缩之后
2. ./config --prefix=/usr/local/lib/ssl 与之前系统安装的ssl区分开
3. vi Makefile 在CFLAG选项中加上 -fPIC
4. make $$ make install
5. 进入erlang-otp目录,如果之前有编译过 make clean
6. ./configure --prefix=/usr/local/lib --with-ssl=/usr/local/lib/ssl
7. make ,make完不再报开头的错误了
8. make install
9. 完成erlang-otp 17.0安装

报错原因:参考链接http://blog.csdn.net/zhongruixian/article/details/17929831

CentOS-6.3 编译erlang-otp 17.0 报relocation R_X86_64_32 against `OPENSSL_ia32cap_P' can not be used when making a shared object; recompile with -fPIC错误,布布扣,bubuko.com

CentOS-6.3 编译erlang-otp 17.0 报relocation R_X86_64_32 against `OPENSSL_ia32cap_P' can not be used when making a shared object; recompile with -fPIC错误

标签:blog   http   java   os   art   c   

原文地址:http://www.cnblogs.com/devoutsin/p/3798709.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!