Posted by: yuvan004 | June 9, 2012

Running Eagle CAD 6.2 on Ubuntu 12.04

EAGLE (Easily Applicable Graphical Layout Editor) by Cadsoft is a flexible and expandable EDA schematic capture, PCB layout, autorouter and CAM program widely used since 1988. EAGLE is popular among hobbyists because of its freeware license and rich availability of component libraries on the web.


Schematic capture

EAGLE contains a schematic editor, for designing circuit diagrams. Parts can be placed on many sheets and connected together through ports.

PCB layout

The PCB layout editor allows back annotation to the schematic and auto-routing to automatically connect traces based on the connections defined in the schematic.

EAGLE saves Gerber and PostScript layout files and Excellon and Sieb & Meyer drill files. These standard files are accepted by many PCB fabrication companies.


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: 
cannot open shared object file: No such file or directory.

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:
 libpng 1.4 can be found on this page:
 I will use the “/tmp/libpng-eagle” directory for building the library:

mkdir /tmp/libpng-eagle
cd /tmp/libpng-eagle
tar xvfz libpng-1.4.11.tar.gz
cd libpng-1.4.11/
./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* /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/
chmod 755
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/ 
which contains the following commands:
export LD_LIBRARY_PATH=/home/$USER/eagle-6.2.0/lib 

Additionally, you could create a Unity/Gnome menu entry, for example 
 (do not forget to adapt the $USER):

#!/usr/bin/env xdg-open [Desktop Entry]
Comment=Eagle CAD


Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s


%d bloggers like this: