Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am trying to install Charm crypto python framework in ubuntu 11.04 with python 2.7. Requirements say that i should have gmp installed 5.*. I have successfully installed gmp lib and i have run all the tests. Also after running `

ldconfig -p |grep libgmp

libgmpxx.so.4 (libc6,x86-64) => /usr/lib/libgmpxx.so.4
libgmpxx.so (libc6,x86-64) => /usr/lib/libgmpxx.so
libgmp.so.10 (libc6,x86-64) => /usr/local/lib/libgmp.so.10
libgmp.so.3 (libc6,x86-64) => /usr/lib/libgmp.so.3
libgmp.so (libc6,x86-64) => /usr/local/lib/libgmp.so
libgmp.so (libc6,x86-64) => /usr/lib/libgmp.so

In order to install Charm i have downloaded it from here. I run ./configure, make , make install, and sdconfig as the INSTALL says.

But after running make test for i am getting a lot of errors of this form:

charm/Charm-Crypto-0.43/charm/core/math/integer.so: undefined symbol: __gmpz_powm_sec

Charm shared libraries cannot find libgmp. How can i fix that? I made an ldd integer.so and it uses libgmp.so.3. In my system libgmp.so.3 is placed under /usr/lib so added this line under te config.mk file of the Charm framework:

LDFLAGS= -m64 -L/usr/lib . 

(-m64 was already there). I make and make install again but i am getting the same error

share|improve this question

1 Answer 1

It might be just you didn't install the dev lib for gmp, try:

sudo apt-get install libgmp-dev

Then re-do configure/make/etc. for Charm

share|improve this answer
    
I have already installed it. The correct name is libgmp3-dev –  curious Oct 31 '13 at 8:23
    
@curious Charm required libgmp 5, libgmp3-dev is only for libgmp 3 –  number5 Oct 31 '13 at 11:42
    
but making an ldd to integer.so that causes most of the problems i see that it is linked ton libgmp3.so : ldd integer.so linux-vdso.so.1 => (0x00007fff347ff000) libgmp.so.3 => /usr/lib/libgmp.so.3 (0x00007fd4b9014000) libcrypto.so.0.9.8 => /lib/libcrypto.so.0.9.8 (0x00007fd4b8c85000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fd4b8a66000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd4b86ce000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fd4b84ca000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 –  curious Oct 31 '13 at 11:45
    
also there is no libgmp5-dev package –  curious Oct 31 '13 at 11:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.