Installing GCC
Hai.
How to install gcc. I do not have network manager hence cannot use apt-get install. So downloaded package from windows. used ./configure but cannot use make makeinstall afterward... Any helps please. |
Quote:
Quote:
|
Quote:
For instance, go to Debian Packages - gcc search results. That assumes you are using a Debian distribution. If you are using something else (e.g. Ubuntu, Mint, etc.), then you'll need to find the web page that lets you download pre-compiled binaries for your distribution. Pick whichever gcc version you need and that also matches the version/release for your distribution. Download the package to your Windows machine. Copy the package over to your Linux machine, and install the package via the command line. For instance: Code:
apt-get install /path/to/downloaded/gcc_package.deb Be aware that you may need to download additional packages. The gcc package you download may have some software requirements of its own before it will install. The kernel headers might be one such package. EDIT2: I should also point out that it is very likely you have the needed package on CD/DVD if you installed your distribution from that. Check your install media if you still have them. The good thing is, if the CD/DVD does have the gcc package, it will also have any other necessary packages to support gcc on the CD/DVD as well. |
But where can I get .deb package?That link does not have one .I already have tried the tar.gz from the link but make does not work.
|
Quote:
At the very top, it says: Code:
Exact hits If you had clicked on any of those links above, you would have seen a follow-up webpage. At the bottom of that follow-up webpage is a number of download links for architecture-specific deb packages (for example: amd64, i386, ia64, etc.). EDIT: Also, after clicking the "squeeze" link (or whichever link is appropriate for your distribution), you see a color-coded list of packages that are required, recommended, and suggested. You must download and install all packages that are indicated as required. According to that page, you must have cpp and gcc-4.4 installed. You need to download those in addition to the plain "gcc" package. You will also need to download any required packages for cpp and gcc-4.4, and any required packages for those, and so on. EDIT2: If you do not want to go hunt for all these packages, then (as I mentioned before) look at your install discs to see if it contains the packages for gcc. If you do not have your install discs anymore, then you can re-download it, burn a new disc, and try to get the packages from there. |
I got my network fixed.So i am trying to install it through the command line.
Do I need to add any repos to do so .....not even any packges it reports an error.It searches the drive rather than the net... :( |
Quote:
Quote:
apt-get update Update information from repositories. Do this before running any other commands. apt-get install newpackage Install newpackage apt-get upgrade Upgrade all packages that have available upgrades. apt-get remove oldpackage Remove oldpackage apt-get remove --purge oldpackage remove oldpackage and purge all associated files dpkg-query --list "package*" List packages matching the pattern given, and show whether they're installed (line begins ii) or not. To add a repository, edit /etc/apt/sources.list to add a couple of lines like this: deb http://example.com/debian stable main deb-src http://example.com/debian stable main gcc should be on your install disks. |
All times are GMT -5. The time now is 11:07 PM. |