I'm compiling NETCDF on Linux.
After configure
, make
,make install
, I have already install NETCDF on
/disk3/lly/lib/netcdf-4.1.3
.
Then, using vim ~/.bashrc
,edit:
export DIR=/disk3/lly/lib
export NETCDF=$DIR/netcdf-4.1.3/
export PATH=$DIR/netcdf/bin:$PATH
And source ~/.bashrc
.
But When I use which $NETCDF
and which $DIR
, I got this:
>> [lly@localhost netcdf-4.1.3]$ which $NETCDF
>> /usr/bin/which: no in (/disk3/lly/lib/netcdf-4.1.3)
>> [lly@localhost netcdf-4.1.3]$ which $DIR
>> /usr/bin/which: /usr/bin/which: no lib in (/disk3/lly)
which
tells you where binaries are located based on your searchPATH
, but you are passing it directories... that isn't how it works. – casey Jan 18 '16 at 3:00