Centos 6 下安装 erlang 手记
基于openfire的IM项目已经成功上线,接下来的计划准备開始调研 ejabberd.
ejabberd 是基于erlang开发的。那么就先从搭建 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后继续 ./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. 可忽略
扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄
选择的操作系统为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. 可忽略

更多精彩