Centos 6 下安装 erlang 手记

选择的操作系统为Centos6 ,erlang的最新版OTP17.0:

1. 下载最新版erlang otp_17.0

2. 解压缩 tar -zxvf otp_src_17.0

3. 进入解压缩后的目录 

4. ./configure --prefix=/opt/erlang    --without-javac

出现错误大致为:  No curses library functions found 

5. 需要安装ncurses   :  yum install ncurses-devel

6.安装好 ncurses后继续 ./configure --prefix=/opt/erlang    --without-javac

7.make 

8. make install

9.安装成功,可以做一个链接: ln -s /opt/erlang/bin/erl /usr/local/bin/erl



在安装过程中可能会遇到如下情况:

********************************************************************* 
**********************  APPLICATIONS DISABLED  ********************** 
********************************************************************* 
crypto         : No usable OpenSSL found 
odbc           : ODBC library - link check failed 
orber          : No C++ compiler found 
ssh            : No usable OpenSSL found 
ssl            : No usable OpenSSL found 
********************************************************************* 
********************************************************************* 
**********************  APPLICATIONS INFORMATION  ******************* 
********************************************************************* 
wx             : wxWidgets not found, wx will NOT be usable 
********************************************************************* 
********************************************************************* 
**********************  DOCUMENTATION INFORMATION  ****************** 
********************************************************************* 
documentation  : 
                 fop is missing. 
                 Using fakefop to generate placeholder PDF files. 

 解决上述问题:

     1. ODBC library - link check failed   需要安装 unixODBC     

      > yum list|grep unixODBC  

      > yum install unixODBC-devel

     2.  No usable OpenSSL found  :需要安装 openssl   

       > yum list|grep ssl

       > yum install openssl-devel

     3.   No C++ compiler found:需要安装gc c++ 编译器 

      >  yum list|grep gcc

    > yum install gcc-c++ 

    4. wxWidgets not found, wx will NOT be usable  :  wxWidgets   这个库需要单独下

                           (http://www.wxwidgets.org/downloads/),yum 下没有:

        > 下载wxWidgets  源码包 后解压缩并编译安装

        > bzip2 -d wxWidgets-3.0.0.tar.bz2     tar   -jxvf 

        > tar -xvf wxWidgets-3.0.0.tar

          > 安装依赖库:    yum list *gtk+*    yum install  gtk2-devel 或 gtk+extra

        >进入解压缩目录, ./configure --with-opengl --enable-debug --enable-unicode 

         > 出现问题 OpenGL libraries not available,则需要安装OpenGL库

           >>  yum list mesa*                 yum install mesa * 

            >> yum list|grep   freeglut        yum install freeglut* 

        >解决 OpenGL 问题后直接运行 make & make install

    5.  fop is missing.  可忽略

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值