How do I install libg2c

Solution 1:

This worked for me:

wget http://old-releases.ubuntu.com/ubuntu/pool/universe/g/gcc-3.4/libg2c0_3.4.6-6ubuntu5_i386.deb
sudo dpkg -i --force-all libg2c0_3.4.6-6ubuntu5_i386.deb

I had to get it from an old release as it's no longer distributed with Ubuntu.

Solution 2:

After changes in gcc, it's not been there since 8.04.1. gfortran is an alternative that you can look into.

For more details check out this link launchpad bug link