Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C compiler gcc not found while installing passenger and nginx

I'm trying to install Passenger and Nginx on my VPS.

I followed these instructions and replaced all links of all sources to the current version.

But when i ran the Phusion Passenger installer for Nginx, something with gcc compiler went wrong:

Compiling and installing Nginx...
# sh ./configure --prefix='/opt/nginx' --with-http_ssl_module --with-http_gzip_static_module --with-cc-opt='-Wno-error' --add-module='/usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.17/ext/nginx'
checking for OS
 + Linux 2.6.32-220.el6.x86_64 x86_64
checking for C compiler ... not found

./configure: error: C compiler gcc is not found

What should I do?

OBS: My VPS works with CentOS 6.2 x64

like image 545
Eduardo Leal Avatar asked Oct 07 '12 16:10

Eduardo Leal


1 Answers

same problem here and I found out that I am not able to run command as root has to use

 sudo

and it worked like charm

like image 96
wpcoder Avatar answered Oct 03 '22 11:10

wpcoder