NSF Unidata

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

[netCDF #KWX-611624]: Issue with 'make' regarding .deps/attr.tpo

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.



Hi Dave,

Sorry to have taken so long to respond to your support request.

> Thank you in advance for you help. I'm rather new to netcdf outside of
> the matlab realm and have been trying to compile my libraries for
> several days. The machine is a AMD 64bit processor running Ubuntu 9.10
> glnx86.
> 
> I untar in /bin/Netcdf and run ./configure which appears to run fine.
> I then run 'make' and it returns:
> 
> david@Dave:/bin/NETCDF/netcdf-4.0.1$ make
> make  all-recursive
> make[1]: Entering directory `/bin/NETCDF/netcdf-4.0.1'
> Making all in libsrc
> make[2]: Entering directory `/bin/NETCDF/netcdf-4.0.1/libsrc'
> depbase=`echo attr.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
> /bin/bash ../libtool --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I.
> -I.. -I../fortran        -g -O2 -MT attr.lo -MD -MP -MF $depbase.Tpo -c
> -o attr.lo attr.c &&\
> mv -f $depbase.Tpo $depbase.Plo
> libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I../fortran -g -O2 -MT
> attr.lo -MD -MP -MF .deps/attr.Tpo -c attr.c -o attr.o
> attr.c:2210: fatal error: opening dependency file .deps/attr.Tpo:
> Permission denied
> compilation terminated.
> make[2]: *** [attr.lo] Error 1
> make[2]: Leaving directory `/bin/NETCDF/netcdf-4.0.1/libsrc'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/bin/NETCDF/netcdf-4.0.1'
> make: *** [all] Error 2
> david@Dave:/bin/NETCDF/netcdf-4.0.1$
> 
> it seems to fail immediately. I've attempted to change the permissions
> (not sure if this even makes sense) and such without any luck. Thanks
> again for the help.

What are the permissions on the /bin/NETCDF/netcdf-4.0.1/libsrc directory?
Could you please send the output of running the following commands:

  cd /bin/NETCDF/netcdf-4.0.1/libsrc
  ls -ld `pwd`
  touch zzz

If the last command produces a "permission denied" error, I suggest you build
in a different directory, where you have permission to create files and
subdirectories.  Otherwise, please send us the information requested here:

  http://www.unidata.ucar.edu/netcdf/docs/netcdf-install/Reporting-Problems.html

Thanks.

--Russ

Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: KWX-611624
Department: Support netCDF
Priority: Normal
Status: Closed