<p>I have an application that works pretty well in Ubuntu, Windows and the Xandros that come with the Asus EeePC.</p>

<p>Now we are moving to the <a href="http://en.wikipedia.org/wiki/Aspire_One" rel="nofollow noreferrer">Acer Aspire One</a> but I'm having a lot of trouble making php-gtk to compile under the Fedora-like (Linpus Linux Lite) Linux that come with it.</p>

[{'answer_id': 87995, 'author': 'X-Istence', 'author_id': 13986, 'author_profile': 'https://Stackoverflow.com/users/13986', 'pm_score': 0, 'selected': False, 'text': '<p>If you could give us more to go on than just trouble making it compile; we might be better able to help you with your issues.</p>\n'}, {'answer_id': 99021, 'author': 'levhita', 'author_id': 7946, 'author_profile': 'https://Stackoverflow.com/users/7946', 'pm_score': 2, 'selected': True, 'text': '<p>Hi Guys well I finally got this thing to work the basic workflow was this:</p>\n\n<pre><code>#!/bin/bash\nsudo yum install yum-utils\n#We don\'t want to update the main gtk2 by mistake so we download them\n#manually and install with no-deps[1](and forced because gtk version\n#version of AA1 and the gtk2-devel aren\'t compatible).\nsudo yumdownloader --disablerepo=updates gtk2-devel glib2-devel\nsudo rpm --force --nodeps -i gtk2*rpm glib2*rpm\n\n#We install the rest of the libraries needed.\nsudo yum --disablerepo=updates install atk-devel pango-devel libglade2-devel\nsudo yum install php-cli php-devel make gcc\n\n#We Download and compile php-gtk\nwget http://gtk.php.net/do_download.php?download_file=php-gtk-2.0.1.tar.gz\ntar -xvzf php-gtk-2.0.1.tar.gz\ncd php-gtk-2.0.1\n./buildconf\n./configure\nmake\nsudo make install\n</code></pre>\n\n<p>If you want to add more libraries like gtk-extra please type <code>./configure -help</code> before making it to see the different options available.</p>\n\n<p>After installing you\'ll need to add <code>php_gtk2.so</code> to the <em>Dynamic Extensions</em> of <code>/etc/php.ini</code></p>\n\n<pre><code>extension=php_gtk2.so\n</code></pre>\n\n<p>Sources:</p>\n\n<p>[1]: <a href="http://macles.blogspot.com/2008/08/dependency-problems-on-acer-aspire-one.html" rel="nofollow noreferrer">Dependency problems on Acer Aspire One Linux</a></p>\n'}, {'answer_id': 4031145, 'author': 'Valent Turkovic', 'author_id': 488518, 'author_profile': 'https://Stackoverflow.com/users/488518', 'pm_score': 2, 'selected': False, 'text': '<p>I managed to get all components needed for Phoronix test suite installed on Fedora but still have one issue.</p>\n\n<pre><code># phoronix-test-suite gui\nshell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory\npwd: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory\npwd: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory\n/usr/bin/phoronix-test-suite: line 28: [: /usr/share/phoronix-test-suite: unary operator expected\n</code></pre>\n\n<p>You need two packages that aren\'t in Fedora, php-gtk, but php-gtk also has it\'s dependency - pecl-cairo</p>\n\n<p>php-gtk needs to be downloaded from svn because tar.gz version is really old and doesn\'t work with php 5.3</p>\n\n<p>Here is how I got all components built.</p>\n\n<pre><code>su -c "yum install php-cli php-devel make gcc gtk2-devel svn"\n\nsvn co http://svn.php.net/repository/pecl/cairo/trunk pecl-cairo\ncd pecl-cairo/\nphpize\n./configure\nmake\nsu -c "make install"\n\ncd ..\n\nsvn co http://svn.php.net/repository/gtk/php-gtk/trunk php-gtk\ncd php-gtk\n./buildconf\n./configure\nmake\nsu -c "make install"\n\ncd ..\n\nwget http://www.phoronix-test-suite.com/download.php?file=phoronix-test-suite-2.8.1\ntar xvzf phoronix-test-suite-2.8.1.tar.gz\ncd phoronix-test-suite\nsu -c "./install-sh"\n</code></pre>\n\n<p>So please take where I left to get Phoronix test suite running on Fedora.</p>\n'}]
['https://Stackoverflow.com/questions/78392', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/7946/']