Centos 7 Julia 0.6.4

帮同学安装Julia, 点名要Julia 0.6.4, 说是适配SDDip, 开始Fedora没用过, 坑的飞起, 后来换Centos好一些了, 下面记录一下.

U盘安装Centos7

用U盘给一台新电脑装Centos, 大致是官网下载 centos iso镜像, 用 Rufus 把镜像写入U盘, 电脑进BIOS设置U盘启动, 接下来balbala安装, 中间设置用户名密码, Root密码, 勾选自动分区, 用的英文, 切记还要勾选安装GNOME-Desktop, 不然没有图形界面. 用网线联网比较方便, WiFi比较麻烦. 安装过程可参考: CentOS7安装教程.

root

app or software install must enter root.
terminal enter root: $ su -
exit root: su - your-username

centos WiFi

https://blog.csdn.net/xiaoyu19910321/article/details/78504400

yum

app or software
update: yum update
install: yum install xxx

vscode

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

centos update git

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

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

sddip

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")

sddip example

cd /home/your-username/.julia/v0.6/SDDiP/examples
julia all_blacks.jl

Pkg

julia
Pkg.init()
Pkg.update()
Pkg.clone("https://github.com/odow/SDDP.jl")
Pkg.build("Clp", "Rmath")

github

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

vscode extension

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值