I got this error when I tried to install libgmp3: libgmp3-dev : Depends: libgmp-dev (= 2:5.1.3+dfsg-1ubuntu1) but 2:6.0.0+dfsg-6ubuntu1 is to be installed
I am trying to run a program with depends on libgmp3. I found out that I already have libgmp 10 installed but that does not work for the program. Trying to install libgmp3 gave me this error: libgmp3-dev : Depends: libgmp-dev (= 2:5.1.3+
Please, how can this problem be resolved? Thanks.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu gmp Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Revision history for this message
|
#1 |
What is the output of:
lsb_release -a; uname -a; apt-cache policy libgmp3 libgmp3-dev
Thanks
Revision history for this message
|
#2 |
That's one command, it may wrap in your email or the forum web page but copy it as one command and run it. Copy the output and paste as an update on:
https:/
Thanks
Revision history for this message
|
#3 |
LSB Version: core-2.
Distributor ID: Ubuntu
Here is the output of lsb_release -a; uname -a; apt-cache policy libgmp3 libgmp3-dev:
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
Linux dorchester 4.4.0-59-generic #80~14.04.1-Ubuntu SMP Fri Jan 6 18:02:02 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
libgmp3:
Installed: (none)
Candidate: (none)
Version table:
libgmp3-dev:
Installed: (none)
Candidate: 2:5.1.3+
Version table:
2:
500 http://
Thanks.
Revision history for this message
|
#4 |
Here is the output of lsb_release -a; uname -a; apt-cache policy libgmp3 libgmp3-dev:
LSB Version: core-2.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
Linux dorchester 4.4.0-59-generic #80~14.04.1-Ubuntu SMP Fri Jan 6 18:02:02 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
libgmp3:
Installed: (none)
Candidate: (none)
Version table:
libgmp3-dev:
Installed: (none)
Candidate: 2:5.1.3+
Version table:
2:
500 http://
Revision history for this message
|
#5 |
What is the output of
apt-cache policy libgmp-dev
Revision history for this message
|
#6 |
I got this :
libgmp-dev:
Installed: 2:6.0.0+
Candidate: 2:6.0.0+
Version table:
*** 2:6.0.0+
100 /var/lib/
2:
500 http://
Revision history for this message
|
#7 |
How did you install version 2:6.0.0+
That is the version for vivid, and not the one for trusty!
What is the output of the command
dpkg -l | grep 6.0.0+dfsg-6ubuntu1
Revision history for this message
|
#8 |
I got this for dpkg -l | grep 6.0.0+dfsg-
ii libgmp-dev:amd64 2:6.0.0+
ii libgmp10:amd64 2:6.0.0+
ii libgmpxx4ldbl:amd64 2:6.0.0+
Revision history for this message
|
#9 |
From what I see I conclude that you have already installed three gmp packages from a different Ubuntu release. If you now need an additional gmp package, you can either deinstall these three packages and install the standard version, or you have to try installing libgmp3-dev in the same wrong version as the others.
Do you have an idea where these gmp version 2:6.0.0+
Revision history for this message
|
#10 |
No, I don't know how they got installed.
On Thu, Feb 16, 2017 at 3:08 PM, Manfred Hampl <
<email address hidden>> wrote:
> Your question #463668 on gmp in Ubuntu changed:
> https:/
>
> Status: Needs information => Answered
>
> Manfred Hampl proposed the following answer:
> >From what I see I conclude that you have already installed three gmp
> packages from a different Ubuntu release. If you now need an additional
> gmp package, you can either deinstall these three packages and install
> the standard version, or you have to try installing libgmp3-dev in the
> same wrong version as the others.
>
> Do you have an idea where these gmp version 2:6.0.0+
> packages are coming from?
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https:/
> 463668/
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https:/
>
> You received this question notification because you asked the question.
>
Revision history for this message
|
#11 |
Do you suggest that I uninstall the versions of gmp that I currently have?
On Thu, Feb 16, 2017 at 3:22 PM, Erinfolami Rukayat Ayomide <
<email address hidden>> wrote:
> Your question #463668 on gmp in Ubuntu changed:
> https:/
>
> Status: Answered => Open
>
> You are still having a problem:
> No, I don't know how they got installed.
>
> On Thu, Feb 16, 2017 at 3:08 PM, Manfred Hampl <
> <email address hidden>> wrote:
>
> > Your question #463668 on gmp in Ubuntu changed:
> > https:/
> >
> > Status: Needs information => Answered
> >
> > Manfred Hampl proposed the following answer:
> > >From what I see I conclude that you have already installed three gmp
> > packages from a different Ubuntu release. If you now need an additional
> > gmp package, you can either deinstall these three packages and install
> > the standard version, or you have to try installing libgmp3-dev in the
> > same wrong version as the others.
> >
> > Do you have an idea where these gmp version 2:6.0.0+
> > packages are coming from?
> >
> > --
> > If this answers your question, please go to the following page to let us
> > know that it is solved:
> > https:/
> > 463668/
> >
> > If you still need help, you can reply to this email or go to the
> > following page to enter your feedback:
> > https:/
> >
> > You received this question notification because you asked the question.
> >
>
> --
> You received this question notification because you asked the question.
>
Revision history for this message
|
#12 |
Due to the fact that I do not know the background why these versions are installed, I can neither recommend uninstalling nor keeping them.
To check the potential consequences of removing them, what is the output of
apt-get --simulate remove libgmp-dev libgmp10 libgmpxx4ldbl
Revision history for this message
|
#13 |
Here is the output I got:
NOTE: This is only a simulation!
apt-get needs root privileges for real execution.
Keep also in mind that locking is deactivated,
so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
alex : Depends: libgmp10 but it is not going to be installed
cabal-install : Depends: libgmp10 but it is not going to be installed
cpp-4.8 : Depends: libgmp10 but it is not going to be installed
g++-4.8 : Depends: libgmp10 but it is not going to be installed
gcc-4.8 : Depends: libgmp10 but it is not going to be installed
ghc : Depends: libgmp-dev but it is not going to be installed
Depends: libgmp10 but it is not going to be installed
ghc-haddock : Depends: libgmp10 but it is not going to be installed
guile-2.0-libs : Depends: libgmp10 but it is not going to be installed
happy : Depends: libgmp10 but it is not going to be installed
libcloog-isl4 : Depends: libgmp10 but it is not going to be installed
libisl10 : Depends: libgmp10 but it is not going to be installed
libmpc3 : Depends: libgmp10 but it is not going to be installed
libmpfr4 : Depends: libgmp10 but it is not going to be installed
librasqal3 : Depends: libgmp10 but it is not going to be installed
linux-
llvm-3.4-dev : Depends: libgmp10 but it is not going to be installed
python-crypto : Depends: libgmp10 but it is not going to be installed
python3-crypto : Depends: libgmp10 but it is not going to be installed
stack : Depends: libgmp-dev but it is not going to be installed
swi-prolog-nox : Depends: libgmp10 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Revision history for this message
|
#14 |
The output shows that several programs are dependent on libgmp10 and/or libgmp-dev.
I therefore recommend to better keep the existing versions of the already installed packages, and to add the libgmp3-dev package in the same (wrong) version.
Try downloading https:/
Revision history for this message
|
#15 |
I downloaded and installed the file, but I still get the same error when running the program: error while loading shared libraries: libgmp.so.3: cannot open shared object file: No such file or directory
I ran this command again "dpkg -l | grep 6.0.0+dfsg-
ii libgmp-dev:amd64 2:6.0.0+
ii libgmp10:amd64 2:6.0.0+
ii libgmp3-dev 2:6.0.0+
ii libgmpxx4ldbl:amd64 2:6.0.0+
I can now find libgmp3-dev in the list, but the error still persists.
Revision history for this message
|
#16 |
"error while loading shared libraries: libgmp.so.3: cannot open shared object file: No such file or directory" is something that you cannot solve by installing libgmp3-dev of trusty or vivid.
You would need a package that provides libgmp.so.3, but this does no more exist on current Ubuntu versions.
The only one I find is libgmp3c2 in precise, but I do not know whether this can be installed on trusty without problems.
You probably better search for an updated application that works with libgmp10 instead of libgmp3.
Revision history for this message
|
#17 |
Okay. Thank you so much for your support.
Can you help with this problem?
Provide an answer of your own, or ask Erinfolami Rukayat Ayomide for more information if necessary.