[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #QNW-959324]: netCDF download support



Hello Jorge,

I'm not entirely certain why this libtool error is occurring.  Can you provide 
your config.log file?

A bit of research via Google suggests that there is something wrong with the 
way the `rpath` is being set.   Given how hold netcdf 4.0 is, it might also be 
a compatibility issue with newer systems.  I might suggest installing netcdf-c 
and netcdf-fortran (which are separate libraries in more recent versions), as 
you will benefit from bug fixes and improvements made over the last several 
years.  You will not need to worry about backwards compatibility, as newer 
versions of netcdf are made to be compatible with previous versions.  

-Ward

> Excuse me, it's not after the ./configure command, but after I run "make"
> that the error crops up.
> 
> Best,
> Jorge Orbay
> 
> On Tue, Oct 14, 2014 at 11:04 AM, Jorge Antonio Orbay <address@hidden>
> wrote:
> 
> > Dear Unidata,
> >    I am currently trying to compile an older version of netcdf, 4.0, on my
> > computer. I am using a virtual machine of ubuntu with a unix command
> > prompt. I'd like to compile netcdf with gfortran, and I was  told that I
> > could do this with :
> >
> > ./configure --prefix=${HOME}/netcdf/4.0 FC=gfortran CC=gcc CXX=g++ 
> > CPPFLAGS="-DpgiFortran
> >
> > Instead, I receive the error message "libtool:link: only absolute
> > run-paths are allowed." I received the advice from the developer of a
> > program I am installing that uses netcdf 4.0. Would you be able to help me
> > out at all? I should clarify, I'm not very adept with computers and am new
> > to unix terminals.
> >
> > Best,
> > Jorge Orbay
> >
> >
> > address@hidden> wrote:
> >
> >> Hello Jorge,
> >>
> >> I'm glad you were able to get further in the process.  This latest error
> >> you report is pretty straight-forward; you do not have permission to write
> >> to the directory /usr/local/lib.  If you have superuser access on this
> >> system, you should invoke 'make install' as follows:
> >>
> >>     $ sudo make install
> >>
> >> If you do not have superuser access, you will need to specify an
> >> alternative install location when running configure, e.g.
> >>
> >>     $ ./configure --prefix=$HOME/local
> >>
> >> I hope this helps,
> >>
> >> -Ward
> >>
> >> > I stayed trying for another hour, followed some instructions online
> >> about
> >> > downloading the C library first and changing CPPFLAGS and LDFLAGS
> >> values,
> >> > and now I have a different error. During making the library, it says:
> >> > /usr/bin/install: cannot create regular file
> >> > '/usr/local/lib/libnetcdff.so.6.0.1': Permission denied. Then it makes
> >> > three errors while trying to install and leaves directory.
> >> >
> >> > Can you help me?
> >> >
> >> > Best,
> >> > Jorge Orbay
> >> >
> >> address@hidden>
> >> > wrote:
> >> >
> >> > > I forgot to mention, when I did the quickdownload with the newest
> >> netCDF
> >> > > fortran compiler, after doing the ./configure command, I was told that
> >> > > netcdf.h could not be found, and I had to set CPPFLAGS. What does
> >> this mean?
> >> > >
> >> address@hidden
> >> > > > wrote:
> >> > >
> >> > >> Dear Unidata,
> >> > >> I'm installing netCDF and compiling it with the gnu fortran
> >> compiler, but
> >> > >> I'm having trouble building the library in unix. I've tried the quick
> >> > >> instructions provided on your page but they have not worked. The
> >> program
> >> > >> I'd like to use it for, cgenie, uses v4.0 of netCDF, but when I
> >> tried to
> >> > >> make it, I got the error message that it could not create directory.
> >> I
> >> > >> tried to download using the long instructions and the newest version
> >> of
> >> > >> netCDF, but the first instruction, ./configure
> >> > >> --prefix=/whatever/you/decided , needs to be completed in the
> >> top-level cdf
> >> > >> directory. How do I get there? If it is not obvious, I am extremely
> >> new to
> >> > >> unix and computers in general, so please be patient with me.
> >> > >>
> >> > >> Best,
> >> > >> Jorge Orbay
> >> > >>
> >> > >
> >> > >
> >> >
> >> >
> >>
> >>
> >> Ticket Details
> >> ===================
> >> Ticket ID: QNW-959324
> >> Department: Support netCDF
> >> Priority: Normal
> >> Status: Closed
> >>
> >>
> >
> 
> 

Ticket Details
===================
Ticket ID: QNW-959324
Department: Support netCDF
Priority: Normal
Status: Closed