On Thursday 07 June 2007 22:59:31 Craig Niederberger wrote: > I made /etc/profile.d/geda.sh, and put in it: > > export PATH=/opt/geda/bin:${PATH} > export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/opt/geda/lib Note that this will not work in your .profile. If you wish to have a private copy of gEDA installed (say in $HOME/geda) you will need to follow the following steps (due to &£$^ing broken setgid programs in F7). 1) Edit /etc/X11/xinit/Xsession. This is to work around ssh-agent trashing your environment (it's installed setgid). See https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=164869 for a full discussion. Add a line saying "SSH_AGENT=" before this line: XCLIENTS_D=/etc/X11/xinit/Xclients.d 2) yum install module-init-tools. This will help you work around terminal programs trashing your environment (they're installed setgid). See my bug https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=243069. Apparently, this is *not* a bug. I call bullshit. 3) Create $HOME/.modules/geda, containing: #%Module 1.0 # -*- Tcl -*- # Sets up Peter's opt directory # prepend-path PATH /home/peter/opt/bin prepend-path LD_LIBRARY_PATH /home/peter/opt/lib prepend-path INFOPATH /home/peter/opt/share/info prepend-path PKG_CONFIG_PATH /home/peter/opt/lib/pkgconfig 4) Run /usr/share/Modules/bin/add.modules. This will add some stuff to your .profile (or .bash_profile) and .bashrc. 5) echo module update >> .bashrc This will restore your environment when you launch an interactive terminal. You may actually want to put it before any aliases/functions you've defined in your .bashrc. 6) Edit .profile (or .bash_profile) and make sure it looks something like the following: # Environment modules support MODULESBEGINENV=$HOME/.modules/beginenv export MODULESBEGINENV if [ -f /etc/profile.modules ] then . /etc/profile.modules fi # put your own module loads here module use $HOME/.modules module load null geda Finished. Note that modules can be useful for other things, for instance running multiple versions of geda installed to different places. Cheers, Peter -- Fisher Society http://tinyurl.com/o39w2 CU Small-Bore Club http://tinyurl.com/mwrc9 09f911029d74e35bd84156c5635688c0 peter-b.co.uk
Attachment:
pgpbUSRDvQdSX.pgp
Description: PGP signature
_______________________________________________ geda-user mailing list geda-user@xxxxxxxxxxxxxx http://www.seul.org/cgi-bin/mailman/listinfo/geda-user