帮同学安装Julia, 点名要Julia 0.6.4, 说是适配SDDip, 开始Fedora没用过, 坑的飞起, 后来换Centos好一些了, 下面记录一下.
用U盘给一台新电脑装Centos, 大致是官网下载 centos iso镜像, 用 Rufus 把镜像写入U盘, 电脑进BIOS设置U盘启动, 接下来balbala安装, 中间设置用户名密码, Root密码, 勾选自动分区, 用的英文, 切记还要勾选安装GNOME-Desktop, 不然没有图形界面. 用网线联网比较方便, WiFi比较麻烦. 安装过程可参考: CentOS7安装教程.
app or software install must enter root.
terminal enter root: $ su -
exit root: su - your-username
https://blog.csdn.net/xiaoyu19910321/article/details/78504400
app or software
update: yum update
install: yum install xxx
https://code.visualstudio.com/docs/setup/linux#_rhel-fedora-and-centos-based-distributions
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'
su -
yum check-update
yum install code
su -
yum install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-1.noarch.rpm
yum install git
git --version
julia 0.6.4 download: https://julialang.org/downloads/oldreleases.html
unzip to /home/yyp/Documents/
enter root: $ su -
add link: # ln -s /home/yyp/Documents/julia-9d11f62bcb/bin/julia /bin/julia
then in any terminal, open julia by enter julia
https://blog.csdn.net/mifangdebaise/article/details/81091026
https://blog.csdn.net/mifangdebaise/article/details/81091026
https://github.com/lkapelevich/SDDiP.jl
terminal enter julia: julia
julia> Pkg.init()
julia> Pkg.update()
julia> Pkg.clone("https://github.com/odow/SDDP.jl")
julia> Pkg.update()
julia> Pkg.clone("https://github.com/lkapelevich/SDDiP.jl")
julia> Pkg.update()
or julia> Pkg.add("SDDP")
cd /home/your-username/.julia/v0.6/SDDiP/examples
julia all_blacks.jl
julia
Pkg.init()
Pkg.update()
Pkg.clone("https://github.com/odow/SDDP.jl")
Pkg.build("Clp", "Rmath")
Could not resolve host: github.com
https://blog.csdn.net/zhenfengshisan/article/details/57566709
ping github.com
vi /etc/hosts
192.30.255.112 github.com
Julia
Code Runner
julia helloworld: https://juliabyexample.helpmanual.io/
Filename: hello_world.jl
println("hello world")
Run:julia hello_world.jl
If you install Code Runner extension in VSCode, you can click the triangle symbol to run.