[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-user: gEDA setup under Ubuntu



Hi all

This is the ubuntu-setup file I am building for an automatic installation of gEDA from CVS (or the latest available working package). It is working on i386, I will try a.s.a.p. on AMD64.

Adrian


clear
sudo rm -rf $HOME/tmp $HOME/.cvspass /home/work/programs/gEDA
mkdir $HOME/tmp
cd $HOME/tmp
echo after a clean Ubuntu Dapper install:
cat >>sources.list <<"EOF"
deb http://us.archive.ubuntu.com/ubuntu/ dapper main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ dapper main restricted universe multiverse

deb http://us.archive.ubuntu.com/ubuntu/ dapper-updates main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ dapper-updates main restricted universe multiverse

deb http://us.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu dapper-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted universe multiverse

EOF
sudo cp -dpr /etc/apt/sources.list /etc/apt/sources.list.bak
sudo cp -dpr $HOME/tmp/sources.list /etc/apt/
sudo apt-get update
sudo apt-get -y dist-upgrade
echo according to http://www.geda.seul.org/developer.html for Ubuntu Dapper we need:
sudo apt-get remove -y automake1.4
sudo apt-get install -y autoconf libtool guile-1.6 guile-1.6-dev libgtk2.0-dev latex2html groff \
	tetex-base tetex-extra libgdk-pixbuf2 libgdk-pixbuf-dev libglib2.0-dev build-essential \
	automake1.9 libreadline5-dev tcl8.4-dev libwxgtk2.6-0 libwxgtk2.6-dev texinfo flex cvs
# for pcb:
sudo apt-get install -y ssh libgd2 libgd2-dev tcl8.4 tcl8.4-dev tk8.4 tk8.4-dev bison gawk
# for ngspice
sudo apt-get install -y libxaw7-dev libedit-dev
# libxaw7-dbg libxaw-headers xaw3dg xaw3dg-dev ?
# extra packages
sudo apt-get install -y acroread acroread-plugins mozilla-acroread
# end packages update
sudo cp -dpr /etc/apt/sources.list.bak /etc/apt/sources.list
sudo rm -rf /etc/apt/sources.list.bak
export CVSROOT=:pserver:anoncvs@xxxxxxxxxxxx:/home/cvspsrv/cvsroot
echo
echo Sometimes the CVS server id dying. If so, close this shell and start ./setup again
echo To download the CVS version, the required CVS password is: guest
echo
cvs login
cvs co geda/devel
cp -dpr ./geda /home/backups/src/electro/geda/sources/
cd $HOME/tmp/geda/devel/
sed -i 's/prefix?=\$(HOME)\/geda/prefix?=\/home\/work\/programs\/gEDA/' Makefile
make
export LD_LIBRARY_PATH=/home/work/programs/gEDA/lib:$LD_LIBRARY_PATH
export PATH=/home/work/programs/gEDA/bin:${PATH}
export PKG_CONFIG_PATH=/home/work/programs/gEDA/lib/pkgconfig:$PKG_CONFIG_PATH
rm -rf $HOME/gEDA.log
echo gEDA setup started: please wait, this could take up to 6 minutes on an AMD64 1.8Gb processor
time { 
make install
} >$HOME/gEDA.log 2>&1
echo
echo gEDA setup END
echo check the following Error messages -if any- to ensure no critical errors occured:
echo
grep Error $HOME/gEDA.log
echo
cd $HOME
rm -rf $HOME/tmp
echo To start gEDA, create a Launcher to /home/work/programs/gEDA/start on your desktop
cat >>/home/work/programs/gEDA/start <<"EOF"
# To start gEDA, create a Launcher to /home/work/programs/gEDA/start on your desktop
export LD_LIBRARY_PATH=/home/work/programs/gEDA/lib:$LD_LIBRARY_PATH &&
export PATH=/home/work/programs/gEDA/bin:${PATH} &&
export PKG_CONFIG_PATH=/home/work/programs/gEDA/lib/pkgconfig:$PKG_CONFIG_PATH &&
geda

EOF
chmod +x /home/work/programs/gEDA/start
echo
sudo chown -R $USER /home/work/programs/gEDA
clear
echo install pcb
echo
mkdir $HOME/tmp
cd $HOME/tmp
echo from http://sourceforge.net/cvs/?group_id=73743
echo when asked for password, press enter
cvs -d:pserver:anonymous@xxxxxxxxxxxxxxxxxxxxxxx:/cvsroot/pcb login &&
cvs -z3 -d:pserver:anonymous@xxxxxxxxxxxxxxxxxxxxxxx:/cvsroot/pcb co -P pcb
cp -dpr ./pcb /home/backups/src/electro/geda/sources/
cd $HOME/tmp/pcb
./configure --prefix=/home/work/programs/gEDA --with-exporters="ps gerber bom png"
make
# cd src
# ./pcbtest.sh
# cd ..
time {
make install
} >$HOME/pcb.log 2>&1
echo
echo gEDA setup END
echo check the following Error messages -if any- to ensure no critical errors occured:
echo
grep Error $HOME/pcb.log
echo
cd $HOME
rm -rf $HOME/tmp
clear
echo install gerbv
echo
mkdir $HOME/tmp
cd $HOME/tmp
echo from http://sourceforge.net/cvs/?group_id=33921
echo when asked for password, press enter
cvs -d:pserver:anonymous@xxxxxxxxxxxxxxxxxxxxxxxxx:/cvsroot/gerbv login
cvs -z3 -d:pserver:anonymous@xxxxxxxxxxxxxxxxxxxxxxxxx:/cvsroot/gerbv co -P gerbv
cp -dpr ./gerbv /home/backups/src/electro/geda/sources/
cd gerbv
./rebuild_conf
./configure --prefix=/home/work/programs/gEDA --enable-unit-mm
make
time {
make install
} >$HOME/gerbv.log 2>&1
echo
echo gerbv setup END
echo check the following Error messages -if any- to ensure no critical errors occured:
echo
grep Error $HOME/gerbv.log
echo
cd $HOME
rm -rf $HOME/tmp
clear
echo install ngspice
echo
mkdir $HOME/tmp
cd $HOME/tmp
# echo from http://ngspice.sourceforge.net/nighttarball.html
# wget -c http://ngspice.sourceforge.net/files/ng-spice-rework_CVS.tar.gz
# at the time I am testing this package, the CVS version is broken
echo from http://ngspice.sourceforge.net/
wget -c http://superb-east.dl.sourceforge.net/sourceforge/ngspice/ng-spice-rework-17.tar.gz
wget -c http://superb-west.dl.sourceforge.net/sourceforge/ngspice/octave_spice.tar.gz
# tar -xzf ng-spice-rework_CVS.tar.gz
cp -dpr ./ng-spice-rework-17.tar.gz /home/backups/src/electro/geda/sources/
tar -xzf ng-spice-rework-17.tar.gz
cd ./ng-spice-rework-17
./autogen.sh
./configure --prefix=/home/work/programs/gEDA \
	--enable-nosqrt \
	--enable-nobypass \
	--enable-capzerobypass \
	--enable-predictor \
	--enable-newtrunc \
	--enable-intnoise \
	--enable-xspice \
	--enable-numparam \
	--enable-dot-global \
	--with-editline=yes
#	--enable-sense2	this one is generating errors
#	--enable-ekv		this one is generating errors
#	--enable-cider		this one is generating errors
#	--enable-cluster	this one is generating errors
make
time {
make install
} >$HOME/ngspice.log 2>&1
echo
echo ngspice setup END
echo check the following Error messages -if any- to ensure no critical errors occured:
echo
grep Error $HOME/ngspice.log
echo
cd $HOME
rm -rf $HOME/tmp
# next - installing octave

_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user