/kernel_reloaded/

Author:

Other contacts

Novi članci

Flickr Goodness

Categories

October 27, 2010 @ 11:19

Phoronix test suite with gui on Fedora just a step away…

 
Phoronix test suite is great benchmarking suite, unfortunately packages in Fedora are stuck at version 1.8.
 
So how hard is it to download and use Phoronix test suite from their site? Actually really easy of you don’t need gui, because running gui has some depencies that aren’t in Fedora.
 
To use cli version just download and unpack the archive and you are good to go.
 
You need two packages that aren’t in Fedora, php-gtk, but php-gtk also has it’s dependency – pecl-cairo. There is a nice howto for installing php-gtk from tar.gz package but it doesn’t work for Fedora.
 
php-gtk needs to be downloaded from svn because tar.gz version is really old and doesn’t work with php 5.3
 

Here is how I got all components built.
 
First let’s install dependencies:
su -c "yum install php-cli php-devel make gcc gtk2-devel svn"
 

WordPress on my blog prevents me from using change directory with absolute paths so I need to create an variable.

mkdir /tmp/fts
directory=/tmp/fts

 

First you need to compile dependency needed by php-gtk:

cd $directory
svn co http://svn.php.net/repository/pecl/cairo/trunk pecl-cairo
cd pecl-cairo/
phpize
./configure
make
su -
cd $directory/pecl-cairo/
make install
exit

 

Now you can download php-gtk from svn and compile it:

cd $directory
svn co http://svn.php.net/repository/gtk/php-gtk/trunk php-gtk
cd php-gtk
./buildconf
./configure
make
su -
cd $directory/php-gtk/
make install
exit

 

Everything is setup for Phoronix test suite:

cd $directory
wget http://www.phoronix-test-suite.com/download.php?file=phoronix-test-suite-2.8.1
tar xvzf phoronix-test-suite-2.8.1.tar.gz
su -
cd $directory/phoronix-test-suite
./install-sh
exit

 

When starting Phoronix test suite as regular user this error is shown:
$ phoronix-test-suite gui
The PHP GTK module must be loaded for the GUI.
This module can be found @ http://gtk.php.net/

 

When starting Phoronix test suite as root this error appears:
$ phoronix-test-suite gui
PHP Fatal error: Class 'GtkWindow' not found in /usr/share/phoronix-test-suite/pts-core/objects/gtk/pts_gtk_window.php on line 24
 

It seams that there is still some issue, but this is just step away from working. So please take where I left to get Phoronix test suite running on Fedora.

 

Filed under english, fedora, linux

  • Ali

    hi I have a problem when I type this
    su -c “yum install php-cli php-devel make gcc gtk2-devel svn”
    It ask for password:
    ???

  • John

    @Ali
    It wants your root password.

  • jello

    You got to that point I see, but you didn’t finally managed to install it? I followed all your steps, and I get the same errors as you do (on Fedora 14).

    Archives

    Flickr photostream

    User not found

    Meta meta :)