Opened 9 years ago

Closed 9 years ago

#3433 closed defect (fixed)

libomantlr3.so not found on nightly build

Reported by: Michael Wetter Owned by: Adeel Asghar
Priority: high Milestone:
Component: Installation program Version: trunk
Keywords: Cc:

Description

Hi

I installed OpenModelica on Ubuntu 14.04 64 bit using the command below.

$ sudo apt-get install openmodelica 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  clang drcontrol drmodelica libdbus-1-dev libdom4j-java libjaxen-java
  libjdom1-java libomplot libsaxonb-java libsundials-cvode1
  libsundials-cvodes2 libsundials-ida2 libsundials-idas0 libsundials-serial
  libsundials-serial-dev libxom-java libxpp2-java libxpp3-java omc omedit
  omlib-complex-3.2.1 omlib-modelica-3.2.1 omlib-modelicareference
  omlib-modelicaservices-3.2.1 omnotebook omplot omshell omshell-terminal
  python-beautifulsoup xsltproc
Suggested packages:
  libdom4j-java-doc libjdom1-java-doc libsaxonb-java-doc libxom-java-doc
The following NEW packages will be installed:
  clang drcontrol drmodelica libdbus-1-dev libdom4j-java libjaxen-java
  libjdom1-java libomplot libsaxonb-java libsundials-cvode1
  libsundials-cvodes2 libsundials-ida2 libsundials-idas0 libsundials-serial
  libsundials-serial-dev libxom-java libxpp2-java libxpp3-java omc omedit
  omlib-complex-3.2.1 omlib-modelica-3.2.1 omlib-modelicareference
  omlib-modelicaservices-3.2.1 omnotebook omplot omshell omshell-terminal
  openmodelica python-beautifulsoup xsltproc
0 upgraded, 31 newly installed, 0 to remove and 3 not upgraded.

This leads to an unmet dependency of omc:

$ ldd /usr/bin/omc
	linux-vdso.so.1 =>  (0x00007ffe029ef000)
	libOpenModelicaRuntimeC.so => /usr/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaRuntimeC.so (0x00007f4e2955d000)
	libModelicaExternalC.so.0 => /usr/bin/../lib/x86_64-linux-gnu/omc/libModelicaExternalC.so.0 (0x00007f4e29356000)
	libomantlr3.so => not found
	libomniORB4.so.1 => /usr/lib/libomniORB4.so.1 (0x00007f4e28fa9000)
 ... [all other dependencies are met]

Consequently, omc fails with

$ omc
omc: error while loading shared libraries: libomantlr3.so: cannot open shared object file: No such file or directory

Who should provide libomantlr3.so?

Change History (5)

comment:1 by Martin Sjölund, 9 years ago

libomantlr3.so is provided by libomc, which is a dependency of omc:

Depends: clang, build-essential, gnuplot, xsltproc, libexpat1-dev, libsundials-serial-dev, liblapack-dev, zip, unzip, libdbus-1-dev, omc-common, libomc, libomcsimulation (>= 1.9.3~dev.beta-26-gac636de), libblas3 | libblas.so.3, libc6 (>= 2.2.5), libcolamd2.8.0, libexpat1 (>= 2.0.1), libhwloc5 (>= 1.10.0), liblapack3 | liblapack.so.3, libomniorb4-1 (>= 4.1.6), libomnithread3c2 (>= 4.0.6), libstdc++6 (>= 4.1.1)

Which repository did you use to install openmodelica?

Last edited 9 years ago by Martin Sjölund (previous) (diff)

comment:2 by Michael Wetter, 9 years ago

I used the nightly built and run prior to the installation

for deb in deb deb-src; do echo "$deb http://build.openmodelica.org/apt `lsb_release -cs` nightly"; done | sudo tee /etc/apt/sources.list.d/openmodelica.list

Hence, I have

$ cat /etc/apt/sources.list.d/openmodelica.list
deb http://build.openmodelica.org/apt trusty nightly
deb-src http://build.openmodelica.org/apt trusty nightly

libomc does not seem to provide libomantlr3.so:

$ apt-cache showpkg libomc
Package: libomc
Versions: 
25881-1 (/var/lib/dpkg/status)
 Description Language: 
                 File: /var/lib/apt/lists/build.openmodelica.org_apt_dists_trusty_nightly_binary-amd64_Packages
                  MD5: d70913cc8fc588af338300ec2d3bbc6d

