Here is exactly what I have in my .bashrc:
# FSL Configuration
FSLDIR=/Users/xuelincui/fsl
. ${FSLDIR}/etc/fslconf/fsl.sh
PATH=${FSLDIR}/bin:${PATH}
export FSLDIR PATH
export DISPLAY=localhost:0.0
if [ -z "$DISPLAY" -a "X$TERM_PROGRAM" = "XApple_Terminal" ]; then
X11_FOLDER=/tmp/.X11-unix
currentUser=`id -u`
userX11folder=`find $X11_FOLDER -name 'X*' -user $currentUser -print 2>&1 | tail -n 1`
if [ -n "$userX11folder" ]; then
displaynumber=`basename ${userX11folder} | grep -o '[[:digit:]]\+'`
if [ -n "$displaynumber" ]; then
DISPLAY=localhost:${displaynumber}
export DISPLAY
else
echo "Warning: DISPLAY not configured as X11 is not running"
fi
else
echo "Warning: DISPLAY not configured as X11 is not running"
fi
fi
Thanks
Xuelin
----- Original Message -----
From: Xuelin Cui <[log in to unmask]>
Date: Friday, August 29, 2008 17:06
Subject: [FSL] FSL installation problem with MAC
To: [log in to unmask]
> hi Folks:
> I am trying to install FSl 4.1.0 on my MAC. I am using bash. Here is the content in my .bashrc file, as well as .bash_profile:
> FSLDIR=/Users/xuelincui/fsl
> . ${FSLDIR}/etc/fslconf/fsl.sh
> PATH=${FSLDIR}/bin:${PATH}
> export FSLDIR PATH
> export DISPLAY=localhost:0.0
> And here is what I got when I launch X terminal:
> export: No such file or directory:/sbin:/usr/X11R6/bin
> When I type "echo $FSLDIR", it returns nothing.
> It seems that the path where I installed my FSL is not located by computer. Anyone could help with that?
> Thanks a lot
> XC
> ****************************************
> Xuelin Cui
> Department of Electrical Engineering
> University of Hawaii-Manoa
> Honolulu HI 96822
> Tel: 1-808-956-0856
> Email: [log in to unmask]
> ****************************************
****************************************
Xuelin Cui
Department of Electrical Engineering
University of Hawaii-Manoa
Honolulu HI 96822
Tel: 1-808-956-0856
Email: [log in to unmask]
****************************************