Erlang
ページ作成日
ページ更新日
Erlangは、Ericsonが開発している、関数型言語です。
Erlangの配布形式は、OTP(Open Telecom Platform)と呼ばれています。
従って、ソースコードのアーカイブ名も、otp-<バージョン>.tar.gzという形式になっています。
環境設定
特にありません。Make it by yourself!
まずは、自分のホームディレクトリにソースを落とし解凍しましょう。
$ cd ~/Downloads $ wget https://github.com/erlang/otp/releases/download/OTP-28.4.1/otp_src_28.4.1.tar.gz $ tar xvf otp_src_28.4.1.tar.gz
configureのスクリプトを走らせます。
$ cd otp_src_28.4.1 $ ./configure --prefix=/usr --libdir=/usr/lib64 --infodir=/usr/share/info --mandir=/usr/share/man --with-ssl --without-wx --without-javac [画面出力を略]
makeし、その後、rootに代わって、make installします。
/usr/bin/time -v make -j$(nproc)
[画面出力を略]
Command being timed: "make -j12"
User time (seconds): 894.87
System time (seconds): 74.85
Percent of CPU this job got: 786%
Elapsed (wall clock) time (h:mm:ss or m:ss): 2:03.33
Average shared text size (kbytes): 0
Average unshared data size (kbytes): 0
Average stack size (kbytes): 0
Average total size (kbytes): 0
Maximum resident set size (kbytes): 418592
Average resident set size (kbytes): 0
Major (requiring I/O) page faults: 185
Minor (reclaiming a frame) page faults: 28169579
Voluntary context switches: 2017844
Involuntary context switches: 5303078
Swaps: 0
File system inputs: 1816
File system outputs: 2456184
Socket messages sent: 0
Socket messages received: 0
Signals delivered: 0
Page size (bytes): 4096
Exit status: 0
パッケージ作成用ディレクトリへのインストール
パッケージ作成用に/tmpにインストールします。
make install DESTDIR=/tmp/otp-28.4.1 [画面出力を略]
パッケージの作成
パッケージを作成します。
cd /tmp/otp-28.4.1 sudo makepkg --linkadd y --chown y --linkadd y ../otp-28.4.1-x86_64-1.txz [画面出力を略] Slackware package ../otp-28.4.1-x86_64-1.txz created.
あとは、このパッケージのパーミッションを755に変更して、パッケージをインストールすればOK♪
cd /var/tmp sudo installpkg otp-28.4.1-x86_64-1.txz