[Erlang 学习笔记]ubuntu 11.10 搭建erlang环境
2012-04-07 03:38
555 查看
搜索了很多资料都说到,如果库不全的话,编译安装的时候会报各种错误,所以我们站在巨人的肩膀上。
首先,打好库:
对下到的包进行解压并编译安装:
这里编译一般不会出什么错误,可能会有的是jdk环境的问题:No Java compiler found
这是你检查下jdk 的环境就好了。
接着:配置下erlang的环境:
弄完之后,在终端输入 erl
可以进行erlang的shell测试了:
首先,打好库:
sudo apt-get install build-essential sudo apt-get install libncurses5-dev sudo apt-get install libssl-dev sudo apt-get install m4 sudo apt-get install unixodbc unixodbc-dev sudo apt-get install freeglut3-dev libwxgtk2.8-dev sudo apt-get install xsltproc sudo apt-get install fop sudo apt-get install tk8.5安装好上面到依赖之后,到官网下个源码包:http://www.erlang.org/download.html
对下到的包进行解压并编译安装:
tar zxvf /home/lqg/下载/otp_src_R15B01.tar.gz cd /home/lqg/otp_src_R15B01/ ./configure make && make install
这里编译一般不会出什么错误,可能会有的是jdk环境的问题:No Java compiler found
这是你检查下jdk 的环境就好了。
接着:配置下erlang的环境:
export ERL_HOME=/home/lqg/otp_src_R15B01/ export PATH=$ERL_HOME/bin:$PATH
弄完之后,在终端输入 erl
可以进行erlang的shell测试了:
1> io:format("hello wlord"). hello wlordok 2> io:format("hello wlord ~n"). hello wlord ok 3> io:format("the output is: ~w ~w~n",[hello,world]). the output is: hello world ok 4> io:format("the output is: ~w~w~n",[hello,world]). the output is: helloworld ok 5> io:format("the output is: ~w~w~n",[hello,world]). the output is: helloworld ok
相关文章推荐
- ubuntu下web服务器环境搭建学习笔记
- Ubuntu下lamp环境搭建【学习笔记】
- hadoop学习笔记:Ubuntu下搭建eclipse调试环境
- OK6410 Linux开发环境搭建--编译以及ubuntu的使用方法学习笔记
- hadoop学习准备环境:ubuntu学习笔记-基本环境的搭建
- Solr学习笔记一 ---Solr运行环境搭建(tomcat7 + solr 3.5 +ubuntu 10.04)
- ubuntu 11.10 搭建erlang环境 (转载)
- android系统学习(1)-ubuntu 11.10环境搭建
- 开始hadoop前的准备:ubuntu学习笔记-基本环境的搭建(ssh的安装,SecureCRT连接,vim的安装及使用、jdk的安装)
- Ubuntu环境Hadoop全分布式环境搭建 (学习笔记)
- {嵌入式学习笔记(一)}ubuntu下嵌入式开发环境搭建
- android 学习笔记(二)Ubuntu 11.04 搭建Android开发环境
- 【深度学习】笔记1_Ubuntu14.04下caffe环境的搭建,无GPU版本以及python可视化环境的配置
- 【Ubuntu+OpenCV】Ubuntu11.04下OpenCV2.1环境搭建--学习笔记【0】
- Ubuntu系统学习笔记-2.LNMP环境搭建
- zynq学习笔记一:搭建linux交叉编译环境(ubuntu 17.04)
- Django学习笔记 开发环境搭建
- Python学习笔记1-搭建Python环境 和 Python Hello World!
- Cocos2d-x学习笔记之Cocos2d-x开发环境搭建
- 【深度学习】笔记13 win10+cuda7.5+caffe+vs2013环境搭建(GPU版本)