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:
mkdir /tmp/libpng-eagle cd /tmp/libpng-eagle wget ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng14/libpng-1.4.12.tar.gz tar xvfz libpng-1.4.12.tar.gz cd libpng-1.4.12/ ./configure --prefix=/tmp/libpng-eagle/install CFLAGS=-m32 make check make install
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:
cd /tmp/libpng-eagle/install/lib/ 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…
export LD_LIBRARY_PATH=/home/$USER/eagle-6.2.0/lib/ cd /tmp/libpng-eagle/ wget ftp://ftp.cadsoft.de/eagle/program/6.2/eagle-lin-6.2.0.run chmod 755 eagle-lin-6.2.0.run ./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:
#!/bin/sh export LD_LIBRARY_PATH=/home/$USER/eagle-6.2.0/lib /home/$USER/eagle-6.2.0/bin/eagle
Additionally, you could create a Unity/Gnome menu entry, for example “
(do not forget to adapt the
#!/usr/bin/env xdg-open [Desktop Entry] Version=1.0 Type=Application Terminal=false Icon=/home/$USER/eagle-6.2.0/bin/eagleicon50.png Name=Eagle Exec=/home/$USER/eagle-6.2.0/eagle.sh Comment=Eagle CAD
Update: A friend told me that the installation procedure also works with Ubuntu 11.10.