[SOLVED] Trying to install gcc on KDE and it says I'm missing an instal.sh file
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.
Trying to install gcc on KDE and it says I'm missing an instal.sh file
Hey,
I am trying to install gcc so I can compile C++ on a Virtual linux machine I have on my pc. I went to the GNU website and downloaded gcc-g++-4.5.0.tar.gz, unzipped and un-tarred it. This left me with a folder named gcc-4.5.0 which itself contained two folders. One named gcc and another named libstdc++-v3. From trying to follow a (not very clear) guide online I created another folder in the libstdc++-v3 folder named objdir into which I copied the configre executable. I then tried to run it here and was told that I was missing an install.sh file. I found one of these from somewhere else on my machine and copied it into the libstdc++-v3 folder. Now when I try to run the configure executable from the objdir folder I get a message saying "configure: error: cannot run /bin/bash ./config.sub.
Basically all I want to do is get gcc up and running so I can compile some code. What I have been doing so far is probably way off the mark but its as far as I could get from following stuff online.
What distribution are you using? (Hint: KDE is not a distro, but a desktop environment - look for something like Ubuntu, Debian, Red Hat, Mint, Slackware, etc) Typically you can install gcc easily from your distribution's repositories, which is much easier than installing it from the GNU website.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Quite simple : Use the package manager = Synaptic.
( And hit the 'Refresh' button if not 20,000-30,000 packages are shown.)
Synaptic has a "Search": Look for gcc, g++. You will need both. g++=gcc-c++.
Or use the command line :
1) sudo apt-get update ( to refresh the package lists.)
2) sudo apt-get install gcc g++
......
With only GCC, you will miss some important dev tools required for compiling such as binutils (assembly tools) and the make file tools. The way you tried to install GCC can't work, as it is the source archive, you need a compiler to compile it first
You can also mark your thread as "[SOLVED]". The "apt-get install" command can be used to install anything. "sudo apt-get install install mysql firefox" will install mysql and firefox.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
I don't know why the "install 'build-essential' advise"
is seen so often. It's mainly dpkg-dev + its dependencies. http://packages.ubuntu.com/lucid/build-essential
QUOTE :
"If you do not plan to build Debian packages, you don't need this package."
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.