However, now I would like to install the Julia-package. So I did
Code: Select all
export POLYMAKE_CONFIG="~/Documents/polymake/bin/polymake-config"
Code: Select all
]add Polymake.jl
But building Polymake.jl gives this error:
Code: Select all
┌ Error: Error building `Polymake`:
│ -- The C compiler identification is AppleClang 10.0.1.10010046
│ -- The CXX compiler identification is AppleClang 10.0.1.10010046
│ -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
│ -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
│ -- Detecting C compiler ABI info
│ -- Detecting C compiler ABI info - done
│ -- Detecting C compile features
│ -- Detecting C compile features - done
│ -- Check for working CXX compiler: /usr/bin/g++
│ -- Check for working CXX compiler: /usr/bin/g++ -- works
│ -- Detecting CXX compiler ABI info
│ -- Detecting CXX compiler ABI info - done
│ -- Detecting CXX compile features
│ -- Detecting CXX compile features - done
│ -- Found Julia executable: /Applications/Julia-1.1.app/Contents/Resources/julia/bin/julia
│ -- Julia_VERSION_STRING: 1.1.0
│ -- Julia_INCLUDE_DIRS: /Applications/Julia-1.1.app/Contents/Resources/julia/include/julia
│ -- Julia_LIBRARY_DIR: /Applications/Julia-1.1.app/Contents/Resources/julia/lib
│ -- Julia_LIBRARY: /Applications/Julia-1.1.app/Contents/Resources/julia/lib/libjulia.dylib
│ -- JULIA_HOME: /Applications/Julia-1.1.app/Contents/Resources/julia/bin
│ -- Julia_LLVM_VERSION: v6.0.1
│ -- Julia_WORD_SIZE: 64
│ -- Found Julia: /Applications/Julia-1.1.app/Contents/Resources/julia/lib/libjulia.dylib (found version "1.1.0")
│ -- Configuring done
│ -- Generating done
│ -- Build files have been written to: /Users/JSchmitt/.julia/packages/Polymake/ZrnNN/deps/src
│ Scanning dependencies of target polymake
│ [ 16%] Building CXX object CMakeFiles/polymake.dir/polymake.cpp.o
│ [ 16%] Building CXX object CMakeFiles/polymake.dir/polymake_arrays.cpp.o
│ In file included from /Users/JSchmitt/.julia/packages/Polymake/ZrnNN/deps/src/polymake.cpp:1:
│ In file included from /Users/JSchmitt/.julia/packages/Polymake/ZrnNN/deps/src/polymake_includes.h:18:
│ In file included from /Users/JSchmitt/Documents/polymake/include/polymake/IncidenceMatrix.h:20:
│ In file included from /Users/JSchmitt/Documents/polymake/include/polymake/next/IncidenceMatrix.h:28:
│ In file included from /Users/JSchmitt/Documents/polymake/include/polymake/permutations.h:21:
│ In file included from /Users/JSchmitt/Documents/polymake/include/polymake/Integer.h:20:
│ In file included from /Users/JSchmitt/.julia/packages/Polymake/ZrnNN/deps/src/polymake_arrays.cpp:1:
│ In file included from /Users/JSchmitt/.julia/packages/Polymake/ZrnNN/deps/src/polymake_includes.h:18:
│ In file included from /Users/JSchmitt/Documents/polymake/include/polymake/IncidenceMatrix.h:20:
│ In file included from /Users/JSchmitt/Documents/polymake/include/polymake/next/IncidenceMatrix.h:28:
│ In file included from /Users/JSchmitt/Documents/polymake/include/polymake/permutations.h:21:
│ In file included from /Users/JSchmitt/Documents/polymake/include/polymake/Integer.h:20:
│ /Users/JSchmitt/Documents/polymake/include/polymake/next/Integer.h:30:10: fatal error: 'gmp.h' file not found
│ /Users/JSchmitt/Documents/polymake/include/polymake/next/Integer.h:30:10: fatal error: 'gmp.h' file not found
│ #include <gmp.h>
│ ^~~~~~~
│ #include <gmp.h>
│ ^~~~~~~
│ 1 error generated.
│ 1 error generated.
│ make[2]: *** [CMakeFiles/polymake.dir/polymake.cpp.o] Error 1
│ make[2]: *** Waiting for unfinished jobs....
│ make[2]: *** [CMakeFiles/polymake.dir/polymake_arrays.cpp.o] Error 1
│ make[1]: *** [CMakeFiles/polymake.dir/all] Error 2
│ make: *** [all] Error 2
│ ERROR: LoadError: failed process: Process(`make -j2`, ProcessExited(2)) [2]
│ Stacktrace:
│ [1] error(::String, ::Base.Process, ::String, ::Int64, ::String) at ./error.jl:42
│ [2] pipeline_error at ./process.jl:785 [inlined]
│ [3] #run#515(::Bool, ::Function, ::Cmd) at ./process.jl:726
│ [4] run(::Cmd) at ./process.jl:724
│ [5] top-level scope at none:0
│ [6] include at ./boot.jl:326 [inlined]
│ [7] include_relative(::Module, ::String) at ./loading.jl:1038
│ [8] include(::Module, ::String) at ./sysimg.jl:29
│ [9] include(::String) at ./client.jl:403
│ [10] top-level scope at none:0
│ in expression starting at /Users/JSchmitt/.julia/packages/Polymake/ZrnNN/deps/build.jl:140
└ @ Pkg.Operations /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.1/Pkg/src/Operations.jl:1075
Does anybody have any advice on how to tell the build.jl-script where it can find the libraries? Many thanks in advance!
Note, that I also tried to use the polymake_start_julia.jl as described here: https://polymake.org/doku.php/install/m ... l_in_julia. But even after adjusting the path to my polymake-directory that did not work at all (which I pretty much expected since I am not using the bundle).