Archived
This forum has been archived. Please start a new discussion on GitHub.
Installation problem on CentOS 5 with Plesk 8.6.0
in Help Center
I have Installed the Ice-PHP with yum and all files are on the right place.
I've add the following lines in ./usr/local/psa/admin/conf/php.ini:
The Murmur.ice file have the following rights:
Here is the phpinfo()
I think i must compile the library from source, but i have no idea about it
I have download Ice-3.3.1.tar.gz and make
and it throws:
I don't know what's wrong with it... I hope anybody can help me.
I've add the following lines in ./usr/local/psa/admin/conf/php.ini:
extension=IcePHP.so ice.slice=./usr/lib/Murmur.ice
The Murmur.ice file have the following rights:
Path: -rw-r--r-- 1 root root 29917 9. Jun 03:17 Murmur.ice
Here is the phpinfo()
[root@sl35124 /]# 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 [PHP Modules] bcmath bz2 calendar ctype curl date dbase dom exif filter ftp gd gettext gmp hash iconv imap json libxml mbstring mcrypt mhash mysql mysqli openssl pcntl pcre PDO pdo_mysql pdo_sqlite posix readline Reflection session shmop SimpleXML soap sockets SPL standard sysvmsg sysvsem sysvshm tokenizer wddx xml xmlreader xmlwriter xsl zip zlib [Zend Modules]
I think i must compile the library from source, but i have no idea about it
I have download Ice-3.3.1.tar.gz and make
[root@sl35124 ~]# tar zxvf Ice-3.3.1.tar.gz [root@sl35124 ~]# cd Ice-3.3.1 [root@sl35124 ~]# export ICE_HOME=/usr [root@sl35124 ~]# make
and it throws:
[root@sl35124 Ice-3.3.1]# make making all in cpp make[1]: Entering directory `/root/Ice-3.3.1/cpp' making all in config make[2]: Entering directory `/root/Ice-3.3.1/cpp/config' echo "" make[2]: Leaving directory `/root/Ice-3.3.1/cpp/config' making all in src make[2]: Entering directory `/root/Ice-3.3.1/cpp/src' making all in IceUtil make[3]: 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[3]: c++: Kommando nicht gefunden make[3]: *** [ArgVector.o] Fehler 127 make[3]: Leaving directory `/root/Ice-3.3.1/cpp/src/IceUtil' make[2]: *** [all] Fehler 1 make[2]: Leaving directory `/root/Ice-3.3.1/cpp/src' make[1]: *** [all] Fehler 1 make[1]: Leaving directory `/root/Ice-3.3.1/cpp' make: *** [all] Fehler 1 [root@sl35124 Ice-3.3.1]#
I don't know what's wrong with it... I hope anybody can help me.
0
Comments
-
I will let one of our PHP experts comment on the PHP specific issues, but for the Ice compile failure it appears that you do not have the GCC compiler installed on your machine or at least not present in your path.0
-
mmh, but...
[root@sl35124 ~]# yum install gcc Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * epel: www.mirrorservice.org * extras: ftp.halifax.rwth-aachen.de * updates: ftp.plusline.de * base: distrib-coffee.ipsl.jussieu.fr * addons: ftp.halifax.rwth-aachen.de * atomic: www.atomicorp.com Setting up Install Process Parsing package install arguments Package gcc-4.1.2-44.el5.i386 already installed and latest version Nothing to do [root@sl35124 ~]#
...or at least not present in your path.[root@sl35124 Ice-3.3.1]# ls -la insgesamt 168 drwxrwxr-x 13 psaftp psaftp 4096 20. Mär 18:52 . drwxr-x--- 9 root root 4096 9. Jun 02:28 .. -rwxr-xr-x 1 psaftp psaftp 940 20. Mär 18:52 allTests.py drwxr-xr-x 3 psaftp psaftp 4096 20. Mär 18:52 certs -rw-r--r-- 1 psaftp psaftp 39238 20. Mär 18:52 CHANGES drwxr-xr-x 2 psaftp psaftp 4096 20. Mär 18:52 config drwxr-xr-x 10 psaftp psaftp 4096 20. Mär 18:52 cpp drwxr-xr-x 8 psaftp psaftp 4096 20. Mär 18:52 cs -rw-r--r-- 1 psaftp psaftp 1893 20. Mär 18:52 ICE_LICENSE drwxr-xr-x 8 psaftp psaftp 4096 20. Mär 18:52 java -rw-r--r-- 1 psaftp psaftp 18014 20. Mär 18:52 LICENSE -rw-r--r-- 1 psaftp psaftp 1500 20. Mär 18:52 Makefile -rw-r--r-- 1 psaftp psaftp 2411 20. Mär 18:52 Makefile.mak drwxr-xr-x 8 psaftp psaftp 4096 20. Mär 18:52 php drwxr-xr-x 8 psaftp psaftp 4096 20. Mär 18:52 py drwxr-xr-x 9 psaftp psaftp 4096 20. Mär 18:52 rb -rw-r--r-- 1 psaftp psaftp 236 20. Mär 18:52 README -rw-r--r-- 1 psaftp psaftp 36035 20. Mär 18:52 RELEASE_NOTES drwxr-xr-x 2 psaftp psaftp 4096 20. Mär 18:52 scripts drwxr-xr-x 9 psaftp psaftp 4096 20. Mär 18:52 slice drwxr-xr-x 4 psaftp psaftp 4096 20. Mär 18:52 vb
I don't know what you mean
I'm not a Linux guru.
Can you say me, what you will see and i will show it for you.
I hope you can help me.0 -
Hi
you need to install the c++ compiler, tryyum list gcc-c++
this command will show you if the c++ compiler is installed in your system.0 -
Thats:
[root@sl35124 ~]# yum list gcc-c++ Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * epel: www.mirrorservice.org * extras: ftp.halifax.rwth-aachen.de * updates: ftp.plusline.de * base: distrib-coffee.ipsl.jussieu.fr * addons: ftp.halifax.rwth-aachen.de * atomic: www.atomicorp.com Available Packages gcc-c++.i386 4.1.2-44.el5 base [root@sl35124 ~]#
EDIT: i have installed the gcc-c++ package and compile it now...
What must i make after the compile?
EDIT#2:... c++ -c -I.. -I../../include -DICE_API_EXPORTS -ftemplate-depth-128 -Wall -D_REENTRANT -I/usr/include/nptl -fPIC -g ConnectRequestHandler.cpp c++ -c -I.. -I../../include -DICE_API_EXPORTS -ftemplate-depth-128 -Wall -D_REENTRANT -I/usr/include/nptl -fPIC -g ConnectionFactory.cpp c++ -c -I.. -I../../include -DICE_API_EXPORTS -ftemplate-depth-128 -Wall -D_REENTRANT -I/usr/include/nptl -fPIC -g ConnectionI.cpp ConnectionI.cpp:29:19: Fehler: bzlib.h: Datei oder Verzeichnis nicht gefunden ConnectionI.cpp: In function »std::string getBZ2Error(int)«: ConnectionI.cpp:2046: Fehler: »BZ_RUN_OK« wurde in diesem Gültigkeitsbereich nicht definiert ConnectionI.cpp:2050: Fehler: »BZ_FLUSH_OK« wurde in diesem Gültigkeitsbereich nicht definiert ConnectionI.cpp:2054: Fehler: »BZ_FINISH_OK« wurde in diesem Gültigkeitsbereich nicht definiert ConnectionI.cpp:2058: Fehler: »BZ_STREAM_END« wurde in diesem Gültigkeitsbereich nicht definiert ConnectionI.cpp:2062: Fehler: »BZ_CONFIG_ERROR« wurde in diesem Gültigkeitsbereich nicht definiert ConnectionI.cpp:2066: Fehler: »BZ_SEQUENCE_ERROR« wurde in diesem Gültigkeitsbereich nicht definiert ConnectionI.cpp:2070: Fehler: »BZ_PARAM_ERROR« wurde in diesem Gültigkeitsbereich nicht definiert ConnectionI.cpp:2074: Fehler: »BZ_MEM_ERROR« wurde in diesem Gültigkeitsbereich nicht definiert ConnectionI.cpp:2078: Fehler: »BZ_DATA_ERROR« wurde in diesem Gültigkeitsbereich nicht definiert ConnectionI.cpp:2082: Fehler: »BZ_DATA_ERROR_MAGIC« wurde in diesem Gültigkeitsbereich nicht definiert ConnectionI.cpp:2086: Fehler: »BZ_IO_ERROR« wurde in diesem Gültigkeitsbereich nicht definiert ConnectionI.cpp:2090: Fehler: »BZ_UNEXPECTED_EOF« wurde in diesem Gültigkeitsbereich nicht definiert ConnectionI.cpp:2094: Fehler: »BZ_OUTBUFF_FULL« wurde in diesem Gültigkeitsbereich nicht definiert ConnectionI.cpp: In member function »void Ice::ConnectionI::doCompress(IceInternal::BasicStream&, IceInternal::BasicStream&)«: ConnectionI.cpp:2119: Fehler: »BZ2_bzBuffToBuffCompress« wurde in diesem Gültigkeitsbereich nicht definiert ConnectionI.cpp:2120: Fehler: »BZ_OK« wurde in diesem Gültigkeitsbereich nicht definiert ConnectionI.cpp: In member function »void Ice::ConnectionI::doUncompress(IceInternal::BasicStream&, IceInternal::BasicStream&)«: ConnectionI.cpp:2177: Fehler: »BZ2_bzBuffToBuffDecompress« wurde in diesem Gültigkeitsbereich nicht definiert ConnectionI.cpp:2178: Fehler: »BZ_OK« wurde in diesem Gültigkeitsbereich nicht definiert make[3]: *** [ConnectionI.o] Fehler 1 make[3]: Leaving directory `/root/Ice-3.3.1/cpp/src/Ice' make[2]: *** [all] Fehler 1 make[2]: Leaving directory `/root/Ice-3.3.1/cpp/src' make[1]: *** [all] Fehler 1 make[1]: Leaving directory `/root/Ice-3.3.1/cpp' make: *** [all] Fehler 1 [root@sl35124 Ice-3.3.1]#
What's wrong?0 -
The problem is that you don't have the correct third party dependencies installed (in this case bzip2). Please follow the directions in the INSTALL.LINUX documentation that accompanies the distribution.
However, why are you trying to build Ice itself? The RHEL 5 RPMs are compatible with CentOS 5. You can use yum to install following the directions on our download page.
http://www.zeroc.com/download.html0 -
i have installed it successfully with the repository (http://www.zeroc.com/download/Ice/3.3/rhel5/zeroc-ice.repo)
The Result:[root@sl35124 /]# ./etc/init.d/httpd restart httpd beenden: [ OK ] httpd starten: [ OK ] [root@sl35124 /]# 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 [PHP Modules] bcmath bz2 calendar ctype curl date dbase dom exif filter ftp gd gettext gmp hash iconv imap ionCube Loader json libxml mbstring mcrypt mhash mysql mysqli openssl pcntl pcre PDO pdo_mysql pdo_sqlite posix readline Reflection session shmop SimpleXML soap sockets SPL standard sysvmsg sysvsem sysvshm tokenizer wddx xml xmlreader xmlwriter xsl zip zlib [Zend Modules] the ionCube PHP Loader [root@sl35124 /]#
And with new compiled and replaced IcePHP.so:[root@sl35124 /]# ./etc/init.d/httpd restart httpd beenden: [ OK ] httpd starten: [ OK ] [root@sl35124 /]# php -m [PHP Modules] bcmath bz2 calendar ctype curl date dbase dom exif filter ftp gd gettext gmp hash ice iconv imap ionCube Loader json libxml mbstring mcrypt mhash mysql mysqli openssl pcntl pcre PDO pdo_mysql pdo_sqlite posix readline Reflection session shmop SimpleXML soap sockets SPL standard sysvmsg sysvsem sysvshm tokenizer wddx xml xmlreader xmlwriter xsl zip zlib [Zend Modules] the ionCube PHP Loader [root@sl35124 /]#
whatever... now it work's
Thanks guys0