Last Updated: February 25, 2016
·
5.915K
· jamesotron

Installing 32 bit Eagle CAD on 64 bit Ubuntu/Debian

So, regularly I need to do this, so I thought I would record it here for posterity:

This shell script downloads Eagle for Linux, installs it into ~/tmp, then installs the necessary 32 bit library packages for it to be able to run.

This script assumes that you have the 64 bit versions of the packages installed already to make the comparison - this is usually safe because most people have an X environment installed if they're planning on using Eagle anyway :)

set -e
export VERSION=6.5.0
mkdir ~/tmp
cd ~/tmp
wget "ftp://ftp.cadsoft.de/eagle/program/${VERSION:0:3}/eagle-lin-${VERSION}.run"
./eagle-lin-$VERSION.run ./
ldd eagle-$VERSION/bin/eagle | grep "not found" | awk '{print $1}' | xargs -n 1 dpkg -S | awk -F: '{print $1 ":i386"}' | sort | uniq | xargs sudo apt-get -y install

Enjoy.

1 Response
Add your response

Thank you! I needed to make some changes:
1) Replace mkdir with "mkdir -p" because on a second run it used to halt the script's execution saying ~/tmp is already there
2) Add "chmod +x "eagle-lin-$VERSION.run" before "./eagle-lin-$VERSION.run ./" because it kept complaining about permissions

over 1 year ago ·