On 11/11/10 12:54 PM, Simon King wrote:
Hi David,

On 11 Nov., 12:24, "Dr. David Kirkby"<david.kir...@onetel.net>  wrote:
I've now set up t2.math so it is able to build Sage again. The software I've
added includes

   * gcc 4.5.1
   * emacs 23.2
   * vim 7.3 (vi clone, but handles big files better than vi)
   * screen 4.00.03

Please add something like:

if [ `uname -n` = t2 ] ; then
     . /usr/local/bin/t2-setup
fi

to your .profile and removal a line which you may have which points to an
earlier version of gcc.

It doesn't work for me:

simonk...@t2:~$ cat .profile
if [ `uname -n` = t2 ] ; then
     . /usr/local/bin/t2-setup
fi

simonk...@t2:~$ vim
-bash: vim: command not found
simonk...@t2:~$ screen
-bash: screen: command not found

Cheers,
Simon


Simon,

It seems that bash is reading .bashrc and not .profile, as you have a .bashrc file. I just appended

if [ `uname -n` = t2 ] ; then
    . /usr/local/bin/t2-setup
fi

to the end of your .bashrc file, and it then sets your PATH correctly.

simonk...@t2:~$ command -v screen
/usr/local/bin/screen
simonk...@t2:~$ command -v vim
/usr/local/bin/vim

Dave

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to