Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was trying to run

make 2D -j6 IN=2DPrograms/CD_2D_DirectSolver OUT=OUTPUT/cd.exe

command. While running this make file, the terminal rendered the following errors:

g++: error: EXT_LIB/g2c/ No such file or directory

So I tried to install libg2c through the following command which did not work for me.

sudo apt-get install libg2c0

I am running Ubuntu 13.04-32 bit machine. It would great if somebody can help me with this.

share|improve this question
Please edit your post with what you are trying to compile. That lib file is no longer in the repositories and looks to be deprecated as I see no mention of it since Hardy Heron (8.0.4) If there is a .deb package of what you are trying to install, it would be worth trying that. – douggro May 28 '13 at 6:47

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

share|improve this answer

This worked for me:

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.

share|improve this answer
Also, just to note that I also had to manually remove the package metadata from /var/lib/dpkg/status after installing to clear up the dependency mess that forcing install made, as APT wanted to get rid of it. – It Wouldn't Happen On Windows Nov 29 '13 at 9:47
+1 thanks! this installed libg2c0 on my ubuntu 14.04 system – KillBill Aug 7 '15 at 9:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.