Добрый вечер.
Ситуация такая - есть VDS, на нём ubuntu-10-os-base-x86_64, необходимо установить php-gtk2.
Где я только не искал, на данном форуме нашёл топик этот
https://forum.ubuntu.ru/index.php?topic=55361.0 там у автора также проблема с установкой.
Что я делал -
wget http://carolinaboardrepair.com/php-gtk-install-ubuntu-10.10
chmod 777 php-gtk-install-ubuntu-10.10
./php-gtk-install-ubuntu-10.10
На выходе получаю -
Checked out revision 310428.
doing a work around
building config
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
rebuilding aclocal.m4
rebuilding configure
configure.in:150: warning: LTOPTIONS_VERSION is m4_require'd but not m4_defun'd
aclocal.m4:2941: LT_INIT is expanded from...
aclocal.m4:2976: AC_PROG_LIBTOOL is expanded from...
configure.in:150: the top level
configure.in:150: warning: LTSUGAR_VERSION is m4_require'd but not m4_defun'd
configure.in:150: warning: LTVERSION_VERSION is m4_require'd but not m4_defun'd
configure.in:150: warning: LTOBSOLETE_VERSION is m4_require'd but not m4_defun'd
configure:12129: error: possibly undefined macro: m4_ifval
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure:15157: error: possibly undefined macro: _LT_SET_OPTIONS
configure:15157: error: possibly undefined macro: LT_INIT
make[1]: *** [configure] Error 1
make: *** [all] Error 2
configuring
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/inclu de/php5/ext/date/lib
checking for PHP extension directory... /usr/lib/php5/20090626
checking for PHP installed headers prefix... /usr/include/php5
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for PHP-GTK support... yes, shared
checking for PHP executable... found version 5.3.2-1ubuntu4.7
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/php-gtk2.so' - /usr/lib/php5/20090626/php-gtk2.so: cannot open shared object f ile: No such file or directory in Unknown on line 0
checking for gawk... (cached) gawk
checking whether to include debugging symbols... no
checking for pkg-config... /usr/bin/pkg-config
checking for GLIB - version >= 2.6.0... yes (version 2.24.1)
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GTK+ - version >= 2.6.0... yes (version 2.20.1)
checking for atk >= 1.9.0... yes
checking ATK_CFLAGS... -pthread -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
checking ATK_LIBS... -pthread -latk-1.0 -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0
checking for pango >= 1.8.0... yes
checking PANGO_CFLAGS... -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
checking PANGO_LIBS... -pthread -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0
checking for cairo >= 1.4.0... yes
checking CAIRO_CFLAGS... -D_REENTRANT -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12
checking CAIRO_LIBS... -lcairo
checking for cairo php extension... yes
checking for gtkextra support... no
checking for html support... no
checking for libglade support... yes
checking for libglade-2.0 >= 2.4.0... yes
checking LIBGLADE_CFLAGS... -pthread -D_REENTRANT -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/in clude/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixm an-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12
checking LIBGLADE_LIBS... -pthread -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lcai ro -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0
checking for libsexy support... no
checking for GtkMozEmbed support... no
checking for scintilla support... no
checking for sourceview support... no
checking for spell support... no
creating main/php_gtk_ext.c
./configure: line 12049: LTOPTIONS_VERSION: command not found
./configure: line 12050: LTSUGAR_VERSION: command not found
./configure: line 12051: LTVERSION_VERSION: command not found
./configure: line 12052: LTOBSOLETE_VERSION: command not found
checking for a sed that does not truncate output... (cached) /bin/sed
./configure: line 12127: syntax error near unexpected token `lt_decl_varnames,'
./configure: line 12127: `lt_if_append_uniq(lt_decl_varnames, SED, , ,'
making
make: *** No targets specified and no makefile found. Stop.
installing
make: *** No rule to make target `install'. Stop.
adding extension to php.ini
Testing php for extention
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/php-gtk2.so' - /usr/lib/php5/20090626/php-gtk2.so: cannot open shared object f ile: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/php_gtk2.so' - /usr/lib/php5/20090626/php_gtk2.so: cannot open shared object f ile: No such file or directory in Unknown on line 0
If you see the text 'php-gtk' above the extension should be loaded and you are now ready to use php-gtk2
Скажу честно я с ubuntu не дружу, поэтому не совсем понимаю что делать, но даже мне понятно, что не находит файла "usr/lib/php5/20090626/php-gtk2.so" и действительно его там нет, в процессе установки он должен появится, но не появился.
Пробовал и так установить как написано здесь
http://ubuntuforums.org/archive/index.php/t-333616.html нефига. Помогите люди добрые кто может!!! или в топике отпишитесь или в аську мне-378-769-009.