Julia-1.5.1 build error on ubuntu-mate

I have build error when trying to build latest 1.5.1 on ubuntu Linux vad-1025C 5.3.0-61-generic #55~18.04.1-Ubuntu SMP Mon Jun 22 16:40:46 UTC 2020 i686 i686 i686 GNU/Linux

vad@vad-1025C:~/julia/julia-1.5.1$ make
Warning: git information unavailable; versioning information limited
Warning: git information unavailable; versioning information limited
Warning: git information unavailable; versioning information limited
/bin/sh: 1: gfortran: not found
Traceback (most recent call last):
  File "/home/vad/julia/julia-1.5.1/contrib/normalize_triplet.py", line 120, in <module>
    }[list(filter(lambda x: re.match("\d+\.\d+(\.\d+)?", x), sys.argv[2].split()))[-1].split('.')[0]]
IndexError: list index out of range
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   453  100   453    0     0    745      0 --:--:-- --:--:-- --:--:--   743
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found
/home/vad/julia/julia-1.5.1/deps/suitesparse.mk:144: recipe for target '/home/vad/julia/julia-1.5.1/deps/srccache/SuiteSparse.v5.4.0-6..tar.gz' failed
make[1]: *** [/home/vad/julia/julia-1.5.1/deps/srccache/SuiteSparse.v5.4.0-6..tar.gz] Error 22
Makefile:60: recipe for target 'julia-deps' failed
make: *** [julia-deps] Error 2

obviously error is in extra dot in SuiteSparse.v5.4.0-6..tar.gz - but how do I fix it?

thank you in advance

/bin/sh: 1: gfortran: not found

You need to install gfortran.

3 Likes

thank you, that helped! :+1:t2:

though, seems like missing gfortran made configuration scripts out of control

( for the future readers - with similar problems )

build doc ( v1.5.1 ) :

relevant part:

β€œOn Debian-based distributions (e.g. Ubuntu), you can easily install them with apt-get:”

sudo apt-get install build-essential libatomic1 python gfortran perl wget m4 cmake pkg-config

2 Likes