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

Symbol Lookup Error #26

Closed
juldavid opened this issue Apr 18, 2018 · 8 comments
Closed

Symbol Lookup Error #26

juldavid opened this issue Apr 18, 2018 · 8 comments

Comments

@juldavid
Copy link

juldavid commented Apr 18, 2018

Hello, i'm having a problem to compile CDDLib in Julia.
Apparently, the compiler is unable to link libcddgmp.so to the libgmp

I get the following message when I try to do using CDDLib:

symbol lookup error: /usr/local/lib/libcddgmp.so: undefined symbol: __gmpq_init

libgmp-dev is installed (i tried to remove it and reinstall it)
I also tried to add -lgmp in the build.jl but it does not work either.

Any idea?

@juldavid
Copy link
Author

Actually, I solved the problem by exporting the path of libgmp.so into LD_PRELOAD

@blegat
Copy link
Member

blegat commented Apr 18, 2018

Which distribution are you using ?

@easalgadov
Copy link

I'm facing the same problem, could you please elaborate more on how you solve it?

@blegat
Copy link
Member

blegat commented Jun 13, 2018

@easalgadov where is libgmp.so on your system ? Is it in /usr/local/lib ? What is your operating system ?

@easalgadov
Copy link

@blegat no, it is in the .../julia-d386e40c17/lib/julia. My OS is Ubuntu 18.04

@blegat
Copy link
Member

blegat commented Jun 13, 2018

Could you try doing something like

$ LD_PRELOAD=julia-d386e40c17/lib/julia:$LD_PRELOAD julia -e 'Pkg.build("CDDLib")'

as suggested by @juldavid ?

@trigaut
Copy link

trigaut commented Nov 12, 2018

I had to put this to my .bashrc:
export LD_PRELOAD=yourpath/libgmp.so:$LD_PRELOAD

I had to change LD_PRELOAD not only to build CDDLib.jl but everytime I use CDDLib.jl.

@odow
Copy link
Contributor

odow commented Feb 21, 2024

This should be closed as out-dated. We know ship cddlib_jll which should fix these issues.

@odow odow closed this as completed Feb 22, 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

5 participants