为了便于批量分发额外安装的软件,一般将非系统自带软件编译到 /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
./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”