0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

JuliaをAmazon Linux/Centos6でインストール

Posted at

バイナリーを使用(1.0)

wget https://julialang-s3.julialang.org/bin/linux/x64/1.0/julia-1.0.0-linux-x86_64.tar.gz
tar -xzf julia-1.0.0-linux-x86_64.tar.gz

github経由

結構時間かかるので要注意1~2時間?
/usr/local/srcに展開したとして、

git clone https://github.com/JuliaLang/julia.git
#(sed -i "s/enabled=0/enabled=1" /etc/yum.repos.d/epel.epo)
yum -y update
yum -y upgrade
yum -y install git gcc-fortran clang m4 patch ncurses-devel python-devel
yum -y install openblas, openblas-devel, blas
ln -s /usr/lib64/libblas.so.3 /usr/lib64/libblas.so
 ./contrib/download_cmake.sh
# openblasでエラーが出たら
make -C deps clean-openblas
make clean
# 以下いずれか?
make OPENBLAS_USE_THREAD=0
(make USE_SYSTEM_BLAS=1)

動作確認

./julia --version
./julia

Pathを設定
使い分けに応じて
~/.bash_profile
または
~/.bashrc

export PATH=$PATH:/usr/local/src/julia

を追記

source ~/.bash_profile

または

source ~/.bashrc

julia 1.0

yum install libgfortran
ln -s /usr/lib64/libgfortran.so.3 /usr/lib64/libgfortran.so

1系はモジュールのインストールは0系のPkg.add("[モジュール名]")ではなく

julia
]
add [モジュール名]

JLD

JLDのインストールでつまづく。

以下コマンドでHDF5をインストールすればJDLは問題なくインストールできる。

$ sudo amazon-linux-extras install epel
$ sudo yum-config-manager --enable epel
$ sudo yum install hdf5-devel

参考:
https://qiita.com/miiton@github/items/33c2b62c4911216d5fdb
https://github.com/mass10/julia.note/wiki/Julia-%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E3%81%99%E3%82%8B

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?