Mac에서 Julia #1
다운로드 및 설치
sh-3.2$ brew cask info julia
julia: 1.0.0
https://julialang.org/
Not installed
From: https://github.com/Homebrew/homebrew-cask/blob/master/Casks/julia.rb
==> Name
Julia
==> Artifacts
Julia-1.0.app (App)
/Applications/Julia-1.0.app/Contents/Resources/julia/bin/julia (Binary)
sh-3.2$
sh-3.2$ brew cask install julia
Updating Homebrew...
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
https://github.com/Homebrew/brew#donations
==> Auto-updated Homebrew!
・・・中略
==> Satisfying dependencies
==> Downloading https://julialang-s3.julialang.org/bin/mac/x64/1.0/julia-1.0.0-mac64.dmg
######################################################################## 100.0%
==> Verifying checksum for Cask julia
==> Installing Cask julia
==> Moving App 'Julia-1.0.app' to '/Applications/Julia-1.0.app'.
==> Linking Binary 'julia' to '/usr/local/bin/julia'.
🍺 julia was successfully installed!
sh-3.2$ julia -v
julia version 1.0.0
sh-3.2$
또,/Applications 이하에도 app가 인스톨 되어, 그것을 더블 클릭하면 이런 화면이 나왔습니다.
Visual Studio Code로 확장
VS Code로 동작 확인
# Hello World
str = "World!"
println("Hello $(str)");
#=
function
=#
add(x,y) = x + y
v = 10;
println(add(v,3));
sh-3.2$ julia test.jl
Hello World!
13
sh-3.2$
Reference
이 문제에 관하여(Mac에서 Julia #1), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/qoAop/items/c4df6794e44da21ee7e4텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)