Quote:
Originally posted by jwilcox09
now i get this when i try to install the new gcc
jwilcox09@josh-wilcox-2:~/gcc-3.4.3/gcc-3.4.3> ./configure
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
./configure: line 2332: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
any other ideas
thanks
|
you cannot build a compiler without a compiler... ( it's a circular dependency).
you need to go into Yast and install the development packages. gcc/g++ ( the c and c++ compilers respectively) are only part of what you need:
gcc
g++
binutils
sed
awk
perl
autoconf
automake
m4
make
that would be the minimum you would need if you are gonna build programs from source. But soon you will run into other problems, since you are running a distro that is not necessarily meant to be a platform to compile applications on ( but it can be done without too much hassle, provided you know what you need and know what you are doing). Also, since you are using a rpm distro, remember packages are split into multiple pieces, so look out for -devel packages and install them too.
Also, in addition to the above list, look for a libstdc++ and libstdc++-devel package. rpm distro's are known to split this into it's own package
( it comes with g++, but for some reason rpm distro's like to split it off into it's own package.)
Really, in the end, if you want to avoid all this start using prebuilt binary packages specifically packaged for your version of Suse.