PDA

View Full Version : [ubuntu] Gmsh cannot be installed



davidemontag
December 13th, 2011, 09:36 PM
when I try to install Gmsh (mesh generator) I get some dependency errors :

I seguenti pacchetti presentano dipendenze non soddisfatte:
(Following packages have dependencies unsatisfied)

gmsh: Depends: libc6 (>= 2.7) ma 2.13-20ubuntu5 sta per essere installato
Depends: libgcc1 (>= 1:4.1.1) ma 1:4.6.1-9ubuntu3 sta per essere installato
Depends: libgomp1 (>= 4.2.1) ma 4.6.1-9ubuntu3 sta per essere installato
Depends: libjpeg62 (>= 6b1) ma 6b1-1ubuntu2 sta per essere installato
Depends: libstdc++6 (>= 4.6) ma 4.6.1-9ubuntu3 sta per essere installato
Depends: libcgns2 (>= 2.5.3) ma 2.5.5-1 sta per essere installato

But all packages after ma are already installed.

How shall I proceed??

Tnx

BC59
December 13th, 2011, 10:26 PM
Why don't you use Ubuntu Software center? Which Ubuntu version you are using?

davidemontag
December 13th, 2011, 10:55 PM
I am using 11.10 and tried to update by USC...and I got such a message from it.
I think to have some corrupted packages, how do I recover from it?? anyway, a fresh installation could solve the issue, I guess

BC59
December 13th, 2011, 10:58 PM
There are 2 solutions for the broken packages. Let's try the easy one. Open a terminal CTRL+ALT+T and execute:



sudo dpkg --configure -a and then


sudo apt-get -f install

davidemontag
December 14th, 2011, 08:17 PM
sudo dpkg --configure -a
[sudo] password for davide:
davide@davideUbuntu-K53SV:~$ sudo apt-get -f install
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze
Lettura informazioni sullo stato... Fatto
0 aggiornati, 0 installati, 0 da rimuovere e 33 non aggiornati.
davide@davideUbuntu-K53SV:~$ sudo apt-get install gmsh
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze
Lettura informazioni sullo stato... Fatto
Alcuni pacchetti non possono essere installati. Questo puņ voler dire
che č stata richiesta una situazione impossibile oppure, se si sta
usando una distribuzione in sviluppo, che alcuni pacchetti richiesti
non sono ancora stati creati o sono stati rimossi da Incoming.
Le seguenti informazioni possono aiutare a risolvere la situazione:

I seguenti pacchetti hanno dipendenze non soddisfatte:
gmsh : Dipende: libmed1 (>= 2.3.6) ma non sta per essere installato
E: Impossibile correggere i problemi, ci sono pacchetti danneggiati bloccati.


No luck: as I am working in italian, I hope that you can understand, <fatto means done
but last line says : it is impossible to correct problems, some damaged packages are blocked.

Any idea???

BC59
December 15th, 2011, 01:16 AM
If you don't have installed the application Synaptic, you can install it from Ubuntu Software Center.
Then open it and go to left down panel--Custom filters and then upper left panel Broken.
From Broken choose to restore the broken packages.
Then when you finish, try to install Gmsh from Ubuntu Software center.

davidemontag
December 15th, 2011, 08:24 PM
I have no packages in broken!!!

Next step??

BC59
December 15th, 2011, 09:26 PM
In that case try to install the package libmed1 from Synaptic. If your architecture is 32bits install the package libmed1:i386 instead.

nardis_Miles1
May 27th, 2012, 05:32 AM
The dependencies for gmsh are pretty tangled. If you try to install gmsh, libmed1 is required. If you try to install libmed1, you will find that it depends on libhdf5-openmpi-1.8-4. If you try to install libhdf5-openmpi-1.8-4, you will find that it conflicts with libhdf5-1.8 and libhdf5-1.8.4.

First, all of these dependencies are supposed to be handled invisibly by apt/synaptic, and they are not. Second, the dependencies for libhdf5 seem to be circular. This problem has been around for months. There is no such difficulty in natty. Who knows what the situation is in precise?

Art Edwards