Author Topic: Make error : Exec: g++: not found on Plesk 10 running centoS  (Read 6826 times)

PHPize

  • Newbie
  • *
  • Posts: 19
Make error : Exec: g++: not found on Plesk 10 running centoS
« on: September 22, 2011, 07:05:29 AM »
It appears there are lots problem in this plesk server, now  tried to install a program and during make I find following error :
Code: [Select]
make
Making all in src
make[1]: Entering directory `/root/sphinx-0.9.9/src'
if test -d ../.svn; then svn info .. --xml | perl svnxrev.pl; fi;
make  all-am
make[2]: Entering directory `/root/sphinx-0.9.9/src'
source='sphinx.cpp' object='sphinx.o' libtool=no \
        DEPDIR=.deps depmode=none /bin/sh ../config/depcomp \
        g++ -DHAVE_CONFIG_H -I. -I../config  -DSYSCONFDIR="\"/var/local/sphinx/etc\"" -I/usr/local/include -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -fPIC  -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1   -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -c -o sphinx.o sphinx.cpp
../config/depcomp: line 512: exec: g++: not found
make[2]: *** [sphinx.o] Error 127
make[2]: Leaving directory `/root/sphinx-0.9.9/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/sphinx-0.9.9/src'
make: *** [all-recursive] Error 1

I have GCC installed then why this error is coming ?

here is list of gcc installed
Code: [Select]
gcc-4.1.2-51.el5
libgcc-4.1.2-51.el5
libgcc-4.1.2-51.el5
??

Jaffery

  • Administrator
  • Full Member
  • *****
  • Posts: 158
Re: Make error : Exec: g++: not found on Plesk 10 running centoS
« Reply #1 on: September 26, 2011, 08:58:15 PM »
You also need gcc-c++ in order to compile it.
Because its centos, you can simply install it through :

Code: [Select]
yum install gcc-c++

 

X

Do you know?

IfAndBut.com gives you a platform where you can ask questions related to web and internet..
So, why wait..
Join Now!