centos 安装erlang

来源:互联网 发布:抓包工具二次开发源码 编辑:程序博客网 时间:2024/05/16 06:00
选择的操作系统为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后继续 ./config --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 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. 可忽略
0 0
原创粉丝点击