Subject: Re: Building in the source tree as a non-root user
To: Ian P. Thomas <ipthomas@mac.com>
From: James Chacon <jmc@ksu.edu>
List: netbsd-users
Date: 08/11/2004 14:27:21
Quoting "Ian P. Thomas" <ipthomas@mac.com>:
> I'm having trouble updating openssl. My entire source tree,
> 'usr/src', is owned by me, but I'm still not able to perform the
> following step as a non-root user. I'm building on the latest 1-6
> sources.
>
> /usr/src/lib/libcrypto % make USETOOLS=no cleandir dependall
>
> I've added the error message that occurs below.
>
> install -r -c -o root -g wheel -m 444
> /usr/src/lib/libcrypto/../../crypto/dist/openssl/crypto/opensslv.h
> /usr/include/openssl/opensslv.h
> install: /usr/include/openssl/inst.09999a: mkstemp: Permission denied
> *** Error code 1
>
This is because the library needs generated include files to build.
These normally would be put into a DESTDIR when building.
If you want to build non-priv'd I suggest you use build.sh and the
-U flag to it. See the top level documentation in BUILDING for examples.
James