gcc configure error
I`m having a bit of a problem with configuring gcc.
After untarring gcc with: "tar jxf gcc-4.0.3.tar.bz2" (no quotes) i make the build dir with "mkdir -v ../gcc-build" I then cd to that dir with:" cd ../gcc-build "( all this from within the gcc-4.0.3 dir) I then run the command from the book: " ../gcc-4.0.3/configure --prefix=/tools \ --with-local-prefix=/tools --disable-nls --enable-shared \ --enable-languages=c" Then the problems start. i get 2 warnings( as follows: configure:warning: --with-local-prefix=/tools: invalid host type configure:warning: --enable-languages=c: invalid host type configure: error: can only configure for one host and one target at a time I`m wondering as i`m using the live cd 6.2-3 as host ,is the "--with-local-prefix=/tools" needed here?The book says its used to remove /usr/local/include from gcc`s include search path.This is not absolutely essential,however ,it helps to minimize the influence of the host system.I`m assuming they mean /usr/local/include from the host system ,is there such on the cd? thanks ps...need a scrathing my head smiley.:D |
Hi,
You probably entered this (one line): ../gcc-4.0.3/configure --prefix=/tools \ --with-local-prefix=/tools --disable-nls --enable-shared \ --enable-languages=c That is incorrect and not what the book is trying to tell you. This would be correct (again, one line): ../gcc-4.0.3/configure --prefix=/tools --with-local-prefix=/tools --disable-nls --enable-shared --enable-languages=c or this: ../gcc-4.0.3/configure --prefix=/tools \ --with-local-prefix=/tools --disable-nls --enable-shared \ --enable-languages=c Mind you, there are 3 lines! After every \ you go to the next line. The \ tells the shell that the upcoming enter is to be 'discarded' because the command continues on the next line. Hope this helps. |
ah ..got it....see i`ve learned something useful already, thanks
|
All times are GMT -5. The time now is 05:06 AM. |