You are not logged in.

#1 2015-08-13 06:24:57

Tomi98
Member
Registered: 2015-06-30
Posts: 45

[SOLVED]Error while loading shared librariy "libgmp.so.3"

Dear friends
I installed cadabra from source code, based on structions from here. I do not get any error while installing every package. next, I updated my system. But when I type cadabra in terminal, I get the following.

$ cadabra
cadabra: error while loading shared libraries: libgmp.so.3: cannot open shared object file: No such file or directory

Last edited by Tomi98 (2015-08-13 12:47:26)

Offline

#2 2015-08-13 06:35:53

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,238
Website

Re: [SOLVED]Error while loading shared librariy "libgmp.so.3"

Did you write a PKGBUILD for this? If so, post the PKGBUILD. If not, share the exact commands you used to build.

Offline

#3 2015-08-13 07:00:15

Tomi98
Member
Registered: 2015-06-30
Posts: 45

Re: [SOLVED]Error while loading shared librariy "libgmp.so.3"

No, I did not write any PKGBUILD. I did:

1)First I do

sudo pacman -S gmp

2)Second I do

sudo pacman -S pcre

3) In this step, because I must install "LiE". But its website is down for me. I could not find "LiE" in aur also. So, I compile it from source code with any error. It works very good for itself:

$ lie

LiE version 2.2.2 created on Jun  1 2012 at 16:24:50
Authors: Arjeh M. Cohen, Marc van Leeuwen, Bert Lisser.
Purpose: development CWI


type '?help' for help information
type '?' for a list of help entries.
> 

So, package "LiE" is installed.

4) In this step, I must install "gtk+". But "gtk2" and "gtk3" are installed in my system. So, this is passed.



5) Now I do

sudo pacman -S gtkmm

6) In this step, I must install some of LaTeX packages. I installed them while installing Texlive. So, this is passed too.


7) I installed this with no error.


8) Finally, I installed this with no error too.


9) I restart system and hit in terminal "cadabra" and get my previous post error.

Offline

#4 2015-08-13 07:25:28

remingtontonpon
Member
Registered: 2011-09-16
Posts: 24

Re: [SOLVED]Error while loading shared librariy "libgmp.so.3"

Post the output of these command please.

ls -l /usr/lib/libgmp.so*

and

pacman -Qi gmp

I am sorry if my English is hard to understand. Please ask if you would like me to explain something again.

Offline

#5 2015-08-13 07:36:58

Tomi98
Member
Registered: 2015-06-30
Posts: 45

Re: [SOLVED]Error while loading shared librariy "libgmp.so.3"

Thank you. These are the results:

$ ls -l /usr/lib/libgmp.so*
lrwxrwxrwx 1 root root     16 Feb 15 08:22 /usr/lib/libgmp.so -> libgmp.so.10.2.0
lrwxrwxrwx 1 root root     16 Feb 15 08:22 /usr/lib/libgmp.so.10 -> libgmp.so.10.2.0
-rwxr-xr-x 1 root root 598952 Feb 15 08:22 /usr/lib/libgmp.so.10.2.0

and

$ pacman -Qi gmp
Name           : gmp
Version        : 6.0.0-2
Description    : A free library for arbitrary precision arithmetic
Architecture   : x86_64
URL            : http://gmplib.org/
Licenses       : LGPL3  GPL
Groups         : None
Provides       : None
Depends On     : gcc-libs  sh
Optional Deps  : None
Required By    : cddlib  cln  coreutils  ecl  flintqs  gap  givaro  gmp-ecm
                 guile  iml  lib32-gmp  libgap  mpfr  nettle  ntl  pari-sage
                 ppl  python2-crypto  ruby  zn_poly
Optional For   : None
Conflicts With : None
Replaces       : None
Installed Size : 960.00 KiB
Packager       : Allan McRae <allan@archlinux.org>
Build Date     : Sun 15 Feb 2015 08:22:49 AM IRST
Install Date   : Thu 13 Aug 2015 11:10:18 AM IRDT
Install Reason : Installed as a dependency for another package
Install Script : Yes
Validated By   : Signature

Offline

#6 2015-08-13 09:44:51

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: [SOLVED]Error while loading shared librariy "libgmp.so.3"

Nice, their list of bugs is 404, and last release was two years ago. Anyway, I suspect it includes some binaries in the "source" download, or it uses a absolutely horrible makefile. I'll have a look in a minute.

Edit: You could do a readelf to see exactly what tries to load libgmp.so.3, might not be a direct dep.
Edit2: the log from configure would be nice too

Last edited by Mr.Elendig (2015-08-13 09:50:12)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#7 2015-08-13 10:47:47

remingtontonpon
Member
Registered: 2011-09-16
Posts: 24

Re: [SOLVED]Error while loading shared librariy "libgmp.so.3"

Umm.. It seems no problem.
Did you build it on the same machine?

I tried the same steps with #3, but I couldn't reproduce the problem sad

Just to be sure, please post the output of

objdump -p $(which cadabra) | grep NEEDED

Last edited by remingtontonpon (2015-08-13 11:09:00)


I am sorry if my English is hard to understand. Please ask if you would like me to explain something again.

Offline

#8 2015-08-13 12:46:52

Tomi98
Member
Registered: 2015-06-30
Posts: 45

Re: [SOLVED]Error while loading shared librariy "libgmp.so.3"

Ok. the problem is solved. The line 37 in the makefile of "cadabra" package, is

install -m 0755 xcadabra ${DESTDIR}/usr/local/bin 

I changed it to

install -m 0755 xcadabra ${DESTDIR}/usr/bin 

and my cadabra is working now. It is not important. This is important that I have good friends here that they are ready to help to each other based on kindness and GNU philosophy.

Offline

#9 2015-08-13 23:13:01

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,238
Website

Re: [SOLVED]Error while loading shared librariy "libgmp.so.3"

You really shouldn't hack Makefiles to install outside of /usr/local/ -- writing a PKGBUILD is strongly suggested. Glad your issue is solved though smile

Offline

Board footer

Powered by FluxBB