1.9.3~dev.beta-26-gac636de-1 (/var/lib/apt/lists/build.openmodelica.org_apt_dists_trusty_nightly_binary-amd64_Packages)
 Description Language: 
                 File: /var/lib/apt/lists/build.openmodelica.org_apt_dists_trusty_nightly_binary-amd64_Packages
                  MD5: d70913cc8fc588af338300ec2d3bbc6d


Reverse Depends: 
  omc,libomc
  libomc:i386,libomc 1.9.3~dev.beta-26-gac636de-1
  libomc:i386,libomc 1.9.3~dev.beta-26-gac636de-1
  libomc-dev,libomc 20000
  omc,libomc
Dependencies: 
25881-1 - omc-common (0 (null)) libomcsimulation (2 25881) libblas3 (16 (null)) libblas.so.3 (0 (null)) libc6 (2 2.17) libcolamd2.8.0 (0 (null)) libexpat1 (2 2.0.1) libgcc1 (2 1:4.1.1) libhwloc5 (0 (null)) liblapack3 (16 (null)) liblapack.so.3 (0 (null)) libomniorb4-1 (2 4.1.6) libomnithread3c2 (2 4.0.6) libstdc++6 (2 4.6) libomc:i386 (3 25881-1) libomc:i386 (6 25881-1) 
1.9.3~dev.beta-26-gac636de-1 - omc-common (3 20000) libomcsimulation (3 20000) libblas3 (16 (null)) libblas.so.3 (0 (null)) libc6 (2 2.17) libcolamd2.8.0 (0 (null)) libexpat1 (2 2.0.1) libgcc1 (2 1:4.1.1) libhwloc5 (0 (null)) liblapack3 (16 (null)) liblapack.so.3 (0 (null)) libomcsimulation (2 1.9.3~dev.beta-26-gac636de) libomniorb4-1 (2 4.1.6) libomnithread3c2 (2 4.0.6) libstdc++6 (2 4.6) libomc:i386 (3 1.9.3~dev.beta-26-gac636de-1) libomc:i386 (6 1.9.3~dev.beta-26-gac636de-1) 
Provides: 
25881-1 - 
1.9.3~dev.beta-26-gac636de-1 - 
Reverse Provides: 

comment:3 by Martin Sjölund, 9 years ago

You will need to uninstall the old libomc package since r25881 is older than 1.9.3 although it sorts higher.

comment:4 by Michael Wetter, 9 years ago

Thanks, this helped.

First, I run

sudo apt-get remove libomc
...
sudo apt-get install openmodelica
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 openmodelica : Depends: omc (< 20000) but it is not going to be installed
                Depends: omshell (< 20000) but it is not going to be installed
                Depends: omshell-terminal (< 20000) but it is not going to be installed
                Depends: omnotebook (< 20000) but it is not going to be installed
                Depends: drmodelica (< 20000) but it is not going to be installed
                Depends: drcontrol (< 20000) but it is not going to be installed
                Depends: omedit (< 20000) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Hence, I run

sudo apt-get remove libomc omc omshell omshell-terminal omnotebook drmodelica drcontrol omedit

The following packages were automatically installed and are no longer required:
  clang libdbus-1-dev libdom4j-java libhdf5-7 libhwloc-plugins libhwloc5
  libjaxen-java libjdom1-java libomcsimulation libomniorb4-1 libomnithread3c2
  libomplot libsaxonb-java libsundials-cvode1 libsundials-cvodes2
  libsundials-ida2 libsundials-idas0 libsundials-kinsol1
  libsundials-nvecserial0 libsundials-serial libsundials-serial-dev
  libxom-java libxpp2-java libxpp3-java omc-common omlib-complex-3.2.1
  omlib-modelica-3.2.1 omlib-modelicareference omlib-modelicaservices-3.2.1
  omplot python-beautifulsoup xsltproc
Use 'apt-get autoremove' to remove them.

Next,

sudo apt-get autoremove

which removed omplot, sundials and others.

Now, I can run

sudo apt-get update
sudo apt-get install openmodelica

and the installation succeeds and omc works.

comment:5 by Martin Sjölund, 9 years ago

Milestone: Future
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.