From mboxrd@z Thu Jan 1 00:00:00 1970 From: psmith@baynetworks.com (Paul D. Smith) To: help-gcc@gnu.org Subject: Re: gcc:installation problem Date: Fri, 08 Oct 1999 14:43:00 -0000 Message-id: References: <37fe39f8.27851908@news.interpath.net> X-SW-Source: 1999-10/msg00139.html %% oupegt@hotmail.com.nospam writes: o> I'm running a Solaris 2.6 on a Sparc20 and I want to install o> gcc-2.9.5.1 from the source code on my machine. I have installed o> gcc-2.7.2 in my /opt/local/bin directory from a package I got from o> sunfreeware.com. When I run the configure command though, I keep o> getting an error. o> gcc: installation problem, cannot exec `cpp': No such file or o> directory o> *** The command '/opt/local/bin/gcc -o conftest -g conftest.c' o> failed. o> *** You must set the environment variable CC to a working compiler. Run this: $ /opt/local/bin/gcc -v -o conftest -g conftest.c It'll print the pathname of the cpp it's trying to execute; it should be in /opt/local/lib/gcc-lib/... somewhere. Wherever it is, make sure that exists, the directories are readable/executable by you, etc. etc. -- ------------------------------------------------------------------------------- Paul D. Smith Network Management Development "Please remain calm...I may be mad, but I am a professional." --Mad Scientist ------------------------------------------------------------------------------- These are my opinions---Nortel Networks takes no responsibility for them. From mboxrd@z Thu Jan 1 00:00:00 1970 From: psmith@baynetworks.com (Paul D. Smith) To: help-gcc@gnu.org Subject: Re: gcc:installation problem Date: Sun, 31 Oct 1999 13:57:00 -0000 Message-ID: References: <37fe39f8.27851908@news.interpath.net> X-SW-Source: 1999-10n/msg00139.html Message-ID: <19991031135700.RNi-j4PD8s51h4-0IhCjiRgDFnSw51NN3GbjAfliNO0@z> %% oupegt@hotmail.com.nospam writes: o> I'm running a Solaris 2.6 on a Sparc20 and I want to install o> gcc-2.9.5.1 from the source code on my machine. I have installed o> gcc-2.7.2 in my /opt/local/bin directory from a package I got from o> sunfreeware.com. When I run the configure command though, I keep o> getting an error. o> gcc: installation problem, cannot exec `cpp': No such file or o> directory o> *** The command '/opt/local/bin/gcc -o conftest -g conftest.c' o> failed. o> *** You must set the environment variable CC to a working compiler. Run this: $ /opt/local/bin/gcc -v -o conftest -g conftest.c It'll print the pathname of the cpp it's trying to execute; it should be in /opt/local/lib/gcc-lib/... somewhere. Wherever it is, make sure that exists, the directories are readable/executable by you, etc. etc. -- ------------------------------------------------------------------------------- Paul D. Smith Network Management Development "Please remain calm...I may be mad, but I am a professional." --Mad Scientist ------------------------------------------------------------------------------- These are my opinions---Nortel Networks takes no responsibility for them.