64 位 ubuntu 上的 Erlang
首先,ERLANG 没有指定的 64 位下载
当我尝试启用加密时,我收到此错误,
make[2]: Entering directory `/home/axon/erlang-src/otp_src_R14B01/lib/crypto'
=== Entering application crypto
make[3]: Entering directory `/home/axon/erlang-src/otp_src_R14B01/lib/crypto/src'
make[3]: Nothing to be done for `opt'.
make[3]: Leaving directory `/home/axon/erlang-src/otp_src_R14B01/lib/crypto/src'
make[3]: Entering directory `/home/axon/erlang-src/otp_src_R14B01/lib/crypto/c_src'
make -f x86_64-unknown-linux-gnu/Makefile TYPE=opt
make[4]: Entering directory `/home/axon/erlang-src/otp_src_R14B01/lib/crypto/c_src'
/usr/bin/install -c -d ../priv/lib/x86_64-unknown-linux-gnu
gcc -shared -Wl,-Bsymbolic -o ../priv/lib/x86_64-unknown-linux-gnu/crypto.so ../priv/obj/x86_64-unknown-linux-gnu/crypto.o -Wl,-R/usr/local/ssl/lib -Wl,-R/usr/local/lib64 -Wl,-R/usr/sfw/lib64 -Wl,-R/opt/local/lib64 -Wl,-R/usr/lib64 -Wl,-R/usr/pkg/lib64 -Wl,-R/usr/local/openssl/lib64 -Wl,-R/usr/lib/openssl/lib64 -Wl,-R/usr/openssl/lib64 -Wl,-R/usr/local/ssl/lib64 -Wl,-R/usr/lib/ssl/lib64 -Wl,-R/usr/ssl/lib64 -Wl,-R/usr/local/lib -Wl,-R/usr/sfw/lib -Wl,-R/opt/local/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -Wl,-R/usr/local/openssl/lib -Wl,-R/usr/lib/openssl/lib -Wl,-R/usr/openssl/lib -Wl,-R/usr/lib/ssl/lib -Wl,-R/usr/ssl/lib -L/usr/local/ssl/lib -lcrypto
/usr/bin/ld: /usr/local/ssl/lib/libcrypto.a(cryptlib.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/ssl/lib/libcrypto.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[4]: *** [../priv/lib/x86_64-unknown-linux-gnu/crypto.so] Error 1
make[4]: Leaving directory `/home/axon/erlang-src/otp_src_R14B01/lib/crypto/c_src'
make[3]: *** [opt] Error 2
make[3]: Leaving directory `/home/axon/erlang-src/otp_src_R14B01/lib/crypto/c_src'
make[2]: *** [opt] Error 2
make[2]: Leaving directory `/home/axon/erlang-src/otp_src_R14B01/lib/crypto'
make[1]: *** [opt] Error 2
make[1]: Leaving directory `/home/axon/erlang-src/otp_src_R14B01/lib'
make: *** [libs] Error 2
我了解到这是 lib_ssl 本身的问题,其他一些人也遇到了这个问题。有人建议我在安装 lib_ssl 之前编辑加密头文件,我这样做了,但这并没有解决问题。
First, there is not specif 64bit download FOR ERLANG
When I tried to make with crypto enabled, I get this error
make[2]: Entering directory `/home/axon/erlang-src/otp_src_R14B01/lib/crypto'
=== Entering application crypto
make[3]: Entering directory `/home/axon/erlang-src/otp_src_R14B01/lib/crypto/src'
make[3]: Nothing to be done for `opt'.
make[3]: Leaving directory `/home/axon/erlang-src/otp_src_R14B01/lib/crypto/src'
make[3]: Entering directory `/home/axon/erlang-src/otp_src_R14B01/lib/crypto/c_src'
make -f x86_64-unknown-linux-gnu/Makefile TYPE=opt
make[4]: Entering directory `/home/axon/erlang-src/otp_src_R14B01/lib/crypto/c_src'
/usr/bin/install -c -d ../priv/lib/x86_64-unknown-linux-gnu
gcc -shared -Wl,-Bsymbolic -o ../priv/lib/x86_64-unknown-linux-gnu/crypto.so ../priv/obj/x86_64-unknown-linux-gnu/crypto.o -Wl,-R/usr/local/ssl/lib -Wl,-R/usr/local/lib64 -Wl,-R/usr/sfw/lib64 -Wl,-R/opt/local/lib64 -Wl,-R/usr/lib64 -Wl,-R/usr/pkg/lib64 -Wl,-R/usr/local/openssl/lib64 -Wl,-R/usr/lib/openssl/lib64 -Wl,-R/usr/openssl/lib64 -Wl,-R/usr/local/ssl/lib64 -Wl,-R/usr/lib/ssl/lib64 -Wl,-R/usr/ssl/lib64 -Wl,-R/usr/local/lib -Wl,-R/usr/sfw/lib -Wl,-R/opt/local/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -Wl,-R/usr/local/openssl/lib -Wl,-R/usr/lib/openssl/lib -Wl,-R/usr/openssl/lib -Wl,-R/usr/lib/ssl/lib -Wl,-R/usr/ssl/lib -L/usr/local/ssl/lib -lcrypto
/usr/bin/ld: /usr/local/ssl/lib/libcrypto.a(cryptlib.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/ssl/lib/libcrypto.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[4]: *** [../priv/lib/x86_64-unknown-linux-gnu/crypto.so] Error 1
make[4]: Leaving directory `/home/axon/erlang-src/otp_src_R14B01/lib/crypto/c_src'
make[3]: *** [opt] Error 2
make[3]: Leaving directory `/home/axon/erlang-src/otp_src_R14B01/lib/crypto/c_src'
make[2]: *** [opt] Error 2
make[2]: Leaving directory `/home/axon/erlang-src/otp_src_R14B01/lib/crypto'
make[1]: *** [opt] Error 2
make[1]: Leaving directory `/home/axon/erlang-src/otp_src_R14B01/lib'
make: *** [libs] Error 2
I learnt this is an issue with lib_ssl itself, some other guys are also having this issue. Someone recommends I edit a crypto header file before installing lib_ssl, I did but that didn't resolve the issue.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来您缺少先决条件(“libssl-dev”)。
也许看看我的“安装指南”并将其与您的设置进行比较。即使本“指南”适用于 R14,我也将其用于 R13 和所有其他 R14 版本。
Looks like You are missing a prerequisite ("libssl-dev").
Maybe have a look at my "installation guide" and compare it with Your setup. Even if this "guide" is for R14, I use it for R13 and all other R14 versions as well.