Erlang 安装手记

今天在ubuntu 8.04上安装ErlangR15B-5,碰到了几个问题,基本上都是缺少库文件导致的。

1. configure
在手工编译安装Erlang,需要先安装下列包:
libc6-dev
libssl0.9.8
libssl-dev
libncurses5
libncurses5-dev

安装后仍然有"odbc           : ODBC library - link check failed"的错误,google后尝试安装了libiodbc2, libiodbc2-dev, libodbc++4, libodbc++-dev, 问题依旧。浏览了一下configure的log,发县有"No odbc library found skipping odbc",将问题定位到了$src/lib/odbc/configure.in 178行
                if test -f "$dir/include/sql.h"; then
                  is_odbc_std_location=yes
                  ODBC_LIB=-L"$dir/lib"
                  ODBC_INCLUDE="-I$dir/include"
                  break
                fi


缺少头文件sql.h,所以这个问题其实和libiodbc、libodbc没有关系,需要的是unixodbc和unixodbc-dev。

apt-get后,configure运行一切正常

2. Make

第一次make的时候因为没有安装m4而导致失败,apt—get后,重新执行make,出现以下错误:

hipe/hipe_mkliterals.c:393: error: 'X86_LEAF_WORDS' undeclared here (not in a function)
hipe/hipe_mkliterals.c:394: error: 'X86_NR_ARG_REGS' undeclared here (not in a function)


看上去应该是缺少m4的后遗症,rm了整个目录,重新解包、configure和make后,一切正常。

下班回家喽哈哈

你可能感兴趣的:(sql,erlang,ubuntu,Google,Ruby)