Install Ice 3.4 on CentOS 5

From Mumble Wiki
Revision as of 19:47, 24 January 2010 by Ogre x (talk | contribs) (Created page with 'Ice 3.4 is now in Beta with quite a bit of changes in the PHP api. Here is a guide howto install Ice with PHP bindings on a CentOS 5 machine and getting the weblist.php example d…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Ice 3.4 is now in Beta with quite a bit of changes in the PHP api. Here is a guide howto install Ice with PHP bindings on a CentOS 5 machine and getting the weblist.php example distributed with murmur to work.

cd /etc/yum.repos.d/
wget http://www.zeroc.com/download/Ice/3.4/rhel5/zeroc-ice.repo

Edit the zeroc-ice.repo to look like this:

[zeroc-ice]
name=Ice 3.4b for RHEL $releasever - $basearch
baseurl=http://www.zeroc.com/download/Ice/3.4/rhel5/$basearch
enabled=0
gpgcheck=1
gpgkey=http://www.zeroc.com/download/RPM-GPG-KEY-zeroc-beta

This way the repo is not enabled by default. My flavor of CentOS didn't have $releasever set so I changed the baseurl to a static version 5.

yum --enable zeroc-ice install ice-php ice-php-devel
/etc/init.d/httpd graceful

Now go the murmur folder and locate Murmur.ice

slice2php Murmur.ice

Edit weblist.php:

remove

Ice_loadProfile();

replace with

require 'Ice.php';
require 'Murmur.php';
$ICE = Ice_initialize();

Move weblist.php and Murmur.php to your web space and access weblist.php