-
Notifications
You must be signed in to change notification settings - Fork 10
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
Import error- undefined symbol: __gmpq_add #27
Comments
and the same issue as #24 |
Having the same error installing from scratch. I'm trying to set it up for someone else in my lab. She really wants to use and access Memsurfer for analysis so it would be great if someone can look into this error ASAP please! |
Hi @Rickk-B, thank you so much for replying! I've gone through the steps but unfortunately am still having issues with running
Do you have any tips? I suspect it may be an issue with my gmp install but I am not sure. I just used |
@lunamorrow, I've tried again and I think this is an easier fix than the previous one. This time I set up a new conda environment using an .yml file to ensure correct installations. Creating the .yml filename: simulation After creating the .yml file i followed these steps: MemSurfer installation in clean conda environmentconda env create -f memsurfer.yml Creating symlinks to the compilerscd $CONDA_PREFIX/bin Exporting pathsexport CC="$CONDA_PREFIX/bin/gcc" Verification of correct paths and versionswhich gcc Downloading MemSurfergit clone https://github.com/LLNL/MemSurfer.git Script change in setup.pyAdd line 168: LIBS_EXT = ['CGAL','gmp'] Installing depencies and MemSurfercd $MEM_HOME Testing MemSurferimport memsurfer |
When I'm importing memsurfer, I get the following error:
ImportError: /home/nambinik/miniconda3/lib/python3.11/site-packages/memsurfer-1.1.0-py3.11-linux-x86_64.egg/memsurfer/_memsurfer_cmod.so: undefined symbol: __gmpq_add
I believe this might be due to the GMP library not being linked,
With inspiration from an earlier question #3 I added the libgmp libraries to setup.py and reinstalled memsurfer.
Specifically changed lines 228,234 and 235
include_dirs=[PATH_PM, numpy.get_include(),
PATHS['boost']['include'],
PATHS['eigen']['include'],
PATHS['cgal']['include'],
'/opt/local/include','/usr/include/x86_64-linux-gnu'
],
LIBS_EXT.append('gmp')
libraries=LIBS_EXT,
library_dirs=[PATHS['cgal']['lib'],'/usr/lib/x86_64-linux-gnu/']
Still get the same error though. How would one go about getting around this error?
Best
Nikhil
The text was updated successfully, but these errors were encountered: