When I type echo $PATH I get:<br><br>/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games<br><br>how under the directory /home/snyderjm/Desktop/netcdf-4.0.1 I have ncdump and ncgen. As a matter of fact here is my directory:<br>
<br>snyderjm@snyderjm-laptop:~/Desktop/netcdf-4.0.1$ ls<br>acinclude.m4 COPYRIGHT libncdap3 nc-config <a href="http://netcdf.pc.in">netcdf.pc.in</a><br>aclocal.m4 cxx libsrc <a href="http://nc-config.in">nc-config.in</a> nf_test<br>
compile cxx4 libsrc4 ncdap.m4 README<br>config.guess depcomp libtool ncdap_test RELEASE_NOTES<br>config.h examples ltmain.sh ncdump stamp-h1<br><a href="http://config.h.in">config.h.in</a> f90 m4 ncgen VERSION<br>
config.log fortran Makefile ncgen4 win32<br>config.status hdf5-1.8.1 Makefile.am nctest zlib-1.2.3<br>config.sub hdf5-1.8.1.tar Makefile.in nc_test zlib-1.2.3.tar<br>configure INSTALL man4 nc_test4<br>
<a href="http://configure.ac">configure.ac</a> install-sh missing netcdf.pc<br><br>Now when I configure WRF model here is what I get:<br><br>snyderjm@snyderjm-laptop:~/Desktop/WRFV3$ ./configure<br>checking for perl5... no<br>
checking for perl... found /usr/bin/perl (perl)<br>** WARNING: No path to NETCDF and environment variable NETCDF not set.<br>** would you like me to try to fix? [y]<br>Enter full path to NetCDF include directory on your system<br>
<br>What do I enter for the netcdf include directory?<br><br>Thanks,<br><br>Jason<br><br><div class="gmail_quote">On Mon, Mar 1, 2010 at 3:29 PM, Unidata netCDF Support <span dir="ltr"><<a href="mailto:support-netcdf@unidata.ucar.edu">support-netcdf@unidata.ucar.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Jason-<br>
let me make sure I understand your questions.<br>
<br>
> sudo ./configure<br>
> sudo make install<br>
Ok, this should have installed in the default<br>
location, which is /usr/local, which means that<br>
there should be programs named ncgen and ncdump<br>
in /usr/local/bin<br>
and there should be at least one library<br>
named libnetcdf.<something> in /usr/local/lib.<br>
<br>
> I also did make check and everything seems all right based on make check.<br>
That is confirmation that it compiled correctly.<br>
<br>
>is it because of lack of write access that I have for the directory<br>
>/home/snyderjm/Desktop/netcdf-4.0.1?<br>
No, this directory is the one containing the source for netcdf-4.0.1.<br>
When you do "make install", this source is compiled<br>
and then the necessary parts (programs, libraries, headers, and documentation)<br>
are installed in /usr/local/.<br>
<br>
>How do I obtain access to /usr/local?<br>
You will need to add /usr/local/bin to your PATH environment variable.<br>
If you do the command "echo $PATH" you can see if it is already there<br>
(I am betting that it is). Once it is in your path, then you<br>
can use the program ncgen and ncdump.<br>
When you compile programs that need to use netcdf, you will<br>
need to specify -I/usr/local/include and -L/usr/local/lib -lnetcdf<br>
on the command line.<br>
<br>
> Also how do I access root directory since i have permission denied here.<br>
You should only have write permission denied. But that is why I suggested<br>
you use sudo, since that allows you temporary access to root.<br>
<br>
=Dennis Heimbigner<br>
<br>
Ticket Details<br>
===================<br>
Ticket ID: QCY-964177<br>
Department: Support netCDF<br>
Priority: Normal<br>
Status: Open<br>
<br>
</blockquote></div><br>