This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Running ranlib after installation - okay or not?
- From: Gerald Pfeifer <gerald at pfeifer dot com>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 31 Aug 2005 19:57:23 +0200 (CEST)
- Subject: Running ranlib after installation - okay or not?
We currently perform the following sequence of commands as part of the
installation (-m 444 being the default on current FreeBSD systems).
install -m 444 ./libgcc.a /prefix/lib/gcc/i386-portbld-freebsd5.4/3.4.5/gcc/i386-portbld-freebsd5.4/3.4.5/
ranlib /prefix/lib/gcc/i386-portbld-freebsd5.4/3.4.5/gcc/i386-portbld-freebsd5.4/3.4.5/libgcc.a
This works fine when running as root, but when doing an installation as
user, installation fails:
ranlib: unable to copy file '/prefix/lib/gcc/i386-portbld-freebsd5.4/3.4.5/gcc/i386-portbld-freebsd5.4/3.4.5/libgcc.a' reason: Permission denied
gmake[2]: *** [install] Error 1
I believe installing libraries with permissions 444 ought to be okay,
as is for ranlib to refuse working on files which are not writeable.
Does anyone disagree (and if not, have suggestions how to address this
in GCC)?
Gerald