Can't install root

Hi,
gmake fails when I try to build. Any help would be truly appreciated. Thanks!


My specs are:
uname -a
Linux * 2.6.11-1.1369_FC4smp #1 SMP Thu Jun 2 23:08:39 EDT 2005 i686 i686 i386 GNU/Linux

gcc -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: …/configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,java,f95,ada --enable-java-awt=gtk --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --host=i386-redhat-linux
Thread model: posix
gcc version 4.0.2 20051125 (Red Hat 4.0.2-8)


Here’s the error from gmake:

gmake
gmake: g77: Command not found
gmake: g77: Command not found
gcc -O -pipe -Wall -W -fPIC -Iinclude -pthread -DINCLUDEDIR="/usr/include" -DOBJSUFFIX=".o" -o build/rmkdepend/cppsetup.o -c build/rmkdepend/cppsetup.c
gcc -O -pipe -Wall -W -fPIC -Iinclude -pthread -DINCLUDEDIR="/usr/include" -DOBJSUFFIX=".o" -o build/rmkdepend/ifparser.o -c build/rmkdepend/ifparser.c
gcc -O -pipe -Wall -W -fPIC -Iinclude -pthread -DINCLUDEDIR="/usr/include" -DOBJSUFFIX=".o" -o build/rmkdepend/include.o -c build/rmkdepend/include.c
gcc -O -pipe -Wall -W -fPIC -Iinclude -pthread -DINCLUDEDIR="/usr/include" -DOBJSUFFIX=".o" -o build/rmkdepend/main.o -c build/rmkdepend/main.c
gcc -O -pipe -Wall -W -fPIC -Iinclude -pthread -DINCLUDEDIR="/usr/include" -DOBJSUFFIX=".o" -o build/rmkdepend/parse.o -c build/rmkdepend/parse.c
gcc -O -pipe -Wall -W -fPIC -Iinclude -pthread -DINCLUDEDIR="/usr/include" -DOBJSUFFIX=".o" -o build/rmkdepend/pr.o -c build/rmkdepend/pr.c
g++ -O -o bin/rmkdepend build/rmkdepend/cppsetup.o build/rmkdepend/ifparser.o build/rmkdepend/include.o build/rmkdepend/main.o build/rmkdepend/parse.o build/rmkdepend/pr.o
gmake: g++: Command not found
gmake: *** [bin/rmkdepend] Error 127


Here’s the output from ./configure

Configuring for linux
Checking for libX11 … /usr/X11R6/lib
Checking for X11/Xlib.h … /usr/include
Checking for libXpm … /usr/X11R6/lib
Checking whether to build included libfreetype6 … yes
Checking whether to build included libpcre … yes
Checking for GL/gl.h … /usr/include
Checking for libGL, or libMesaGL … /usr/lib
Checking for libGLU, or libMesaGLU … /usr/lib
Checking for mysql.h … no
Checking for libmysqlclient_r, libmysqlclient, or mysqlclient … no
Checking for occi.h … no
Checking for libclntsh, or oci … no
Checking for libocci, or oraocci10 … no
Checking for libpq-fe.h … no
Checking for libpq … no
Checking for sql.h … no
Checking for libsqlod … no
Checking for rfio_api.h … no
Checking for stager_api.h … no
Checking for libshift, shiftmd, or shift … no
Checking for gfal_api.h … no
Checking for libgfal … no
Checking for ApMon.h … no
Checking for libapmoncpp … no
Checking for libpacklib, packmd, or packlib … no
Checking for libkernlib, kernmd, or kernlib … no
Checking for libPythia6 … no
Checking for libVenus … no
Checking for dcap.h … no
Checking for libdcap … no
Checking for chirp_client.h … no
Checking for libchirp_client … no
Checking for gapiUI.h … no
Checking for libgapiUI … no
Checking for jpeglib.h … no
Checking for png.h … no
Checking for tiffio.h … no
Checking for gif_lib.h … no
Checking for libjpeg … no
Checking for libtiff … no
Checking for libz … /usr/lib
Checking for libpng … no
Checking whether to build included libAfterImage … yes
Checking for ldap.h … no
Checking for libldap … no
Checking for Python.h … no
Checking for libpython2.4, libpython2.3, libpython2.2, python24, python23, or Python … no
Checking for xml2-config … not found
Checking for libxml/tree.h … no
Checking for libxml2_a, or libxml2 … no
Checking whether to build xrootd … yes
Checking for for globusdir … no
Checking for GLOBUS_LOCATION … no
Checking for libssl … no
Checking for libcrypto … no
Checking for t_server.h … no
Checking for libsrp … no
Checking for libgmp … no
Checking for libmisc … no
Checking for pwauth.h … no
Checking for krb5.h … no
Checking for libk5crypto … no
Checking whether we’re using MIT Kerberos … no
Checking for libkrb5 … no
Checking for kinit … /usr/kerberos/bin/kinit
Checking for shadow passwords … yes
Checking whether to build libMathCore … no
Checking whether to build libMathMore … no
Checking whether to build libCintex … no
Checking whether to build libReflex … no
Checking whether to build libRooFit … no
Checking whether to build libMinuit2 … no
Checking whether to build libTable … no
Checking for Clarens support … no
Checking for PEAC support … no
Generating cint dictionaries.
Checking whether setresuid declared in /usr/include/unistd.h … yes
Creating include … done
Creating bin … done
Creating lib … done
Writing config/Makefile.config … done
Writing include/config.h … done
Writing bin/root-config … done
Writing etc/system.rootrc … done
Writing etc/system.rootauthrc … done
Writing etc/system.rootdaemonrc … done
Writing etc/root.mimes … done
Writing etc/rootd … done
Writing etc/rootd.xinetd … done
Writing etc/proofd … done
Writing etc/proofd.xinetd … done
Writing bin/memprobe … done
Writing build/misc/root-help.el … done
Writing macros/html.C … done
Writing config.status … done

Enabled support for asimage, astiff, builtin_afterimage, builtin_freetype, builtin_pcre, exceptions, opengl, shadowpw, shared, thread, xrootd.

To build ROOT type:

make

Most likely your C++ compiler (g++) is not installed properly.

Cheers,
Philippe.

Hi,
I’m confused. I have the gcc compiler already installed on my system. I should have g++, too?
Thanks!

This problem has nothing to do with the installation of ROOT.
As pointed out by Philippe, if you get a message like

gmake: g++: Command not found you should check your installtion of gcc and make sure that typing

g++ -v will not crash before attempting to install ROOT.

Rene