#!/bin/bash -x # # gEDA.Install.2004.12.28.txt # # Original File # ------------- # http://Linux-CAE.net/CAE/geda # # # 19-Dec-02 amo D/L and install gEDA ( gEDA.2002.12.20.txt ) # 31-Dec-04 amo D/L and install gEDA-20041228 ( gEDA.2004.12.28.txt ) # # # ftp.geda.seul.org/pub/geda/dist # http://www.geda.seul.org/dist -- has libs and apps too # # http://www.geda.seul.org/source.html # http://www.geda.coelacanth.com/source.html # http://ieee.ing.uniroma1.it/geda/source.html # http://ftp.sunet.se/geda/source.html # # # http://www.geda.seul.org/mailinglist/index.html # # # Required Libs # ================== # guile 1.4.1 or 1.6.3 http://www.gnu.org/software/guile/guile.html # gtk+ 1.2x or 2.2.x http://www.gtk.org/ # # # Required Programs # ================= # pkgconfig-0.15.0.tar.gz http://www.freedesktop.org/Software/pkgconfig # http://www.freedesktop.org/software/pkgconfig/releases/ # # # Required/Optional Libraries # =========================== # libstroke-0.5.1.tar.gz http://www.etla.net/libstroke/ # libgdgeda-2.0.15.tar.gz http://www.geda.seul.org/dist/libgdgeda-2.0.15.tar.gz # zlib-1.2.1.tar.gz http://www.gzip.org/zlib/ # http://www.zlib.net/zlib-1.2.1.tar.gz # libpng 1.2.x http://www.libpng.org/ # # # TAR="x tar" # ZTVF="ztvf" # ZTVF="zxpvf" # WGET="x wget -m -c -nd " # # # ================================================================================ # # Echo the command and do it # -------------------------- # function docmd { cmd="$1" # # extract the first variable from the long command # one=`echo $1 | cut -d " " -f 1 ` # echo "one=$one.."; # # echo "$cmd" # if [ -z "$one" -o "$one" = "#" -o "$one" = "x" ]; then # skip=1 # else # # do the command and check for errors # ----------------------------------- $cmd # if [ $? != 0 ]; then # echo "" echo "ERROR: $? : $cmd.." echo "" # exit 1 # fi fi # } # docmd # # # # # ================================================================================ # # Download the sources into here # ------------------------------ # SRC="/usr2/SrcCD/EDA/gEDA.2004.12.28" SRC="/usr2/SrcCD/EDA/gEDA.2004.12.28/ftp.geda.seul.org/pub/geda/devel/20041228" # # # Where to extract and compile the gEDA sources # --------------------------------------------- # DST="/usr/local/src/EDA/geda-2004.12.28" DST="/usr2/src/EDA/geda-2004.12.28" # # gLIST=`cd $SRC ; ls libgeda*.tar.gz geda*.tar.gz ` # # # install gEDA into /usr/local/gEDA directory # ------------------------------------------- # ( .configure --prefix=/usr/local/gEDA ) # # # Untar the gEDA files # ==================== # docmd "#" docmd "# Get the latest gEDA source files ( *.tar.gz )" docmd "#" docmd "cd $DST" docmd "" # for glst in $gLIST do # docmd "$TAR $ZTVF $glst" # done # # # Get the Required Libs and Apps # ------------------------------ # SRC="/usr2/SrcCD/EDA/gEDA.LIBS" # docmd "" docmd "cd $SRC" docmd "" docmd "$WGET http://www.freedesktop.org/software/pkgconfig/releases/pkgconfig-0.15.0.tar.gz" # # # ================================================================== # docmd "#" docmd "# Find the required binaries " docmd "#" docmd "find /usr/local -name pkg-config -ls" docmd "pkg-config --version" docmd "#" docmd "find /usr/local -name guile-config -ls" docmd "guile-config --version" docmd "#" docmd "#" # # # Install PkgConfig ( gEDA.LIBS/pkgconfig.txt ) # ------------------ # # # Perhaps you should add the directory containing `libgeda.pc' # to the PKG_CONFIG_PATH environment variable # No package 'libgeda' found # # # # find /usr/local -name pkgconfig -ls # # docmd "export PKG_CONFIG_PATH=/usr/local/gEDA/lib/pkgconfig:$PKG_CONFIG_PATH" docmd "#" docmd "#" # # # =================================== # # # # Now compile geda # # # =================================== # # compile libgeda first # VER="20041228" # gAP0="libgeda-$VER" gAP1="geda-$VER geda-docs-$VER geda-examples-$VER geda-gattrib-$VER" gAP2="geda-gnetlist-$VER geda-gschem-$VER geda-gsymcheck-$VER geda-setup-$VER" gAP3="geda-symbols-$VER geda-utils-$VER" # gAPP="$gAP0 $gAP1 $gAP2 $gAP3" # # # or to process one app at a time # #APP="libgeda-$VER" #APP="geda-$VER" #APP="geda-docs-$VER" #APP="geda-examples-$VER" #APP="geda-gattrib-$VER" #APP="geda-gnetlist-$VER" #APP="geda-gschem-$VER" #APP="geda-gsymcheck-$VER" #APP="geda-setup-$VER" #APP="geda-symbols-$VER" #APP="geda-utils-$VER" # # for gapp in $gAPP do # log="$gapp.log" # dat=`date` # docmd "#" docmd "# Installing $gapp" docmd "#" # # # status log # echo "#" > $log echo "# $dat " >> $log echo "# Installing $gapp " >> $log echo "#" >> $log # # cd $DST/geda-$VER # docmd "cd ../$gapp" # docmd "./configure --prefix=/usr/local/gEDA" #ocmd "./configure" # docmd "make" # docmd "make install" # # # Do additional stuff for different packages # if [ $gapp = "libgeda-20041228" ] ; then docmd "ldconfig" ; fi # done # # # Invoke gEDA # ============ # # gEDA/bin/gschem # /usr/local/gEDA/bin/gschem: error while loading shared libraries: # libgeda.so.22: cannot open shared object file: No such file or directory # # # vi /etc/ld.so.conf # # /usr/local/gEDA/lib # # # ldconfig # # # gEDA/bin/gschem # Read system-gschemrc file [/usr/local/gEDA/share/gEDA/system-gschemrc] # Did not find optional ~/.gEDA/gschemrc file [/root/.gEDA/gschemrc] # Did not find optional local gschemrc file [./gschemrc] # Did not find optional local gafrc file [./gafrc] # Read init scm file [/usr/local/gEDA/share/gEDA/scheme/gschem.scm] # # View the examples # ----------------- # File->Open->geda-examples-20041228->.... # # # End of file