Print

Print


Hi Ed,

I have no clue about FSL 4, but since your challenges seem to be  
generic...

On Aug 20, 2007, at 11:59 AM, Ed Roberts wrote:

> Hi,
>
> I'm trying to install the sparkly new FSL 4.0, but I'm stuck  
> (hopefully) at
> the last hurdle.
>
> I've got the VM machine working in Windows, and I've unpacked the  
> *.tar file
> to the directory /home/fsl/fsl.
>
> I'm using the traditional unpacking method because the sh installer  
> didn't
> work, think it was a password issue a previous post highlighted.  
> I'm a bit
> lost at this stage:
>
> Put the following somewhere in your shell setup file  
> (.bashrc, .profile,
> .cshrc etc., depending on what shell you use), replacing "/usr/ 
> local/fsl"
> with a path appropriate for where you have installed FSL:
> bash / sh / ksh:
>
> FSLDIR=/usr/local/fsl  ***  I used: FSLDIR=/home/fsl/fsl
> . ${FSLDIR}/etc/fslconf/fsl.sh
> PATH=${FSLDIR}/bin:${PATH}
> export FSLDIR PATH
>
> How do I know which shell setup file I'm using, or are bash/sh/ksh  
> equivalent?
	Well you can choose the shell you want to use, to find out which  
shell you run you can try the following (well best is to look up the  
operating system default, but since I do not know which distribution  
you use, I will get inventive). Option
"echo $0", this will return the name of the currently running shell,  
most likely your default.
	Now, most Linuxes use bash as default, so do the following in your  
home directory (leave out the comments after the #'s):
# this takes care of login shells (>> concatenates)
touch ~/.profile	# this will create the file
chmod u=rwx ~/.profile	# make this file executeable
echo "if [ -e ~/.bashrc ]; then" >> ~/.profile
echo "	. ~/.bashrc	# source the .bashrc, this way you only have to  
configure one file..." >> ~/.profile
echo "fi" >> ~/.profile
echo "" >> ~/.profile

# and now the .bashrc
touch ~/.bashrc	# this will create the file
chmod u=rwx ~/.bashrc	# make this file executeable
echo "FSLDIR=/home/fsl/fsl" >> ~/.bashrc
echo ". ${FSLDIR}/etc/fslconf/fsl.sh" >> ~/.bashrc
echo "PATH=${FSLDIR}/bin:${PATH}" >> ~/.bashrc
echo "export FSLDIR PATH" >> ~/.bashrc
echo "" >> ~/.bashrc

>
> I've tried putting the above text into /home/fsl/fsl/etc/fslconf/ 
> fsl.sh in
> the box marked out for user input, but this didn't seem to work.
	Erm, take this out of /home/fsl/fsl/etc/fslconf/fsl.sh then, as that  
does not seem the proper place for shell configuration ;)


>
> Do I need to alter the 'tcsh / csh' files with the relevent text  
> too, and
> shoud I be altering shells in the fsl directory?
	No, only for your default login shell, as any shell you start from  
there will inherit the environment variables defined in the parent  
shell...
	Then again, I have zero clue about FSL4, so I could be way off here,  
a grain of salt might be taken along these hints...

>
> Any tips gratefully received!
>
> cheers,
>
> Ed Roberts

-- 
Sebastian Moeller

Tel.: 04 21 - 2 18 - 78 38 oder 96 91
Fax.: 04 21 - 2 18 - 90 04
GSM:  01 62 - 3 25 45 59
[log in to unmask]

AG Kreiter / FB 2
Institut fuer Hirnforschung III
Abteilung Theoretische Neurobiologie
Universitaet Bremen
Biogarten
Hochschulring 16a
Postfach 33 04 40
28359 Bremen