Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ZacharieALES opened this issue Mar 6, 2024 · 1 comment
Closed

Comments

@ZacharieALES
Copy link

ZacharieALES commented Mar 6, 2024

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 [email protected]: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
Copy link
Member

lkastner commented Mar 6, 2024

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.

@benlorenz benlorenz closed this as not planned Won't fix, can't repro, duplicate, stale Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants