Click to See Complete Forum and Search --> : error writing to /usr/local/lib


diogenes
07-05-2003, 04:10 PM
this is the error:

[diogenes@localhost avifile0.7-0.7.37]$ make -j 2 install
Making install in .
make[1]: Entering directory `/home/diogenes/programs/avifile0.7-0.7.37'
make[2]: Entering directory `/home/diogenes/programs/avifile0.7-0.7.37'
/bin/sh ./admin/mkinstalldirs /usr/local/bin
/bin/sh ./admin/mkinstalldirs /usr/local/lib/pkgconfig
/usr/bin/install -c avifile-config /usr/local/bin/avifile-config
/usr/bin/install: cannot create regular file `/usr/local/bin/avifile-config': Permission denied
mkdir /usr/local/lib/pkgconfig
mkdir: cannot create directory `/usr/local/lib/pkgconfig': Permission denied
make[2]: *** [install-pkgconfigDATA] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [install-binSCRIPTS] Error 1
make[2]: Leaving directory `/home/diogenes/programs/avifile0.7-0.7.37'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/diogenes/programs/avifile0.7-0.7.37'
make: *** [install-recursive] Error 1
[diogenes@localhost avifile0.7-0.7.37]$


now I think it has something to do with writing restrictions on that directory. But how the hell do I make it install the program then!

diogenes
07-05-2003, 04:18 PM
this also happend when I was installing Xine, and a few other programs that needed to write into that (/usr/local) directory

mdwatts
07-05-2003, 04:19 PM
You need to be root for the install step as the normal user does not have sufficient access rights to those directories.

su -
<root password>

make install

Checkout our Compiling Software Help File in the compiling kernel section as it should also explain.

diogenes
07-05-2003, 04:55 PM
thanks for the assistance dude!

you made my day!