[Solved] Error when adding Images package

Hello, I’m starting out with Julia. I’m running on Arch Linux, and installed julia using pacman (not from source). I’m running v1.0. So, when I started adding packages, the first one (FileIO) was fine. I then tried to add Images, and got the following error.

┌ Error: Error building `SpecialFunctions`: 
│   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
│                                  Dload  Upload   Total   Spent    Left  Speed
100   128    0   128    0     0    223      0 --:--:-- --:--:-- --:--:--   223
100   129    0   129    0     0    165      0 --:--:-- --:--:-- --:--:--   165
100  118k    0  118k    0     0  69232      0 --:--:--  0:00:01 --:--:--  302k
│ gfortran -m64 -O2 -fPIC  -fPIC -c amos/d1mach.f -o amos/d1mach.f.o
│ make: gfortran: Command not found
│ make: *** [Make.inc:69: amos/d1mach.f.o] Error 127
│ ┌ Warning: Could not extract the platform key of https://github.com/JuliaMath/OpenspecfunBuilder/releases/download/v0.5.3-1/libopenspecfun.x86_64-linux-gnu.tar.gz; continuing...
│ └ @ BinaryProvider ~/.julia/packages/BinaryProvider/UTYxu/src/Prefix.jl:224
│ [ Info: Downloading https://github.com/JuliaMath/OpenspecfunBuilder/releases/download/v0.5.3-1/libopenspecfun.x86_64-linux-gnu.tar.gz to /home/jbrown/.julia/packages/SpecialFunctions/KvXoO/deps/usr/downloads/libopenspecfun.x86_64-linux-gnu.tar.gz...
│ [ Info: Downloading https://github.com/JuliaLang/openlibm/archive/v0.5.4.tar.gz to /tmp/juliaFkgW9y-download.gz...
│ [ Info: No hash cache found
│ [ Info: Calculated hash 9a8ae1d17825a4a6a4c013d36a7f4348b27c47eedb6549c521ecc9c79d021c13 for file /tmp/juliaFkgW9y-download.gz
│ [ Info: Unpacking /tmp/juliaFkgW9y-download.gz into /home/jbrown/.julia/packages/SpecialFunctions/KvXoO/deps/src...
│ [ Info: Attempting to create directory /home/jbrown/.julia/packages/SpecialFunctions/KvXoO/deps/downloads
│ [ Info: Downloading file https://github.com/JuliaLang/openspecfun/archive/v0.5.3.tar.gz
│ [ Info: Done downloading file https://github.com/JuliaLang/openspecfun/archive/v0.5.3.tar.gz
│ [ Info: Attempting to create directory /home/jbrown/.julia/packages/SpecialFunctions/KvXoO/deps/src
│ [ Info: Directory /home/jbrown/.julia/packages/SpecialFunctions/KvXoO/deps/src already exists
│ [ Info: Attempting to create directory /home/jbrown/.julia/packages/SpecialFunctions/KvXoO/deps
│ [ Info: Directory /home/jbrown/.julia/packages/SpecialFunctions/KvXoO/deps already exists
│ [ Info: Attempting to create directory /home/jbrown/.julia/packages/SpecialFunctions/KvXoO/deps/builds
│ [ Info: Changing directory to /home/jbrown/.julia/packages/SpecialFunctions/KvXoO/deps/src/openspecfun-0.5.3
│ [ Info: Attempting to create directory /home/jbrown/.julia/packages/SpecialFunctions/KvXoO/deps/usr/lib
│ [ Info: Directory /home/jbrown/.julia/packages/SpecialFunctions/KvXoO/deps/usr/lib already exists
│ ERROR: LoadError: LoadError: failed process: Process(`make install ARCH=x86_64 'CC=gcc -m64' 'FC=gfortran -m64' USECLANG=0 USEGCC=1 USE_OPENLIBM=1 'CFLAGS=-O3 -std=c99' 'FFLAGS=-O2 -fPIC' "LDFLAGS=-L/home/jbrown/.julia/packages/SpecialFunctions/KvXoO/deps/usr/lib -Wl,-rpath,'\$\$ORIGIN' -Wl,-z,origin" DESTDIR= prefix= libdir=/home/jbrown/.julia/packages/SpecialFunctions/KvXoO/deps/usr/lib includedir=/home/jbrown/.julia/packages/SpecialFunctions/KvXoO/deps/usr/include O=`, ProcessExited(2)) [2]
│ Stacktrace:
│  [1] run(::Cmd) at ./process.jl:651
│  [2] macro expansion at ./logging.jl:308 [inlined]
│  [3] run(::BinDeps.SynchronousStepCollection) at /home/jbrown/.julia/packages/BinDeps/ZEval/src/BinDeps.jl:518
│  [4] run(::FileRule) at /home/jbrown/.julia/packages/BinDeps/ZEval/src/BinDeps.jl:483
│  [5] macro expansion at ./logging.jl:308 [inlined]
│  [6] run(::BinDeps.SynchronousStepCollection) at /home/jbrown/.julia/packages/BinDeps/ZEval/src/BinDeps.jl:518
│  [7] macro expansion at ./logging.jl:308 [inlined]
│  [8] run(::BinDeps.SynchronousStepCollection) at /home/jbrown/.julia/packages/BinDeps/ZEval/src/BinDeps.jl:518
│  [9] satisfy!(::BinDeps.LibraryDependency, ::Array{DataType,1}) at /home/jbrown/.julia/packages/BinDeps/ZEval/src/dependencies.jl:944
│  [10] satisfy!(::BinDeps.LibraryDependency) at /home/jbrown/.julia/packages/BinDeps/ZEval/src/dependencies.jl:922
│  [11] top-level scope at /home/jbrown/.julia/packages/BinDeps/ZEval/src/dependencies.jl:977
│  [12] include(::String) at ./client.jl:388
│  [13] top-level scope at /home/jbrown/.julia/packages/SpecialFunctions/KvXoO/deps/build.jl:49
│  [14] include(::String) at ./client.jl:388
│  [15] top-level scope at none:0
│ in expression starting at /home/jbrown/.julia/packages/SpecialFunctions/KvXoO/deps/scratch.jl:117
│ in expression starting at /home/jbrown/.julia/packages/SpecialFunctions/KvXoO/deps/build.jl:2
│ [11:38:03] #=#=#                                                                      [11:38:03] ##O#- #                                                                      [11:38:03] ##O=#  #                                                                     [11:38:03] #=#=-#  #                                                                    [11:38:03] -#O#- #   #                                                                  [11:38:04] -=#=#   #   #                                                                [11:38:04] -=O#- #  #    #                                                              [11:38:04] #####                                                                      7.[11:38:04] #####                                                                      7.[11:38:04] ##########                                                                15.[11:38:04] ###########################                                               37.[11:38:05] ######################################################                    75.[11:38:05] ######################################################################## 100.0%
│ [11:38:09] #=#=#                                                                      [11:38:09] ##O#- #                                                                      [11:38:09] ##O=#  #                                                                     [11:38:09] #=#=-#  #                                                                    [11:38:09] -#O#- #   #                                                                  [11:38:10] -=#=#   #   #                                                                [11:38:10] -=O#- #  #    #                                                              [11:38:10] -=O=#  #   #   #                                                             [11:38:10] -=O=-#  #    #   #                                                           [11:38:10] -=O=- #   #   #     #                                                        [11:38:10]  -=O=-  #   #   #     #                                                      [11:38:10]   -=O=-  #    #    #    #                                                    [11:38:11]    -=O=-   #   #     #    #                                                  [11:38:11] 
└ @ 

Is there something else I need to install (gfortran, maybe?), or did I make a mistake in my installation and set up? Any guidance would be appreciated. Thank you!

Figured out the error. Needed the gcc-fortran package (or at least needed to update it). I installed gcc-fortran, ran build SpecialFunctions from the Julia REPL, and then reran the script I was trying to when I found the error.

1 Like