- wget https://julialang-s3.julialang.org/bin/linux/armv7l/1.0/julia-1.0.3-linux-armv7l.tar.gz (下載)
- tar -xvf julia-1.0.3-linux-armv7l.tar.gz (解壓縮)
# Try out the Raspberry Pi Model 3 B Plus! - Review
下載網址可在 Julia 官網下載頁的 ARMv7 這個超連結找到, 有 32/64 位元兩種版本, 我下載的是 32 位元版 :
pi@raspberrypi:~ $ wget https://julialang-s3.julialang.org/bin/linux/armv7l/1.0/julia-1.0.3-linux-armv7l.tar.gz
--2018-12-29 22:58:18-- https://julialang-s3.julialang.org/bin/linux/armv7l/1.0/julia-1.0.3-linux-armv7l.tar.gz
Resolving julialang-s3.julialang.org (julialang-s3.julialang.org)... 151.101.54.49, 2a04:4e42:200::561, 2a04:4e42:600::561, ...
Connecting to julialang-s3.julialang.org (julialang-s3.julialang.org)|151.101.54.49|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 78956998 (75M) [application/octet-stream]
Saving to: ‘julia-1.0.3-linux-armv7l.tar.gz’
julia-1.0.3-linux-a 100%[=====================>] 75.30M 615KB/s in 2m 12s
2018-12-29 23:00:39 (585 KB/s) - ‘julia-1.0.3-linux-armv7l.tar.gz’ saved [78956998/78956998]
pi@raspberrypi:~ $ tar -xvf julia-1.0.3-linux-armv7l.tar.gz
解壓縮完成後會在目前工作目錄下產生 julia-1.0.3 這個目錄, 執行檔為 /bin/julia, 執行它即可進入 REPL 介面 :
pi@raspberrypi:~ $ julia-1.0.3/bin/julia
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.0.3 (2018-12-18)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
julia> println("Hello World")
Hello World
julia> exit()
pi@raspberrypi:~ $
參考 :
# Julia language for Raspberry Pi
# Julia available in Raspbian on the Raspberry Pi
# Playing with Julia 1.0 on the Raspberry Pi
2019-04-10 補充 :
我在下面這篇看到可用 pip3 安裝 julia :
# Julia language for Raspberry Pi
pi@raspberrypi:~ $ sudo apt install julia
正在讀取套件清單... 完成
正在重建相依關係
正在讀取狀態資料... 完成
下列的額外套件將被安裝:
curl libamd2 libarpack2 libarpack2-dev libbtf1 libcamd2 libccolamd2
libcholmod3 libcurl3 libcurl4-openssl-dev libcxsparse3 libdsfmt-11213-1
libdsfmt-1279-1 libdsfmt-132049-1 libdsfmt-19937-1 libdsfmt-216091-1
libdsfmt-2203-1 libdsfmt-4253-1 libdsfmt-44497-1 libdsfmt-521-1
libdsfmt-86243-1 libdsfmt-dev libfftw3-bin libfftw3-dev libgmp-dev
libgmpxx4ldbl libklu1 libldl2 libmetis5 libmpfr-dev libopenblas-base
libopenblas-dev libopenlibm2 libopenspecfun-dev libopenspecfun1
libpcre2-16-0 libpcre2-32-0 libpcre2-8-0 libpcre2-dev libpcre2-posix0
librbio2 libspqr2 libsuitesparse-dev libumfpack5 patchelf
建議套件:
libcurl4-doc libcurl3-dbg libidn11-dev libkrb5-dev libldap2-dev librtmp-dev
libssh2-1-dev libssl1.0-dev | libssl-dev libfftw3-doc gmp-doc libgmp10-doc
libmpfr-doc
下列【新】套件將會被安裝:
julia libamd2 libarpack2 libarpack2-dev libbtf1 libcamd2 libccolamd2
libcholmod3 libcurl4-openssl-dev libcxsparse3 libdsfmt-11213-1
libdsfmt-1279-1 libdsfmt-132049-1 libdsfmt-19937-1 libdsfmt-216091-1
libdsfmt-2203-1 libdsfmt-4253-1 libdsfmt-44497-1 libdsfmt-521-1
libdsfmt-86243-1 libdsfmt-dev libfftw3-bin libfftw3-dev libgmp-dev
libgmpxx4ldbl libklu1 libldl2 libmetis5 libmpfr-dev libopenblas-base
libopenblas-dev libopenlibm2 libopenspecfun-dev libopenspecfun1
libpcre2-16-0 libpcre2-32-0 libpcre2-8-0 libpcre2-dev libpcre2-posix0
librbio2 libspqr2 libsuitesparse-dev libumfpack5 patchelf
下列套件將會被升級:
curl libcurl3
升級 2 個,新安裝 44 個,移除 0 個,有 163 個未被升級。
需要下載 19.9 MB/20.4 MB 的套件檔。
此操作完成之後,會多佔用 112 MB 的磁碟空間。
是否繼續進行 [Y/n]? [Y/n] Y
下載:1 http://archive.raspberrypi.org/debian stretch/main armhf julia armhf 0.6.0-2 [11.0 MB]
..... (略)
讀取改變紀錄(changelogs)... 完成
從套件中提取樣板:100%
(讀取資料庫 ... 目前共安裝了 137724 個檔案和目錄。)
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: https://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.6.0
_/ |\__'_|_|_|\__'_| |
|__/ | arm-linux-gnueabihf
結果版本很舊, 是 v0.6.0.
# 如何更新Raspbian?
# Raspberry Pi 輕鬆學
# Playing with Julia 1.0 on the Raspberry Pi
2019-10-16 補充 :
目前最新版為 v1.2.0 版.
# Julia available in Raspbian on the Raspberry Pi
# Playing with Julia 1.0 on the Raspberry Pi
2019-04-10 補充 :
我在下面這篇看到可用 pip3 安裝 julia :
# Julia language for Raspberry Pi
pi@raspberrypi:~ $ sudo apt install julia
正在讀取套件清單... 完成
正在重建相依關係
正在讀取狀態資料... 完成
下列的額外套件將被安裝:
curl libamd2 libarpack2 libarpack2-dev libbtf1 libcamd2 libccolamd2
libcholmod3 libcurl3 libcurl4-openssl-dev libcxsparse3 libdsfmt-11213-1
libdsfmt-1279-1 libdsfmt-132049-1 libdsfmt-19937-1 libdsfmt-216091-1
libdsfmt-2203-1 libdsfmt-4253-1 libdsfmt-44497-1 libdsfmt-521-1
libdsfmt-86243-1 libdsfmt-dev libfftw3-bin libfftw3-dev libgmp-dev
libgmpxx4ldbl libklu1 libldl2 libmetis5 libmpfr-dev libopenblas-base
libopenblas-dev libopenlibm2 libopenspecfun-dev libopenspecfun1
libpcre2-16-0 libpcre2-32-0 libpcre2-8-0 libpcre2-dev libpcre2-posix0
librbio2 libspqr2 libsuitesparse-dev libumfpack5 patchelf
建議套件:
libcurl4-doc libcurl3-dbg libidn11-dev libkrb5-dev libldap2-dev librtmp-dev
libssh2-1-dev libssl1.0-dev | libssl-dev libfftw3-doc gmp-doc libgmp10-doc
libmpfr-doc
下列【新】套件將會被安裝:
julia libamd2 libarpack2 libarpack2-dev libbtf1 libcamd2 libccolamd2
libcholmod3 libcurl4-openssl-dev libcxsparse3 libdsfmt-11213-1
libdsfmt-1279-1 libdsfmt-132049-1 libdsfmt-19937-1 libdsfmt-216091-1
libdsfmt-2203-1 libdsfmt-4253-1 libdsfmt-44497-1 libdsfmt-521-1
libdsfmt-86243-1 libdsfmt-dev libfftw3-bin libfftw3-dev libgmp-dev
libgmpxx4ldbl libklu1 libldl2 libmetis5 libmpfr-dev libopenblas-base
libopenblas-dev libopenlibm2 libopenspecfun-dev libopenspecfun1
libpcre2-16-0 libpcre2-32-0 libpcre2-8-0 libpcre2-dev libpcre2-posix0
librbio2 libspqr2 libsuitesparse-dev libumfpack5 patchelf
下列套件將會被升級:
curl libcurl3
升級 2 個,新安裝 44 個,移除 0 個,有 163 個未被升級。
需要下載 19.9 MB/20.4 MB 的套件檔。
此操作完成之後,會多佔用 112 MB 的磁碟空間。
是否繼續進行 [Y/n]? [Y/n] Y
下載:1 http://archive.raspberrypi.org/debian stretch/main armhf julia armhf 0.6.0-2 [11.0 MB]
..... (略)
讀取改變紀錄(changelogs)... 完成
從套件中提取樣板:100%
(讀取資料庫 ... 目前共安裝了 137724 個檔案和目錄。)
..... (略)
設定 libspqr2:armhf (1:4.5.4-1) ...
設定 libmpfr-dev:armhf (3.1.5-1) ...
設定 libumfpack5:armhf (1:4.5.4-1) ...
設定 libpcre2-dev:armhf (10.22-3) ...
設定 libsuitesparse-dev:armhf (1:4.5.4-1) ...
設定 julia (0.6.0-2) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
安裝完畢在命令列輸入 julia 即進入 shell :
pi@raspberrypi:~ $ julia
__ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: https://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.6.0
_/ |\__'_|_|_|\__'_| |
|__/ | arm-linux-gnueabihf
結果版本很舊, 是 v0.6.0.
# 如何更新Raspbian?
# Raspberry Pi 輕鬆學
# Playing with Julia 1.0 on the Raspberry Pi
2019-10-16 補充 :
目前最新版為 v1.2.0 版.
沒有留言 :
張貼留言