oscar-system / Polymake.jl

Interface to Polymake using CxxWrap
Other
28 stars 19 forks source link

ERROR: LoadError: libcxxwrap_julia_jll not available on this platform #476

Closed ZacharieALES closed 6 months ago

ZacharieALES commented 7 months ago

I am trying to install Polymake for the first time on linux with julia 1.10.0. I installed the boost library. I installed Polymake from soruce using the following procedure:

export POLYMAKE_GIT=GIT_FOLDER                                                                                        
export POLYMAKE_INSTALL=INSTALL_FOLDER                                                                                
git clone git@github.com:polymake/polymake $POLYMAKE_GIT                                                              
cd $POLYMAKE_GIT                                                                                                      
./configure --prefix=$POLYMAKE_INSTALL                                                                                
ninja -C build/Opt                                                                                                    
ninja -C build/Opt install                                                                                            
export POLYMAKE_CONFIG=$POLYMAKE_INSTALL/bin/polymake-config

When I try to build polymake I get the following error:

julia> Pkg.build("Polymake")
    Building CMake ────→ `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/50a8b41d2c562fccd9ab841085fc7d1e2706da82/build.log`
    Building LoadFlint → `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/5fe2c30277157eca21b394d785e2d056cabf5a04/build.log`
    Building Polymake ─→ `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/cb92036df48a1aee82914a8e09eef9cd59ce7af0/build.log`
ERROR: Error building `Polymake`: 
ERROR: LoadError: libcxxwrap_julia_jll not available on this platform
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:35
 [2] top-level scope
   @ ~/.julia/packages/CxxWrap/OcN1Z/src/CxxWrap.jl:18
 [3] include
   @ Base ./Base.jl:495 [inlined]
 [4] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::String)
   @ Base ./loading.jl:2216
 [5] top-level scope
   @ stdin:3
in expression starting at /home/zach/.julia/packages/CxxWrap/OcN1Z/src/CxxWrap.jl:1
in expression starting at stdin:3
ERROR: LoadError: Failed to precompile CxxWrap [1f15a43c-97ca-5a2a-ae31-89f07a497df4] to "/home/zach/.julia/compiled/v1.10/CxxWrap/jl_fjShZj".
Stacktrace:
...

Is it a bug? Did I do something wrong?

lkastner commented 7 months ago

Is it strictly necessary for you to use polymake built from source? Otherwise, please try just

]add Polymake

in Julia and it should work just like a normal Julia package.