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

gEDA-user: eEDA automatic installation script



Hi all,

After spending some more time installing gEDA packages on Ubuntu, I do have an improved version for an automatic installation script.
When my time will permit, I do need to test this script on AMD-64, for now is tested on i386(AMD-K7).
I will be grateful if somebody with more resources (knowledge and time) could help me to create some up-to-date repository, one single place with all the latest working packages and a few versions of this script for different Linux flavors.
For users like me this could be a design gold mine, I wold like more to use this program than spending many painful hours installing it (I do not have a solid software background).

Regards,
Adrian Nania

# IMPROVEMENTS
# setting text editor for gEDA
# fixing old PATH problem
# creating desktop launcher
# full gEDA plus gtkwave
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
# for gwave
sudo apt-get install -y libguilegtk-1.2-0 libguilegtk-1.2-dev
# for gtkwave
sudo apt-get install -y libxml2-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
sed -i 's/-----/gedit/' $HOME/tmp/geda/devel/geda/src/tool.c
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
cat >>/home/work/programs/gEDA/start-geda <<"EOF"
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-geda
echo To start gEDA, create a Launcher to /home/work/programs/gEDA/start on your desktop
cat >>$HOME/Desktop/gEDA.desktop <<"EOF"
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Exec=/home/work/programs/gEDA/start-geda
TryExec=
Icon=/home/work/programs/gEDA/share/gEDA/bitmap/gschem-comp.xpm
X-GNOME-DocPath=
Terminal=false
Name[en_CA]=gEDA
GenericName[en_CA]=gEDA
Comment[en_CA]=
Name=gEDA
GenericName=gEDA
Comment=
EOF
cat >>/home/work/programs/gEDA/start-gschem <<"EOF"
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 &&
gschem
EOF
chmod +x /home/work/programs/gEDA/start-gschem
echo To start gschem, create a Launcher to /home/work/programs/gEDA/start-gschem on your desktop
cat >>$HOME/Desktop/gschem.desktop <<"EOF"
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Exec=/home/work/programs/gEDA/start-gschem
TryExec=
Icon=/home/work/programs/gEDA/share/gEDA/bitmap/gschem-comp.xpm
X-GNOME-DocPath=
Terminal=false
Name[en_CA]=gschem
GenericName[en_CA]=gschem
Comment[en_CA]=
Name=gschem
GenericName=gschem
Comment=
EOF
cat >>/home/work/programs/gEDA/start-gattrib <<"EOF"
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 &&
gattrib
EOF
chmod +x /home/work/programs/gEDA/start-gattrib
echo To start gattrib, create a Launcher to /home/work/programs/gEDA/start-gattrib on your desktop
cat >>$HOME/Desktop/gattrib.desktop <<"EOF"
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Exec=/home/work/programs/gEDA/start-gattrib
TryExec=
Icon=/home/work/programs/gEDA/share/gEDA/bitmap/gschem-comp.xpm
X-GNOME-DocPath=
Terminal=false
Name[en_CA]=gattrib
GenericName[en_CA]=gattrib
Comment[en_CA]=
Name=gattrib
GenericName=gattrib
Comment=
EOF
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
cat >>/home/work/programs/gEDA/start-pcb <<"EOF"
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 &&
pcb
EOF
chmod +x /home/work/programs/gEDA/start-pcb
echo To start pcb, create a Launcher to /home/work/programs/gEDA/start-pcb on your desktop
cat >>$HOME/Desktop/pcb.desktop <<"EOF"
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Exec=/home/work/programs/gEDA/start-pcb
TryExec=
Icon=/home/work/programs/gEDA/share/gEDA/bitmap/gschem-comp.xpm
X-GNOME-DocPath=
Terminal=false
Name[en_CA]=pcb
GenericName[en_CA]=pcb
Comment[en_CA]=
Name=pcb
GenericName=pcb
Comment=
EOF
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
cat >>/home/work/programs/gEDA/start-gerbv <<"EOF"
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 &&
gerbv
EOF
chmod +x /home/work/programs/gEDA/start-gerbv
echo To start gerbv, create a Launcher to /home/work/programs/gEDA/start-gerbv on your desktop
cat >>$HOME/Desktop/gerbv.desktop <<"EOF"
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Exec=/home/work/programs/gEDA/start-gerbv
TryExec=
Icon=/home/work/programs/gEDA/share/gEDA/bitmap/gschem-comp.xpm
X-GNOME-DocPath=
Terminal=false
Name[en_CA]=gerbv
GenericName[en_CA]=gerbv
Comment[en_CA]=
Name=gerbv
GenericName=gerbv
Comment=
EOF
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
clear
echo install easy_spice
echo
mkdir $HOME/tmp
cd $HOME/tmp
wget -c http://superb-west.dl.sourceforge.net/sourceforge/easy-spice/easy_spice-0.6.7.tar.gz
cp -dpr ./easy_spice-0.6.7.tar.gz /home/backups/src/electro/geda/sources/
tar -xzf easy_spice-0.6.7.tar.gz
cd ./easy_spice-0.6.7
./configure --prefix=/home/work/programs/gEDA
make
time {
make install
} >$HOME/easy_spice.log 2>&1
echo
echo easy_spice setup END
echo check the following Error messages -if any- to ensure no critical errors occured:
echo
grep Error $HOME/easy_spice.log
echo
cat >>/home/work/programs/gEDA/start-easy_spice <<"EOF"
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 &&
easy_spice
EOF
chmod +x /home/work/programs/gEDA/start-easy_spice
echo To start easy_spice, create a Launcher to /home/work/programs/gEDA/start-easy_spice on your desktop
cat >>$HOME/Desktop/easy_spice.desktop <<"EOF"
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Exec=/home/work/programs/gEDA/start-easy_spice
TryExec=
Icon=/home/work/programs/gEDA/share/gEDA/bitmap/gschem-comp.xpm
X-GNOME-DocPath=
Terminal=false
Name[en_CA]=easy_spice
GenericName[en_CA]=easy_spice
Comment[en_CA]=
Name=easy_spice
GenericName=easy_spice
Comment=
EOF
cd $HOME
rm -rf $HOME/tmp
clear
echo install gwave
echo
mkdir $HOME/tmp
cd $HOME/tmp
echo from http://www.telltronics.org/software/gwave/
wget -c http://www.cs.unc.edu/~tell/dist/gwave-20051222.tar.gz
tar -xzf gwave-20051222.tar.gz
cp -dpr ./gwave-20051222.tar.gz /home/backups/src/electro/geda/sources/
cd gwave-20051222
./configure --prefix=/home/work/programs/gEDA
make
time {
make install
} >$HOME/gwave.log 2>&1
echo
echo gwave setup END
echo check the following Error messages -if any- to ensure no critical errors occured:
echo
grep Error $HOME/gwave.log
echo
cat >>/home/work/programs/gEDA/start-gwave <<"EOF"
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 &&
gwave
EOF
chmod +x /home/work/programs/gEDA/start-gwave
echo To start gwave, create a Launcher to /home/work/programs/gEDA/start-gwave on your desktop
cat >>$HOME/Desktop/gwave.desktop <<"EOF"
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Exec=/home/work/programs/gEDA/start-gwave
TryExec=
Icon=/home/work/programs/gEDA/share/gEDA/bitmap/gschem-comp.xpm
X-GNOME-DocPath=
Terminal=false
Name[en_CA]=gwave
GenericName[en_CA]=gwave
Comment[en_CA]=
Name=gwave
GenericName=gwave
Comment=
EOF
cd $HOME
rm -rf $HOME/tmp
clear
echo install gtkwave
echo
mkdir $HOME/tmp
cd $HOME/tmp
echo from http://home.nc.rr.com/gtkwave/
wget -c http://home.nc.rr.com/gtkwave/gtkwave-current.tar.gz
tar -xzf gtkwave-current.tar.gz
cp -dpr ./gtkwave-current.tar.gz /home/backups/src/electro/geda/sources/
cd gtkwave-3.0.4
mkdir /home/work/programs/gEDA/examples /home/work/programs/gEDA/examples/gtkwave
cp -dpr ./examples/* /home/work/programs/gEDA/examples/gtkwave/
./configure --prefix=/home/work/programs/gEDA
make
time {
make install
} >$HOME/gtkwave.log 2>&1
echo
echo gtkwave setup END
echo check the following Error messages -if any- to ensure no critical errors occured:
echo
grep Error $HOME/gtkwave.log
echo
cat >>/home/work/programs/gEDA/start-gtkwave <<"EOF"
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 &&
gtkwave /home/work/programs/gEDA/examples/gtkwave/des.vzt
EOF
chmod +x /home/work/programs/gEDA/start-gtkwave
echo To start gtkwave create a Launcher to /home/work/programs/gEDA/start-gtkwave on your desktop
cat >>$HOME/Desktop/gtkwave.desktop <<"EOF"
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Exec=/home/work/programs/gEDA/start-gtkwave
TryExec=
Icon=/home/work/programs/gEDA/share/gEDA/bitmap/gschem-comp.xpm
X-GNOME-DocPath=
Terminal=false
Name[en_CA]=gtkwave
GenericName[en_CA]=gtkwave
Comment[en_CA]=
Name=gtkwave
GenericName=gtkwave
Comment=
EOF
cd $HOME
rm -rf $HOME/tmp

# next - installing octave, kjwaves, kicad, ktechlab?
_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user