Unable to install ThinkJulia

Hello All,

OS: Ubuntu 19.10
Julia Version: 1.3.1

I am trying to learn Julia from this book https://benlauwens.github.io/ThinkJulia.jl/latest/book.html. As part of the course I need to install a package called ThinkJulia. While I try to do it, I am getting an error saying that a package name Libuuid won’t get installed. Can I know what binaries I need to install so that things are fixed.

Error Log:

(v1.3) pkg> add https://github.com/BenLauwens/ThinkJulia.jl
  Updating registry at `~/.julia/registries/General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
  Updating git-repo `https://github.com/BenLauwens/ThinkJulia.jl`
[ Info: Assigning UUID d92244c1-9090-5a36-a620-f6fb516cc00e to ThinkJulia
  Updating git-repo `https://github.com/BenLauwens/ThinkJulia.jl`
 Resolving package versions...
ERROR: Unable to automatically install 'Libuuid' from '/home/ak/.julia/packages/Libuuid_jll/3mCHX/Artifacts.toml'
 [1] error(::String) at ./error.jl:33
 [2] #ensure_artifact_installed#42(::Pkg.BinaryPlatforms.Platform, ::Bool, ::typeof(Pkg.Artifacts.ensure_artifact_installed), ::String, ::Dict{String,Any}, ::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Pkg/src/Artifacts.jl:873
1 Like

Hello All,

I solved it by running these two commands on Ubuntu

$ sudo apt-get install uuid-dev


$ sudo apt-get install uuid-runtime

Got clues from this stack overflow post https://stackoverflow.com/questions/1089741/how-do-i-obtain-use-libuuid