Update: Eagle CAD version 6.4 is available which runs fine on Ubuntu 12.04., Ubuntu 12.10 and Ubuntu 13.04. I’ve made a small tutorial on how to fix possible dependency problems with this new version.
Ubuntu 12.04 only provides an older version of Eagle CAD, version 5.12.0 to be exact. A newer version 6.2 (32 bit) is available for download, but the installation fails due to the lack of a 32 bit libpng-1.4 library:
error while loading shared libraries: libpng14.so.14: cannot open shared object file: No such file or directory.
Luckily, I found a detailed post at raek’s blog which covers older Ubuntu versions. Great parts of the following instruction were taken from this post and adapted for Ubuntu 12.04. Thanks!
First of all you need to install some packages to build the missing png library. Open a terminal window and enter on a 32 bit Ubuntu 12.04:
sudo apt-get install build-essential perl
sudo apt-get install zlib1g zlib1g-dev
On a 64 bit Ubuntu 12.04:
sudo apt-get install build-essential perl gcc-multilib
sudo apt-get install ia32-libs lib32z1 lib32z1-dev
Then you need to fetch the libpng source code and the Eagle CAD 6.2 installer, either with “
wget” (as I have done it) or directly from the respective webpages. A current version of Eagle CAD is available for download here: http://www.cadsoftusa.com/download-eagle/
libpng 1.4 can be found on this page: http://www.libpng.org/pub/png/libpng.html
I will use the “
/tmp/libpng-eagle” directory for building the library:
tar xvfz libpng-1.4.12.tar.gz
./configure --prefix=/tmp/libpng-eagle/install CFLAGS=-m32
At this point I assume that your Eagle CAD installation will be located at “
/home/$USER/eagle-6.2.0“. If not, simply adjust the location in the text below:
mkdir -p /home/$USER/eagle-6.2.0/lib
cp -a libpng14.so* /home/$USER/eagle-6.2.0/lib/
Now the installer should run…
chmod 755 eagle-lin-6.2.0.run
After the installation finishes, Eagle CAD will still not run unless you tell it where to find the png library we have just created. The easiest way to do this is by creating an executable start-up shell script (e.g.
/home/$USER/eagle-6.2.0/eagle.sh) which contains the following commands:
Additionally, you could create a Unity/Gnome menu entry, for example “
(do not forget to adapt the
Update: A friend told me that the installation procedure also works with Ubuntu 11.10.