Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing and working with JuliaLang NOT from conda #1254

Closed
valeriupredoi opened this issue Aug 19, 2019 · 2 comments
Closed

Installing and working with JuliaLang NOT from conda #1254

valeriupredoi opened this issue Aug 19, 2019 · 2 comments

Comments

@valeriupredoi
Copy link
Contributor

This is an issue stemmed from #1180 and details how to install and work with Julia and not use the conda-forge installation since that one is dead now (installing it from conda results in a ton of issues, try it yourself!). So, non-conda julia install:

wget https://julialang-s3.julialang.org/bin/linux/x64/1.0/julia-1.0.3-linux-x86_64.tar.gz
tar xfz julia-*-linux-x86_64.tar.gz
ln -s $PWD/julia-*/bin/julia $HOME/$ANACONDA/envs/esmvaltool/bin
which julia
julia --help
julia esmvaltool/install/Julia/setup.jl

softlinking Julia to the $ANACONDA bin is important so that the diagnostic picks up the executable; $ANACONDA is just your anaconda3 repo

If you are behind a firewall (like on Jasmin) you will see something like:

(esmvaltool) [valeriu@jasmin-sci2 esmvaltool]$ julia esmvaltool/install/Julia/setup.jl 
┌ Info: Installing the packages from
└   scriptDir * "/julia_requirements.txt" = "/home/users/valeriu/esmvaltool/esmvaltool/install/Julia/julia_requirements.txt"
┌ Info: Installing
└   pkgName = "ArgParse"
   Cloning default registries into /home/users/valeriu/.julia/registries
   Cloning registry General from "https://github.com/JuliaRegistries/General.git"
ERROR: LoadError: failed to clone from https://github.com/JuliaRegistries/General.git, error: GitError(Code:ERROR, Class:OS, failed to truncate pack file '/home/users/valeriu/.julia/registries/General/.git/objects/pack/pack_git2_COqrfy': Permission denied)
Stacktrace:
 [1] pkgerror(::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Types.jl:120
 [2] #clone#2(::String, ::Base.Iterators.Pairs{Symbol,LibGit2.CachedCredentials,Tuple{Symbol},NamedTuple{(:credentials,),Tuple{LibGit2.CachedCredentials}}}, ::Function, ::String, ::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/GitTools.jl:107
 [3] #clone at ./none:0 [inlined]
...blah blah...

that is easily fixable by shoving in the General index via a simple git clone:

git clone https://github.com/JuliaRegistries/General.git ~/.julia/registries/General

and then repeating the installation of the required packages.

We need this info in the documentation...

@valeriupredoi
Copy link
Contributor Author

edited the documentation in #1259

@valeriupredoi
Copy link
Contributor Author

closed by merging #1259

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant