Local installation of gcc on CentOS
I would like to know if it is possible to install gcc as a "local instal开发者_StackOverflow中文版lation" on my home directory? Thanks!
I am running CentOS 5.5 and exploring the possibility of installing gcc 4.2.* in my home directory btw.
~Susanth
Short Ans : You need a sysadmin access if you are installing any app in Linux but there are ways to tweak it like -
Using sudo
$sudo make install
Using a prefix
./configure --prefix=$HOME/install
Creating a private RPM database and installing from it (though for gcc I doubt it should work) ref - http://www.nordugrid.org/documents/rpm_for_everybody.html
try this: yum install gcc
If you're going to compile from source you'll also want to have kernel-devel installed...
yum install kernel-devel
精彩评论