Archived

This forum has been archived. Please start a new discussion on GitHub.

Compiling Ice 3.3.1

Hello. I am working with Mumble and would like develop some tools with it but I have no experience with Ice whatsoever. I am running CentOS 5.5 with PHP 5.2.16 so I'm trying to compile from source Ice 3.3.1 since the RPM on the site does not work for me. Have mcpp-devel-2.7.2-2, db48-devel-4.8.30 installed.
[root@localhost ~]# php -m
PHP Warning:  PHP Startup: ice: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
 in Unknown on line 0

Yum installs but the above error preventing me from continuing since I'm running php 5.2.16.

So I'm trying to compile and get the following
[root@localhost Ice-3.3.1]# cd cpp
[root@localhost cpp]# make
making all in config
make[1]: Entering directory `/root/Ice-3.3.1/cpp/config'
echo ""

make[1]: Leaving directory `/root/Ice-3.3.1/cpp/config'
making all in src
make[1]: Entering directory `/root/Ice-3.3.1/cpp/src'
making all in IceUtil
make[2]: Entering directory `/root/Ice-3.3.1/cpp/src/IceUtil'
c++ -c -I../../include -DICE_UTIL_API_EXPORTS -I..  -ftemplate-depth-128 -Wall -D_REENTRANT -I/usr/include/nptl -fPIC -g  ArgVector.cpp
make[2]: c++: Command not found
make[2]: *** [ArgVector.o] Error 127
make[2]: Leaving directory `/root/Ice-3.3.1/cpp/src/IceUtil'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/root/Ice-3.3.1/cpp/src'
make: *** [all] Error 1

Any suggestion as to what the error could be? Have gcc 4.4.0 installed on the server as well. The same error shows up trying to compile Ice 3.4.1 from source. Sorry and thank you for any assistance.

I've taken a look inside INSTALL.LINUX and I think everything is set appropiately in make.rules.linux

Comments

  • mes
    mes California
    Hi David,

    Welcome to the forum.

    It looks like you need to install the gcc-c++ RPM.

    Regards,
    Mark
  • That did the trick. Thank you very much.