This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: installing with minimal sudo
- From: Joern Rennecke <amylaar at spamcop dot net>
- To: basile at starynkevitch dot net
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 30 Jun 2010 18:13:32 -0400
- Subject: Re: installing with minimal sudo
- References: <1277932731.4504.46.camel@glinka>
Quoting Basile Starynkevitch <basile@starynkevitch.net>:
Hello All,
Is there some trick so that the GCC trunk (or a branch like MELT) is
built under some user (e.g. basile) and is installed (in the
usual /usr/local prefix, which is writable by root, not by ordinary
users on most Linux systems)
I usually install in more nonstandard locations - ones I can write to.
So no sudo is required.
How do you build & install GCC (trunk or some other branch) without
having any root owned files in the build directory?
What's the problem? you could just change the owner of the files to
yourself while you are root.
Or afterwards, you can delete them, as long as you can write to the
directory they reside in.
find builddir -user root
should find them all.
Then you can use command substitution, xargs, or just find itself,
to chown / rm these files.