can't install g++ so I can't compile and install any programs
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
can't install g++ so I can't compile and install any programs
I'm trying to install Python 2.4.1 on Fedora 4 linux. I downloaded and unzipped the files. I then tried to ./configure, but there was a problem with the gcc. I configured the gcc, but now when I type ./configure, I get this message
[benjamin@dhcppc0 Python-2.4.1]$ ./configure
checking MACHDEP... linux2
checking EXTRAPLATDIR...
checking for --without-gcc... no
checking for --with-cxx=<compiler>... no
checking for c++... no
checking for g++... no
checking for gcc... gcc
checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables
See `config.log' for more details.
It appears my problem is I don't have c++ or g++. Is that my only issue? If so, how do I install these two compilers? Any help is appreciated, as I'm new to this.
configure:1444: checking MACHDEP
configure:1578: result: linux2
configure:1584: checking EXTRAPLATDIR
configure:1599: result:
configure:1618: checking for --without-gcc
configure:1667: result: no
configure:1673: checking for --with-cxx=<compiler>
configure:1694: result: no
configure:1713: checking for c++
configure:1742: result: no
configure:1713: checking for g++
configure:1742: result: no
configure:1713: checking for gcc
configure:1729: found /usr/bin/gcc
configure:1739: result: gcc
configure:1779: checking for C++ compiler default output file name
configure:1782: gcc conftest.cc >&5
gcc: installation problem, cannot exec 'cc1plus': No such file or directory
configure:1785: $? = 1
configure: failed program was:
If you need more I can email it to you. Thanks for your help!
if it returns a path then check that the path is in your path:
"echo $PATH"
if not add it
"PATH=$PATH:/usr/bin/gcc"
Try running ./configure again
if which doesnt return anyting do a find to check it is on the system
"find / -name gcc"
might take a while if it returns nothing then you need to install it, howerver it is unlikley that you dont have gcc every distro iv'e used comes with it, unless you built your own and in that case you would have struggled to compile progs.
if you do find it add a soft link to /usr/bin
"ln -s /wherever/it/is/gcc /usr/bin/gcc"
The run configure agian. if your still having probs let me know
Okay, here's what happened. gcc wasn't in my path. I added it, but ./configure still won't run. Look at this:
[benjamin@dhcppc0 Python-2.4.1]$ which gcc
/usr/bin/gcc
[benjamin@dhcppc0 Python-2.4.1]$ ./configure
checking MACHDEP... linux2
checking EXTRAPLATDIR...
checking for --without-gcc... no
checking for --with-cxx=<compiler>... no
checking for c++... no
checking for g++... no
checking for gcc... gcc
checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables
See `config.log' for more details.
Here's the latest log
configure:1444: checking MACHDEP
configure:1578: result: linux2
configure:1584: checking EXTRAPLATDIR
configure:1599: result:
configure:1618: checking for --without-gcc
configure:1667: result: no
configure:1673: checking for --with-cxx=<compiler>
configure:1694: result: no
configure:1713: checking for c++
configure:1742: result: no
configure:1713: checking for g++
configure:1742: result: no
configure:1713: checking for gcc
configure:1729: found /usr/bin/gcc
configure:1739: result: gcc
configure:1779: checking for C++ compiler default output file name
configure:1782: gcc conftest.cc >&5
gcc: installation problem, cannot exec 'cc1plus': Not a directory
configure:1785: $? = 1
configure: failed program was:
Originally posted by Ardor I have the same problem, but with RedHat 9.0
the error message is the same as well
the "yum install" code does not work
Red Hat 9 doesn't come with yum, that's why you can't use it. You should have the packages you need available on your CDs. I know there's a thing in RH9 similar to Windows' Add/Remove Programs. It has different categories, like "Development tools", "Server", etc. If you can find it (I can't remember where it is, just have a look around the menus you have), look under "Development tools" and it should let you install gcc and other packages from your CDs there.
Hi,
I have a similar problem. I can't install, by manual, programs with the
command "./configure". My System is Ubuntu 7.10 Gutsy Gibbon.
xxx@xxx-desktop:~/Spiele/OTTD-source-nightly-r11814$ ./configure
checking awk... awk
checking build system type... i486-linux-gnu
checking host system type... i486-linux-gnu
detecting OS... UNIX
checking universal build... no
checking build cc... gcc
checking host cc... gcc
checking build c++... g++ not found
I couldn't detect any g++ binary on your system
please define the CC/CXX environment to where it is located
xxx@xxx-desktop:~/Spiele/OTTD-source-nightly-r11814$
I tryied to install g++, but I can't:
It want even more packages. The last is libc6-dev
but this needs libc6 (= 2.6.1-1ubuntu9).
My system wants to install 2.6.1-1ubuntu10.
So I can't install it.
I have the same problem, but with RedHat 9.0
the error message is the same as well
the "yum install" code does not work
Red Hat 9 is unsupported as of 2004, unless you have some special reason why you must use RH 9, you should either go to CentOS(free version of Red Hat Enterprise Linux), RHEL(Enterpise version of what is now Fedora), or Fedora which is another free Red Hat based distro
Hi,
I have a similar problem. I can't install, by manual, programs with the
command "./configure". My System is Ubuntu 7.10 Gutsy Gibbon.
[snip]
I couldn't detect any g++ binary on your system
please define the CC/CXX environment to where it is located
[snip]
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.