erlang

2884 ワード


erlangをインストールするのは比較的に簡単で、インストールする過程の中で出会う問題もそんなに多くなくて、注意深くなるのでさえすればいいです。
 
ダウンロードに必要なソースコード:                  wgethttp://erlang.org/download/otp_srcusR 13 B 04.tar.gz解凍ソース:                           tar xzf otp_srcusR 13 B 04.tar.gzが解凍後に生産されるディレクトリ:         cd otp_srcusR 13 B 04取付前配置:                        ./configre--prefix=/home/erlang(このコマンドは以下に修正があります)
コンパイルを開始:                           make(unixシステムにインストールするならgmakeを使用してください。)
インストールを開始:                           make install(unixシステムにインストールする場合はgmake installを使用してください)
 
configureの後に以下のヒントがあります。
*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************を************************************************************************************************************************************************************************************************************************************************************************************************
odbc:ODBC library–link check failed jiterface:No Java compler found
次のエラーが発生した場合:
 
クレイプト        : No usable OpenSSL found
ssh           : No usable OpenSSL found
文字           : No usable OpenSSL found
この場合は次のコマンドを実行してください。
ap-get install libssl-dev(適用とuuntu下)
この場合はコマンドを実行します。yum  install  unixODBC unixODBC-dev  このコマンドを実行すると次のエラーが発生します。
Canot retrieve repository metadata(repomd.xml)for repository udates-released.Please verify its path and try again
急がないでください。この問題は解決しやすいです。/etc/yum.repos.d/rhel【バージョンはここでも違います。】repoに入って、中のbaserulを注釈して、以下の内容を追加します。
baserul=http://centos.ustc.edu.cn/centos/5/os/i386/
この時、私たちは設定されているコマンドを修正します。
インストール前の設定:      ./configre--prefix=/home/erlang--without-javac
unix(freeBSD)にインストールするとこの二つのエラーを無視できます。
インストールが成功しました
以下はerlにソフト接続をします。/usr/local/bin/に接続して、使いやすいです。ln  -s /home/erlang/bin/erl /usr/local/bin/erl 
テストを開始:
[root@localhost~]脼erl Errlang R 13 B 04(erts-5.5)[source][smp:2:2][rq:2][async-threads:0][hipe][kersnel-poll:false]Eshell V 5.7.5  (abort with^G)1>A=12.12>A.12 3 
 
macにerlang 14 B 04を取り付ける方法を紹介します。
ダウンロード
$git clone  https://github.com/erlang/otp.git
$cd otp
システムに応じて対応する構成を行う。
$  ./otp_build atootconf
インストールを開始:
$ CFLAGS=-O 0./configure--enable-hipe--enaber-smp-support--enabl-threads\
 
   
   
   --enaber-kernel-poll--enaber-darwin-64 bit
$make
$sudo make install
 
テストに合格しました。今から不思議なラリー旅行を始めましょう。
幸運を祈ります