Hunter的大杂烩 技术学习笔记

2017-11-06

erlang编译参数

Filed under: 技术话题 — hunter @ 2:06 pm

为了便于批量分发额外安装的软件,一般将非系统自带软件编译到 /usr/local/$prefix,因此安装erlang时遇到几个错误

1. 没有openssl

下载openssl:

./config –prefix=/usr/local/openssl

vi Makefile

修改CFLAG,原(CFLAG=  -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN …),修改后(CFLAG= -fPIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN …)

make;make install

2. 没有odbc

下载:http://www.unixodbc.org

./configure –prefix=/usr/local/unixODBC –eanble-gui=no

make;make install

3.  erlang编译

a. configure 时增加 –with-ssl=/usr/local/openssl  –with-odbc=/usr/local/unixODBC

b. CFLAGS=”-I/usr/local/unixODBC/include” LDFLAGS=”-L/usr/local/unixODBC/lib”

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress