Install fails
Closed this issue · 2 comments
dpo commented
Trying to install CUTEst.jl:
julia> Pkg.build("CUTEst")
INFO: Building CUTEst
--2017-12-01 01:31:34-- https://raw.githubusercontent.com/abelsiqueira/linux-cutest/v0.2.1/install.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.136.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.136.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5594 (5.5K) [text/plain]
Saving to: ‘install.sh’
100%[====================================================================>] 5,594 --.-K/s in 0s
2017-12-01 01:31:35 (71.1 MB/s) - ‘install.sh’ saved [5594/5594]
linux-installer Copyright (C) 2016 Abel Soares Siqueira
This program comes with ABSOLUTELY NO WARRANTY;
This is free software, and you are welcome to redistribute it
under certain conditions; see LICENSE.md for details.
/usr/local/lib
/usr/local/lib
/usr/lib
/usr/lib/gcc/x86_64-linux-gnu/
find: ‘/usr/lib/gcc/x86_64-linux-gnu/’: No such file or directory
==============================================[ ERROR: CUTEst ]===============================================
LoadError: failed process: Process(`bash install.sh`, ProcessExited(1)) [1]
while loading /home/dorban/.julia/v0.6/CUTEst/deps/build.jl, in expression starting on line 96
I think the system is CentOS 7:
$ cat /proc/version
Linux version 3.10.0-693.5.2.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC) ) #1 SMP Fri Oct 20 20:32:50 UTC 2017
I think it would be safer to use something like
findout=$(find /usr/lib/gcc/x86_64-linux-gnu/ -name "libgfortran.so 2>/dev/null" || echo "notfound")
if [[ "$findout" == "$notfound" ]]; then
...
fi
dpo commented
Changing all the find
s as above fixes the issue but I see some sudo ln -s ...
in the script that aren't realistic on servers. There must be a way to link a library inside ~/.julia/v0.6/CUTEst/deps/...
?!
abelsiqueira commented
Thanks for the find
code. For the linking, I don't think it's very complicated, I'll try to work something today.