摘要: 修改开发环境 代码查找路径(类似于classpath),可以通过code:get_path().查看当前的路径 @spec code:add_patha(Dir) => true | {error, bad_directory} 加在最前面 @spec code:add_pathz(Dir) => true | {error, bad_directory} 加在最后面 通过code:all_loaded().查看当前装载的代码 code:clash().可以帮助检查在路径上的名字冲突 1. 可以修改$HOME/.erlang 来设置路径,例如: ... 阅读全文
posted @ 2012-08-06 15:28 Alex~ 阅读(356) 评论(0) 推荐(0) 编辑
摘要: windows 7 下安装Erlang的工作目录,即文件目录默认为C:/user/user下,修改方法如下:在dos命令行下运行 echo a > c:/user/user/.erlang打开.erlang拷贝以下4行,并修改红色字体到相关的目录io:format("consulting .erlang in ~p~n", [element(2,file:get_cwd())]).%% Edit to the directory where you store your codec:cd("c:/work").io:format("Now 阅读全文
posted @ 2012-08-06 15:24 Alex~ 阅读(469) 评论(0) 推荐(0) 编辑
摘要: windows Erlang install环境: windows 7 x64 Erlang : otp_win64_R15B01.exe 下载: http://www.erlang.org/download/otp_win64_R15B01.exe http://ftp.gnu.org/pub/gnu/emacs/windows/emacs-24.1-bin-i386.zip下载Erlang的文档 http://www.erlang.org/download/otp_doc_html_R15B01.tar.gz安装Erlang 双击exe文件进行安装。Erla... 阅读全文
posted @ 2012-08-06 14:18 Alex~ 阅读(677) 评论(2) 推荐(0) 编辑