Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install gcc-c++ on CentOS without yum

Tags:

gcc

centos

Can I install gcc++ on CentOS 6.x without `yum install gcc-c++ ....' ?

Is there any .tar or .rpm package available for download?

like image 435
user113454 Avatar asked Mar 10 '12 06:03

user113454


People also ask

Can I install GCC without root?

If you have no gcc there, you need to find a pre-compiled binary of gcc/g++ and install it somewhere. If you have no header files there, you need to find copies of those and put them on the system. There is no 'standard' way of installing gcc in your home folder though.

Does CentOS come with GCC?

The default CentOS repositories contain a package group named Development Tools that contains the GCC compiler and a lot of libraries and other utilities required for compiling software.


1 Answers

Yum will install rpm from it's repository.

So I don't understand why you want to avoid yum, it will solve dependencies and install them as well.

However, here is official RPM repository mirror (one of many): http://centos.arminco.com/5/os/i386/CentOS/

Here is list of all mirrors : http://www.centos.org/modules/tinycontent/index.php?id=30

You will need at least 3 RPMs:

  • gcc-4.4.6-3.el6.i686.rpm
  • gcc-c++-4.4.6-3.el6.i686.rpm
  • libgcc-4.4.6-3.el6.i686.rpm

For compilation of C/C++ you will also need libstdc++, glibc, etc

When you run

yum install gcc

Everything is done

As you did not specified architecture I assume i386, but URL is very similar for x86_64:

http://centos.arminco.com/6/os/x86_64/Packages/

like image 50
rkosegi Avatar answered Sep 29 '22 11:09

rkosegi