From: Peter G. <jpg...@gm...> - 2008-03-18 20:38:32
|
On Tue, Mar 18, 2008 at 2:27 PM, Joel Cleveland <jcl...@we...> wrote: > Nope, I've never built as root, I learned not to do that the hard way. I did suspect that was the case though. How do I clean up the source tree? Since I've done so much installing and reinstalling the last few days I decided it would be best to go and do a make uninstall (yeah, I figured that was the best way to try uninstalling something lol) on speex and Iaxclient and start from scratch with 2.1 this time. I was going to attempt building as root if it still gave me permission errors but I probably shouldn't. You probably did a 'make install' as root. If the tree had not been built previously as a non-root user, this will build and then install, both as root (thus giving the built files root permissions). > > WELLSYSCORP\jcleveland@wccati:~/Downloads/iaxclient-2.1beta2> make > > make all-recursive > > make[1]: Entering directory `/home/WELLSYSCORP/jcleveland/Downloads/iaxclient-2.1beta2' > > Making all in lib > > make[2]: Entering directory `/home/WELLSYSCORP/jcleveland/Downloads/iaxclient-2.1beta2/lib' > > depbase=`echo portmixer/px_unix_oss/px_unix_oss.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ > > /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I./portmixer/px_common -pthread -I/usr/local/include -I/usr/local/include -I../lib/libiax2/src -DLIBIAX -pthread -Wall -Wextra -Wno-unused-parameter -Wpointer-arith -DLIBVER='"2.1beta2"' -g -O2 -MT portmixer/px_unix_oss/px_unix_oss.lo -MD -MP -MF $depbase.Tpo -c -o portmixer/px_unix_oss/px_unix_oss.lo portmixer/px_unix_oss/px_unix_oss.c &&\ > > mv -f $depbase.Tpo $depbase.Plo > > rm: cannot remove `portmixer/px_unix_oss/.libs/px_unix_oss.o': Permission denied > > rm: cannot remove `portmixer/px_unix_oss/.libs/px_unix_oss.o': Permission denied The only way the build system would give px_unix_oss.o (or any other object file) permissions such that you could not remove it is if make was run as some other user. To clean up the source trees, you can run either 'make clean' or 'make distclean'. The 'clean' and 'distclean' targets are highly conventional and are part of all automake-oriented builds. The 'distclean' target is as clean as you can get -- you'll have to reconfigure if you use it. You will almost certainly have to run as root, otherwise the 'make clean' will fail the same way as your vanilla 'make' command. Pete |