Sign up ×
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 (libc6,x86-64) => /usr/lib/ (libc6,x86-64) => /usr/lib/ (libc6,x86-64) => /usr/local/lib/ (libc6,x86-64) => /usr/lib/ (libc6,x86-64) => /usr/local/lib/ (libc6,x86-64) => /usr/lib/

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/ undefined symbol: __gmpz_powm_sec

Charm shared libraries cannot find libgmp. How can i fix that? I made an ldd and it uses In my system is placed under /usr/lib so added this line under te 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 that causes most of the problems i see that it is linked ton : ldd => (0x00007fff347ff000) => /usr/lib/ (0x00007fd4b9014000) => /lib/ (0x00007fd4b8c85000) => /lib/x86_64-linux-gnu/ (0x00007fd4b8a66000) => /lib/x86_64-linux-gnu/ (0x00007fd4b86ce000) => /lib/x86_64-linux-gnu/ (0x00007fd4b84ca000) => /lib/x86_64-linux-gnu/ – curious Oct 31 '13 at 11:45
also there is no libgmp5-dev package – curious Oct 31 '13 at 11:45

Your Answer


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.