This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Sachin, > Its install only root? Or can we install from any user? You can install as any user, if you have permissions to write in the installation directory. I may have misinterpreted your original question, in which you said: > I have run the command #make check install because "#" is the traditional prompt symbol used when running as root. --Russ > address@hidden> wrote: > > > Sachin, > > > > In the previous response, I wrote: > > > > libtool: link: xlc -g -o .libs/tst_rename tst_rename.o > > -L../liblib/.libs > > > > -lnetcdf -lm > > > > -Wl,-blibpath:/gpfs1/home/sachin/wrf/lib:/usr/vac/lib:/usr/lib:/lib > > > > make check-TESTS > > > > exec(): 0509-036 Cannot load program > > > > /gpfs1/home/sachin/wrf/netcdf-4.2/nctest/.libs/lt-nctest because of the > > > > following errors: > > > > 0509-150 Dependent module > > > > /usr/local/lib/libnetcdf.a(libnetcdf.so.7) could not be loaded. > > > > 0509-152 Member libnetcdf.so.7 is not found in archive > > > > FAIL: nctest > > > > exec(): 0509-036 Cannot load program > > > > /gpfs1/home/sachin/wrf/netcdf-4.2/nctest/.libs/lt-tst_rename because > > of the > > > > following errors: > > > > 0509-150 Dependent module > > > > /usr/local/lib/libnetcdf.a(libnetcdf.so.7) could not be loaded. > > > > 0509-152 Member libnetcdf.so.7 is not found in archive > > > > FAIL: tst_rename > > > > cmp: 0653-023 Cannot find or open nctest_classic.nc. > > > > FAIL: compare_test_files.sh > > > > ================================================ > > > > 3 of 3 tests failed > > > > Please report to address@hidden > > > > ================================================ > > > > > > I suspect this problem is due to running "make check" as root. It's OK > > > to run "make install" as root (or using "sudo"(, after "make check" has > > > been run, but when "make check" tries to link as root, there are > > different > > > rules for linking to libraries in paths not configured in the system, due > > > to security concerns. > > > > > > Try starting over from the configure step as a regular user (you may > > have to > > > run "make clean" first as root). Once that succeeds, you should be able > > to > > > run "make install" as root. > > > > ... but now I think that was the problem. I just tried running "make > > check" > > as root on my Linux system, and it worked fine. > > > > But the following error message reveals a problem I missed: > > > > /usr/local/lib/libnetcdf.a(libnetcdf.so.7) could not be loaded. > > > > 0509-152 Member libnetcdf.so.7 is not found in archive > > > > FAIL: nctest > > > > "libnetcdf.so.7" is a shared library, not a static library archive member. > > The fact that the loader is looking for "libnetcdf.so.7" inside libnetcdf.a > > seems to indicate something wrong with environment variables related to the > > loader or to options specified to the configure command. > > > > Could you please send the full config.log file generated when you ran > > the configure script. It would also be useful to know the values that the > > following environment variables had when you ran the configure script: > > > > LD_LIBRARY_PATH > > LDFLAGS > > LIBS > > > > Thanks! > > > > --Russ > > > > Russ Rew UCAR Unidata Program > > address@hidden http://www.unidata.ucar.edu > > > > > > > > Ticket Details > > =================== > > Ticket ID: UCO-606914 > > Department: Support netCDF > > Priority: Normal > > Status: Closed > > > > > > > -- > > * Regards *:* > **Sachin Kumar * > *Project: MOES > (Ministry of Earth Sciences)* > NWP Section, 1st Floor > India Meteorological Department > Lodhi Road,New Delhi (INDIA)* > Mob : +91-9711596605* > *HCL Infosystems Ltd.* > * *[image: Description: Description: cid:image001.jpg@01CC577F.96BF8A20] > *www.hcl.com <http://www.hcl.in/>* > > * > * > * > * > > * > * > > Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: UCO-606914 Department: Support netCDF Priority: Normal Status: Closed