Hi,
I always specify the prefix to configure, before making, i.e.
./configure --prefix=/path/to/my/filesystem
I've never had problems doing it this way.
HTH,
David
Asfand Yar Qazi wrote:
Hi,
I'm using gcc-4_1-branch svn
When doing a:
make install prefix=/home/ayqazi/src/packages/gcc-4.1.0-svn/gcc-4.1-root/
(installing to a different prefix to what it was configured for) the
following error comes up:
make[4]: Entering directory
`/home/ayqazi/src/packages/gcc-4.1.0-svn/gcc-4.1-build/i686-pc-linux-gnu/libjava/libltdl'
test -z "/home/ayqazi/src/packages/gcc-4.1.0-svn/gcc-4.1-root//lib" ||
mkdir -p -- "/home/ayqazi/src/packages/gcc-4.1.0-svn/gcc-4.1-root//lib"
test -z
"/home/ayqazi/src/packages/gcc-4.1.0-svn/gcc-4.1-root//include" ||
mkdir -p --
"/home/ayqazi/src/packages/gcc-4.1.0-svn/gcc-4.1-root//include"
make[4]: Leaving directory
`/home/ayqazi/src/packages/gcc-4.1.0-svn/gcc-4.1-build/i686-pc-linux-gnu/libjava/libltdl'
make[3]: Leaving directory
`/home/ayqazi/src/packages/gcc-4.1.0-svn/gcc-4.1-build/i686-pc-linux-gnu/libjava/libltdl'
Making install in gcj
make[3]: Entering directory
`/home/ayqazi/src/packages/gcc-4.1.0-svn/gcc-4.1-build/i686-pc-linux-gnu/libjava/gcj'
make[4]: Entering directory
`/home/ayqazi/src/packages/gcc-4.1.0-svn/gcc-4.1-build/i686-pc-linux-gnu/libjava/gcj'
make[4]: Nothing to be done for `install-exec-am'.
test -z "/include/c++/gcj" || mkdir -p -- "/include/c++/gcj"
mkdir: cannot create directory `/include': Permission denied
make[4]: *** [install-gcjHEADERS] Error 1
make[4]: Leaving directory
`/home/ayqazi/src/packages/gcc-4.1.0-svn/gcc-4.1-build/i686-pc-linux-gnu/libjava/gcj'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory
`/home/ayqazi/src/packages/gcc-4.1.0-svn/gcc-4.1-build/i686-pc-linux-gnu/libjava/gcj'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory
`/home/ayqazi/src/packages/gcc-4.1.0-svn/gcc-4.1-build/i686-pc-linux-gnu/libjava'
make[1]: *** [install-target-libjava] Error 2
make[1]: Leaving directory
`/home/ayqazi/src/packages/gcc-4.1.0-svn/gcc-4.1-build'
make: *** [install] Error 2
Is this a bug, or did I do something wrong? In the 'prefix=XXX' flag
I supplied to make, XXX is an absolute path.
flags to configure were
--prefix=/usr/local/gcc \
--disable-nls --enable-version-specific-runtime-libs \
--enable-__cxa_atexit --enable-languages=c,c++,java \
--with-system-zlib --enable-java-awt=gtk --enable-gtk-cairo
Thanks