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

20021202: UDUNITS 1.11.7 installation: conftest: Permission denied



David,

>Date: Mon, 02 Dec 2002 22:15:15 -0700
>From: David Price <address@hidden>
>Organization: ?
>To: Steve Emmerson <address@hidden>
>Subject: Re: 20021202: UDUNITS 1.11.7 installation: conftest: Permission denied

The above message contained the following:

> Re your queries.
> 
> 1. Line 335 of config.status is close to the end of the file, and falls inside
> a loop. I have indicated line numbers at left.
> 
> 331   for file in ${CONFIG_FILES-}; do
> 332       echo 1>&2 "expanding \`include's in file \`$file'"
> 333       sd=`pwd`/`echo $file | sed 's,[^/]*$,,'`
> 334       base=`basename $file`
> 335       (cd $sd && $conftest < $base > conftest.mk && 
> 336         mv conftest.mk $base) || exit 1
> 337   done
> 
> Sorry I don't know much about shell scripts (I do use Perl
> extensively, mainly to avoid this stuff!)
> 
> 2. Permissions and ownership of src directory:
> 
> geminiani:david//data1/downloads/ncview/udunits-1.11.7%ls -ld src
> drwxrwx---    6 root     users        4096 2002-12-02 21:50 src

I don't see anything odd about this directory.

> 3. I tried running as root and changing owner:group of src and all 
> directories and files it contains to root:root, but this made no difference. 
> I tried changing permissions on directory src to 777 but again no difference. 
> 
> After rerunning, the permissions on conftest are as follows:
> 
> geminiani:/data1/downloads/ncview/udunits-1.11.7/src # ls -l conftest
> -rwxr-----    1 root     root        11949 2002-12-02 22:03 conftest

The above indicates that "conftest" should be executable by root.

What about the file "conftest.mk"?  Where does it exist in the directory
hierarchy (there can be more than one)?  If it exists, what are its
protections and ownership?  You can use the following command:

    find /data1/downloads/ncview/udunits-1.11.7/src -name conftest.mk -ls

What happens if you manually execute the following command as root in
directory /data1/downloads/ncview/udunits-1.11.7/src:

    ./conftest < Makefile > conftest.mk && mv conftest.mk Makefile

What happens if you execte the above command in every subdirectory in
which the file Makefile exists?

> 4. I am attaching configure.log
...
> expanding `include's in file `Makefile'
> ./config.status: line 335: 
> /data1/downloads/ncview/udunits-1.11.7/src/conftest: Permission denied
...

> Thanks for any help you can provide.
> 
> David

Regards,
Steve Emmerson   <http://www.unidata.ucar.edu>