> Hi Russ, > > I have > -rwxr-xr-x 1 xyu games 3182316 Feb 1 16:55 libnetcdf.so.7.2.0 > -rwxr-xr-x 1 xyu games 1011 Jan 24 17:26 libpathplan.la > lrwxrwxrwx 1 xyu games 20 Jan 24 17:26 libpathplan.so -> > libpathplan.so.4.0.0 > > So it's not installed as static. > > I installed netCDF with with --enable-netcdf4, when I am installing Fortran > lib, I use > > ./configure --prefix=/hou_proj2/EM_projects/xyu/Ov2-deps --enable-netcdf4 > -L/hou_proj2/EM_projects/xyu/Ov2-deps/lib -lnetcdff > > But got errors: > configure: error: unrecognized option: > `-L/hou_proj2/EM_projects/xyu/Ov2-deps/lib' > Try `./configure --help' for more information > > I tried the help, but can't find anything about -L. I am using csh. Thanks for the information that you are using csh. I think that is the source of the confusion. Our installation documentation is written assuming use of a POSIX standard shell, such as sh, bash, ksh, or zsh. The csh shell has different syntax for setting environment variables, requiring use of setenv ENV_VAR value instead of export ENV_VAR=value or just ENV_VAR=value So where the instructions say export LD_LIBRARY_PATH={DIR1}/lib:$LD_LIBRARY_PATH you would instead use setenv LD_LIBRARY_PATH "{DIR1}/lib:$LD_LIBRARY_PATH" and instead of CPPFLAGS=-I{DIR1}/include LDFLAGS=-L{DIR1}/lib ./configure --prefix={DIR1} you would use setenv CPPFLAGS "-I{DIR1}/include" setenv LDFLAGS "-L{DIR1}/lib" ./configure --prefix={DIR1} For all these examples, you would use /hou_proj2/EM_projects/xyu/Ov2-deps instead of {DIR1} I'm sorry the documentation doesn't make clear that a standard POSIX shell is assumed. I will correct that omission. There was also a mistake on that page that had an incorrect "-L" in the command export LD_LIBRARY_PATH=-L{DIR1}/lib:$LD_LIBRARY_PATH which should have been just export LD_LIBRARY_PATH={DIR1}/lib:$LD_LIBRARY_PATH That has also been corrected. --Russ > address@hidden> wrote: > > > Hi Xuesheng, > > > > > This page is very confusing: > > > > > > > > http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-fortran-install.html > > > > > > How can I know if the netCDF was built as static or not? also there have > > > two "if static only" in this page. > > > > Sorry about that. I've tried to clear up the confusing parts and explain > > how you know > > if the netCDF library is installed only as a static library (there are no > > libnetcdf.so* > > files in the library directory where it was installed). Take a look at > > the revised > > installation instructions and please let me know if you still find them > > confusing. > > > > Thanks for reporting the problem! > > > > --Russ > > > > Russ Rew UCAR Unidata Program > > address@hidden http://www.unidata.ucar.edu > > > > > > > > Ticket Details > > =================== > > Ticket ID: LEX-922145 > > Department: Support netCDF > > Priority: Normal > > Status: Closed > > > > > > Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: LEX-922145 Department: Support netCDF Priority: Normal Status: Closed
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.