If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
In the /etc/php5/cli/conf.d folder (or something similar) create a gtk2.ini file and just do:
or just append that line to your php.ini file.
but now I get:
PHP Warning: PHP Startup: Unable to load dynamic library './php_gtk2.so' - ./php_gtk2.so: cannot open shared object file: No such file or directory in Unknown on line 0
Fatal error: Class 'GtkWindow' not found in /usr/share/phoronix-test-suite/pts-core/objects/gtk/pts_gtk_window.php on line 23
So PHP doesn't seem sure it's extension are where `php-config --extension-dir` says it is? Apparently not, by modifying my /etc/php.ini to have extension_dir set to the value returned by $(php-config --extension-dir) then `phoronix-test-suite gui` now loads.
Looking at my /etc/php.ini (default install from PHP with the Phoronix upload requirements changed) I see:
; Directory in which the loadable extensions (modules) reside.
extension_dir = "./"
but this then breaks PHP (e.g. trying to recompile php-gtk gives this):
checking for gawk... gawk
checking for PHP-GTK support... yes, shared
checking for PHP executable in /usr/bin... found version 5.2.9
configure: error: PHP CLI version is required, found
! Problem Detected !
If I set my extension_dir back to "./" my PHP apps can now find PHP CLI when compiling, but `phoronix-test-suite gui` can no longer find './php_gtk2.so'.