This is my bashrc.
Copy only the relevant parts
# User specific aliases and functions
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
OTCL_LIB=/home/apostolis/ns2/ns-allinone-2.34/otcl-1.13
NS2_LIB=/home/apostolis/ns2/ns-allinone-2.34/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export CUDA_ROOT="/usr/local/cuda"
export CUDA_SDK_ROOT="/cuda_sdk"
TCL_LIB=/home/apostolis/ns2/ns-allinone-2.34/tcl8.4.18/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB
XGRAPH=/home/apostolis/ns2/ns-allinone-2.34/bin:/home/apostolis/ns2/ns-allinone-2.34/tcl8.4.18/unix:/your/path/ns-allinone-2.31/tk8.4.14/unix
NS=/home/apostolis/ns2/ns-allinone-2.34/ns-2.34
NAM=/home/apostolis/ns2/ns-allinone-2.34/nam-1.14/
PROFILER=/usr/local/cuda/computeprof/bin
export
LD_LIBRARY_PATH="${CUDA_ROOT}/lib64:${CUDA_ROOT}/lib:/usr/lib64:/usr/lib:/cuda_sdk/C/lib:"
export
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB:/opt/intel/composer_xe_2011_sp1.6.233/mkl/lib/intel64
export
PATH=/cuda_sdk/C/common/inc:${CUDA_ROOT}/bin:${CUDA_SDK_ROOT}:${CUDA_SDK_ROOT}/shared:/home/apostolis/simplescalar/bin:/home/apostolis/simplescalar-arm/simplesim-arm:/home/apostolis/arm-cross/bin:/home/apostolis/d4-7:/opt/intel/bin:${PATH}
PATH=$PATH:$XGRAPH:$NS:$NAM:$PROFILER:/home/apostolis/intel/mkl/include/:
#export CILK_ROOT="/cilk"
#export LD_LIBRARY_PATH="/usr/lib64:${CILK_ROOT}/lib64"
#export PATH=${CILK_ROOT}/bin:${PATH}
export MKLROOT="/home/apostolis/intel/mkl"
export MKL_PATH="/home/apostolis/intel/mkl/lib/intel64"
export LD_LIBRARY_PATH=$MKL_PATH:$LD_LIBRARY_PATH
export IFACE_LIB=$MKL_PATH/libmkl_intel_ilp64.so
export CORE_LIB=$MKL_PATH/libmkl_core.so
#export MKL_LIBS=$IFACE_LIB $CORE_LIB
sh /home/apostolis/keyb_switch.sh
Could you please enter the following commands and tell me the output?
echo $PATH
sudo echo $PATH
sudo su and then echo $PATH
Note that you should export the PATH variable again as root.
Apostolis
2012/6/29 George <ggeo1(a)windowslive.com>
Στις 29/06/2012 04:59 μμ, ο/η Apostolis Glenis
έγραψε:
I mean that both when you are root and when you
are a normal user you
should see /usr/local/cuda/bin when you type
echo $PATH
to do that you should type into the terminal or add into bashrc
something like:
PATH=$PATH:CUDA_ROOT
export PATH
I hope this helps/
Could you please give me the contain of .bashrc?
Because i have all of these now:
export PATH=/usr/local/cuda/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/local/cuda/lib:$LD_LIBRARY_PATH
export PATH=~/bin:$PATH
export CUDA_ROOT=/usr/local/cuda/bin
PATH=$PATH:CUDA_ROOT
export PATH
(It doesn't show the "echo $PATH" when i am root).
Thanks!