| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 8063 人关注过本帖
标题:Linux安装Erlang配置开发环境
取消只看楼主 加入收藏
王子ldj
Rank: 1
等 级:新手上路
帖 子:21
专家分:0
注 册:2013-4-16
结帖率:100%
收藏
 问题点数:0 回复次数:0 
Linux安装Erlang配置开发环境
这边插一句,如果大家学Erlang,建议还是到 Linux环境下,这样其实也是能学到不少知识,毕竟现在市面上主流的服务器都是Linux,所以如果你现在还只是会在Window下的这一套,那就来到Linux下学学吧。

搜索了很多资料都说到,如果库不全的话,编译安装的时候会报各种错误,所以我们站在巨人的肩膀上。

首先,打好库:

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.
对下到的包进行解压并编译安装:

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 的环境就好了。

最后,在终端输入 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
搜索更多相关主题的帖子: 服务器 Linux 开发 肩膀 知识 
2013-07-13 22:01
快速回复:Linux安装Erlang配置开发环境
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.011943 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved