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.
Kevin, Details below... On Fri, 7 Aug 1998, Steve Emmerson wrote: > ------- Blind-Carbon-Copy > > To: Kevin Fuell <address@hidden> > cc: support-netcdf-perl > Subject: Re: netCDFPerl installation on HP-UX: binary-only perl package > In-reply-to: Your message of "Thu, 06 Aug 1998 20:43:13 GMT." > <address@hidden> > Date: Fri, 07 Aug 1998 09:17:14 -0600 > From: Steve Emmerson <address@hidden> > > Kevin, > > >Date: Thu, 06 Aug 1998 20:43:13 GMT > >From: Kevin Fuell <address@hidden> > >Organization: NOAA/NOS/CSDL > >To: address@hidden (Steve Emmerson) > >Subject: Re: 980728: netCDFPerl installation > >Keywords: 199807282109.PAA13606 > > In the above message, you wrote: > > > I finally got netcdf-perl-1.2 to install. > > Great! > > > I don't think the problem was > > with the "bit" setting but who know's. What I did was that I used some > > settings for the env that another person, Clark Safford from the Atlanta > > NWSFO, gave to me to try for Netcdf-3.4. > > > > > > CC=c89;export CC > > CCPFLAGS='-D_HPUX_SOURCE -DNDEBUG'; export CCPFLAGS > > CFLAGS='-O +z'; export CFLAGS > > FC=fort77; export FC > > FFLAGS='-O3 -w' > > CXX=CC; export CXX > > -- > > > > as opposed to : > > > > CC=/bin/c89;export CC > > CCPFLAGS='-D_HPUX_SOURCE; export CCPFLAGS > > CFLAGS=+z; export CFLAGS > > FC=/opt/fortran/bin/fort77; export FC > > FFLAGS=-w > > CXX=/user/bin/cc; export CXX > > Bizarre! I don't see anything in the above that would make a > difference. > > > Now, I have a new problem. I'm trying to do the same thing (which is to > > install perl, netcdf, and netcdf-perl), but on a different HP. The perl > > was already there although it was mostly the binaries. The version of > > perl is the same as my HP so I didn't re-install. Also when I did a > > `chatr perl` on my HP and the 2nd HP the output was the same so I > > figured that the dynamic properties for the libraries were already set. > > > > I installed the netcdf-3.4 using the first set of env variables above. > > That seemed to go fine once I had installed the ANSI-C compiler. > > > > Then I tried the netcdf-perl-1.2. I'm sending the list of info that is > > required under the "SUPPORT" section. It "bombs" when I try the `make > > perl/Makefile.PL` command. It seems to not be able to find the > > MakeMaker.pm file. So I looked on my HP and saw in was in the perl > > directories and then looked on the 2nd HP and couldn't find them. > > Remember that perl was already there although there were difference > > between the 2nd HP's directories and my HP's directories. So I tar'ed > > the /lib directory which contained the /ExtUtils/MakeMaker.pm and ftp'ed > > it to the 2nd HP and untar'ed it in the /usr/local/perl5 directory > > which created a new /lib directory (I switch the original /lib to > > /lib.old). Ran it again and realized that the paths the errors were > > giving all started with /opt, but in the CUSTOMIZE file I stated that > > the perl source directory was /usr/local/perl5. So why does it say the > > everything in @INC starts with /opt? The error also says that the @INC > > is the 2nd line in the Makefile.PL but I sure don't see any "@INC" > > anywhere. This is strange. So I think the problem is know how to > > change the /opt/perl to /usr/local/perl5. > > I'd really like to help you but I don't know all that much about perl. > You'd be better off posting this question to a perl mailing-list or > newsgroup. > > Having said that, I suspect that the perl installation on the first > system was built assuming /opt/perl as the installation directory. When > you copied the files over, you also copied that assumption. > > I could be that extension modules can't be built for perl packages that > weren't installed from source. > > > > > > > > > 1) HP-UX wbcsoo B.10.20 A 9000/715 2003533703 two-user license > > > > 2) 3.4 > > > > 3) # ./configure > configure.log 2>&1 > > # more configure.log > > creating cache ./config.cache > > checking for catman... catman > > checking for perl utility... /usr/local/perl5/bin/perl > > checking for perl manual page directory... /usr/local/man > > checking for neqn... neqn > > checking for tbl... tbl > > checking for C compiler... c89 > > checking type of operating system... hpux10 > > checking for tar flags... -chof > > checking for netCDF header-file... -I/usr/local/netcdf-3.4/include > > checking for netCDF library... -L/usr/local/netcdf-3.4/lib -lnetcdf > > checking for package version... 1.2 > > updating cache ./config.cache > > creating ./config.status > > creating Makefile > > creating perl/Makefile.PL > > creating port/master.mk > > creating port/Makefile > > expanding `include's in file `Makefile' > > expanding `include's in file `perl/Makefile.PL' > > expanding `include's in file `port/master.mk' > > expanding `include's in file `port/Makefile' > > > > 4) which c89 > > /usr/bin/c89 > > > > 5) more config.log > > This file contains any messages produced by compilers while > > running configure, to aid debugging if configure makes a mistake. > > > > 6) # make all > all.log 2>&1 > > # more all.log > > cd perl && /usr/local/perl5/bin/perl Makefile.PL > > Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: > > /opt/perl5/lib/PA-RIS Two things to check, 1) All the perl modules need to be installed in /opt/perl5/lib. Compare this dir to the other HP perl installation. 2) In the file Makefile.PL add this line after the first line; push( @INC, "/opt/perl5/lib" ) ; This should do help find the ExtUtils/MakeMaker.pm module Robb... > > C2.0/5.00404 /opt/perl5/lib /opt/perl5/lib/site_perl/PA-RISC2.0 > > /opt/perl5/lib/s > > ite_perl .) at Makefile.PL line 2. > > BEGIN failed--compilation aborted at Makefile.PL line 2. > > *** Error exit code 2 > > > > Stop. > > > > 7) # make test > test.log 2>&1 > > # more test.log > > cd perl && /usr/local/perl5/bin/perl Makefile.PL > > Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: > > /opt/perl5/lib/PA-RIS > > C2.0/5.00404 /opt/perl5/lib /opt/perl5/lib/site_perl/PA-RISC2.0 > > /opt/perl5/lib/s > > ite_perl .) at Makefile.PL line 2. > > BEGIN failed--compilation aborted at Makefile.PL line 2. > > *** Error exit code 2 > > > > Stop. > > > > 8) # make install > install.log 2>&1 > > # more install.log > > cd perl && /usr/local/perl5/bin/perl Makefile.PL > > Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: > > /opt/perl5/lib/PA-RIS > > C2.0/5.00404 /opt/perl5/lib /opt/perl5/lib/site_perl/PA-RISC2.0 > > /opt/perl5/lib/s > > ite_perl .) at Makefile.PL line 2. > > BEGIN failed--compilation aborted at Makefile.PL line 2. > > *** Error exit code 2 > > > > Stop. > > > > > > > > > > > > Thanks, > > Kevin > > ********************************************************* > > * Kevin Fuell * > > * UCAR Visiting Scientist at the Coast * > > * Survey Development Lab (NOAA/NOS/CSDL) * > > * ATTN: LAPS Project for the Chesapeake Bay * > > * mail code: N/CS13 * > > * 1315 East-West Highway, SSMC3, Rm 7709 * > > * Silver Spring MD, 20910 * > > * Phone: 301-713-2809 x114 FAX: 301-713-4501 * > > * * > > * NOAA/NWS Forecast Office (3 to 4 days/week) * > > * 44087 Weather Service Rd. * > > * Sterling VA, 20166 * > > * email: address@hidden * > > * Phone: 703-260-0107 FAX: 703-260-0809 * > > ********************************************************* > > - -------- > Steve Emmerson <http://www.unidata.ucar.edu> > > ------- End of Blind-Carbon-Copy > =============================================================================== Robb Kambic Unidata Program Center Software Engineer III Univ. Corp for Atmospheric Research address@hidden WWW: http://www.unidata.ucar.edu/ ===============================================================================