I have already done the following:
Installed PHP 5.3.3 Installed GTK 2.0.1 Installed the latest version of php-gtk from svn All dependencies are resolved and installed.
I edited php.ini to load the GTk library into the PHP lib extension=php_gtk2.so as extension=php_gtk2.so and saved it.
If I check with php -m , I find one error, for example Unable to Load Dynamic Library ../../php_gtk2.so I assume that this may be because php_gtk2.so is a static library.
Then how can I download it? Any idea where I made a mistake?
I work on CentOS 6.0 Server , PHP 5.3.3 , GTK 2.0.1
edit:
The exact problem is given below:
[ root@srv-vg phpapps]
As hakre said, I tried downloading the cairo extension by adding the cairo.ini file. But now it also shows some error similar to this
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/cairo.so' - /usr/lib/php/modules/cairo.so: undefined symbol: cairo_ce_cairosubsurface in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/php_gtk2.so' - /usr/lib/php/modules/php_gtk2.so: undefined symbol: php_cairo_get_context_ce in Unknown on line 0 [PHP Modules]
edit2:
When I installed cairo , an error occurred in cairo_surface.c , and I cleaned it up like someone on the forums that said to do. I could install cairo successfully. But now, how about this !!
source share