Author Topic: FAQ: libg2c.so.0: cannot open shared object file: No such file or directory  (Read 99997 times)

0 Members and 1 Guest are viewing this topic.

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5576
  • Country: dk
  • Reputation: 96
    • View Profile
    • QuantumATK at Synopsys
One of the most common error messages when trying to start VNL/ATK is

Quote
'Not available', 'libg2c.so.0: cannot open shared object file: No such file or directory'

Quite obviously, this is because the library libg2c is missing. In many cases it is straightforward to install this library from the relevant package/software/update manager (look for libg2c, libf2c or g77), but one needs to pay some attention to which version to install, especially on 64-bit platforms, since VNL is a 32-bit application and therefore needs the corresponding 32-bit g2c library.

Some more detailed advice on specific platform will appear in further posts on this thread!

In general, a good resource for locating missing libraries to download is http://rpm.pbone.net/ (click "Search", then go to "Advanced Search" to be able to select distribution, otherwise you usually get way too many results in the search).
« Last Edit: December 11, 2008, 16:09 by Anders Blom »

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5576
  • Country: dk
  • Reputation: 96
    • View Profile
    • QuantumATK at Synopsys
CentOS 4.0/5.1 and RHEL 5
« Reply #1 on: December 11, 2008, 15:59 »
Either you can use the software manager to locate and install the needed package (search for libg2c.so), or you can download the needed packages manually:
Code
rpm --install libf2c-3.4.6-11.i386.rpm 
« Last Edit: September 14, 2009, 16:13 by Anders Blom »

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5576
  • Country: dk
  • Reputation: 96
    • View Profile
    • QuantumATK at Synopsys
Novell Linux Desktop 9 SP3 x86
« Reply #2 on: December 11, 2008, 16:10 »
In Software Management mark the package "gcc-g77" for install (need Install CD1).

This will install the following 3 packages:
  • glibc-devel-2.3.3-98.32.i686.rpm
  • gcc-3.3.3-43.41.i586.rpm
  • gcc-g77-3.3.3-43.41.i586.rpm
and the problem should be resolved.

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5576
  • Country: dk
  • Reputation: 96
    • View Profile
    • QuantumATK at Synopsys
SUSE Linux Enterprise Desktop
« Reply #3 on: December 11, 2008, 16:19 »
Install the GNU Fortran Compiler Runtime Library (containing libg2c.so) to fix the issue. The library is not located on the installation CDs, so instead use http://rpm.pbone.net to locate a 32-bit version of the library.
Code
rpm --install libg2c33-3.3.3-42.5.i586.rpm
« Last Edit: February 16, 2011, 10:17 by admin »

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5576
  • Country: dk
  • Reputation: 96
    • View Profile
    • QuantumATK at Synopsys
Sometimes, after installing the library, you need to link VNL to it: Go to the VNL lib directory and give the command
Code
ln -s /usr/lib/libg2c.so.0.0.0 libg2c.so.0
(or the appropriate location of the lib2c.so.* files).

Offline artitw

  • New QuantumATK user
  • *
  • Posts: 1
  • Reputation: 0
    • View Profile
Ubuntu Linux
« Reply #5 on: March 5, 2009, 23:43 »
Missing libg2c.so.0 can be fixed by installing libg2c0 from the Synaptic Package Manager or
Code
sudo apt-get install libg2c0

Offline srdguezb

  • Regular QuantumATK user
  • **
  • Posts: 12
  • Reputation: 0
    • View Profile
I need to obtain libg2c in Ubuntu 9.10

Any idea about it?

Thank you

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5576
  • Country: dk
  • Reputation: 96
    • View Profile
    • QuantumATK at Synopsys

Offline lystor

  • New QuantumATK user
  • *
  • Posts: 1
  • Reputation: 0
    • View Profile
I need to obtain libg2c in Ubuntu 9.10
Any idea about it?

You can download it for Ubuntu:
http://packages.acl.org.ua/en/search/name/libg2c0

Offline milenko76

  • New QuantumATK user
  • *
  • Posts: 2
  • Reputation: 0
    • View Profile
I need libf2c for Ubuntu 9.04.Where to find it?

Offline milenko76

  • New QuantumATK user
  • *
  • Posts: 2
  • Reputation: 0
    • View Profile
I have downloaded from the link above but computer tells me that the newer version is already installed.
./xtramp: error while loading shared libraries: libf2c.so.2: cannot open shared object file: No such file or directory
Still I get this when I try to run program.
What should I do?

Offline bhushan_bhujang

  • New QuantumATK user
  • *
  • Posts: 1
  • Reputation: 0
    • View Profile
I got an indirect alternative solution to this problem in ubuntu (jaunty)
I downloaded f2c-20000510-5.i386.rpm  (since i could not find the same 32-bit package in .deb) from rpm site then converted .rpm to .deb by alien, i.e
in the terminal type
alien -d f2c-20000510-5.i386.rpm
then execute your problem. It will fix the error.
« Last Edit: January 4, 2011, 13:32 by bhushan_bhujang »