troubleshooting php-gtk2 linux instalation

From: Date: Mon, 11 Jun 2007 21:11:46 +0000
Subject: troubleshooting php-gtk2 linux instalation
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-7898@lists.php.net to get a copy of this message
Hello Gurus, I successfully installed php-gtk 2 on my pc using gnope. It rocks! I'm looking forward to putting it to good use. The challenge is getting it installed on my linux machine. I'm a bit of a command line idiot, but managed to follow the gtk.php.net tutorial without any errors (using an existing php installation). However when I type the last line (php -m | grep php-gtk), I get nothing returned. Any idea on what I might be doing wrong? I included the command line output of the installation process below. This is a separate attempt after the first one failed. I'm not sure if that would cause any issues with file overwrites or whatnot. Apache, php, cli, pear, etc, seem to be up to date and working as required in openSuse 10.2. Let me know if I can provide further information on these or other items. Also, how do I launch a php-gtk application in linux? From the server? Thank you for your help, Christopher Stevens ultrus@localhost:~> cd ./php-gtk-2.0.0alpha ultrus@localhost:~/php-gtk-2.0.0alpha> su Password: localhost:/home/ultrus/php-gtk-2.0.0alpha # ./buildconf localhost:/home/ultrus/php-gtk-2.0.0alpha # ./configure checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for a sed that does not truncate output... /usr/bin/sed checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc and cc understand -c and -o together... yes checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-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/include/php5/ext/date/lib checking for PHP extension directory... /usr/lib/php5/extensions checking for PHP installed headers prefix... /usr/include/php5 checking for re2c... no configure: WARNING: You will need re2c 0.9.11 or later if you want to regenerate PHP parsers. checking for gawk... gawk checking for PHP-GTK support... yes, shared checking for PHP executable in /usr/bin... found version 5.2.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.12.4) checking for pkg-config... (cached) /usr/bin/pkg-config checking for GTK+ - version >= 2.6.0... yes (version 2.10.6) checking for atk >= 1.9.0... yes checking ATK_CFLAGS... -I/opt/gnome/include/atk-1.0-I/opt/gnome/include/glib- 2.0 -I/opt/gnome/lib/glib-2.0/include checking ATK_LIBS... -L/opt/gnome/lib -latk-1.0 -lgobject-2.0 -lgmodule-2.0-ldl - lglib-2.0 checking for pango >= 1.8.0... yes checking PANGO_CFLAGS... -I/opt/gnome/include/pango-1.0-I/opt/gnome/include/glib- 2.0 -I/opt/gnome/lib/glib-2.0/include checking PANGO_LIBS... -L/opt/gnome/lib -lpango-1.0 -lgobject-2.0 - lgmodule-2.0 -ldl -lglib-2.0 checking for libglade support... yes checking for libglade-2.0 >= 2.4.0... yes checking LIBGLADE_CFLAGS... -I/usr/include/libxml2 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/opt/gnome/include/libglade-2.0 -I/opt/gnome/include/gtk-2.0-I/opt/gnome/lib/gtk- 2.0/include -I/opt/gnome/include/atk-1.0 -I/opt/gnome/include/pango-1.0-I/opt/gnome/include/glib- 2.0 -I/opt/gnome/lib/glib-2.0/include checking LIBGLADE_LIBS... -L/opt/gnome/lib -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0-lcairo - lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lfreetype -lz -lfontconfig -lexpat -lglitz -lm -lpng12 -lXrender -lX11 -lpthread -lXau -lXdmcp -lxcb-xlib checking for GtkMozEmbed support... no checking for scintilla support... no checking for sourceview support... no creating main/php_gtk_ext.c checking for ld used by gcc... /usr/i586-suse-linux/bin/ld checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes checking for /usr/i586-suse-linux/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking how to run the C++ preprocessor... g++ -E checking the maximum length of command line arguments... 32768 checking command to parse /usr/bin/nm -B output from gcc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if gcc static flag works... yes checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc supports -c -o file.o... yes checking whether the gcc linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no creating libtool appending configuration tag "CXX" to libtool checking for ld used by g++... /usr/i586-suse-linux/bin/ld checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes checking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC checking if g++ PIC flag -fPIC works... yes checking if g++ supports -c -o file.o... yes checking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes configure: creating ./config.status config.status: creating config.h config.status: config.h is unchanged localhost:/home/ultrus/php-gtk-2.0.0alpha # make /bin/sh /home/ultrus/php-gtk-2.0.0alpha/libtool --mode=compile gcc -Imain/ -I/home/ultrus/php-gtk-2.0.0alpha/main/ -DPHP_ATOM_INC -I/home/ultrus/php- gtk-2.0.0alpha/include -I/home/ultrus/php-gtk-2.0.0alpha/main -I/home/ultrus/php-gtk-2.0.0alpha -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/include/php5/ext/date/lib -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/opt/gnome/include/gtk-2.0 -I/opt/gnome/lib/gtk-2.0/include -I/opt/gnome/include/atk-1.0 -I/opt/gnome/include/pango-1.0-I/usr/include/libxml2 -I/opt/gnome/include/libglade- 2.0 -DHAVE_CONFIG_H -g -O2 -c main/php_gtk_ext.c -o main/php_gtk_ext.lo gcc -Imain/ -I/home/ultrus/php-gtk-2.0.0alpha/main/ -DPHP_ATOM_INC -I/home/ultrus/php-gtk-2.0.0alpha/include -I/home/ultrus/php-gtk-2.0.0alpha/main -I/home/ultrus/php-gtk-2.0.0alpha -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/include/php5/ext/date/lib -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/opt/gnome/include/gtk-2.0 -I/opt/gnome/lib/gtk-2.0/include -I/opt/gnome/include/atk-1.0 -I/opt/gnome/include/pango-1.0-I/usr/include/libxml2 -I/opt/gnome/include/libglade- 2.0 -DHAVE_CONFIG_H -g -O2 -c main/php_gtk_ext.c -fPIC -DPIC -o main/.libs/php_gtk_ext.o /bin/sh /home/ultrus/php-gtk-2.0.0alpha/libtool --mode=link gcc -DPHP_ATOM_INC -I/home/ultrus/php-gtk-2.0.0alpha/include -I/home/ultrus/php- gtk-2.0.0alpha/main -I/home/ultrus/php-gtk-2.0.0alpha -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/include/php5/ext/date/lib -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/opt/gnome/include/gtk-2.0 -I/opt/gnome/lib/gtk-2.0/include -I/opt/gnome/include/atk-1.0 -I/opt/gnome/include/pango-1.0-I/usr/include/libxml2 -I/opt/gnome/include/libglade- 2.0 -DHAVE_CONFIG_H -g -O2 -o php_gtk2.la -export-dynamic -avoid-version -prefer-pic -module -rpath /home/ultrus/php-gtk-2.0.0alpha/modules ./ext/gtk+/php_gtk+.lo ext/gtk+/gen_atk.lo ext/gtk+/gen_pango.lo ext/gtk+/gen_gdk.lo ext/gtk+/gen_gtk.lo ext/gtk+/php_gdk.lo ext/gtk+/php_gtk+_types.lo ./ext/libglade/php_libglade.lo ext/libglade/gen_libglade.lo main/php_gtk.lo main/phpg_support.lo main/phpg_gtype.lo main/phpg_exceptions.lo main/php_gtk_util.lo main/phpg_gvalue.lo main/phpg_closure.lo main/phpg_gboxed.lo main/phpg_gpointer.lo main/phpg_atom.lo main/phpg_gobject.lo main/php_gtk_ext.lo -Wl,-rpath,/opt/gnome/lib -L/opt/gnome/lib -Wl,-rpath,/opt/gnome/lib -L/opt/gnome/lib -Wl,-rpath,/opt/gnome/lib -L/opt/gnome/lib -Wl,-rpath,/opt/gnome/lib -L/opt/gnome/lib -Wl,-rpath,/opt/gnome/lib -L/opt/gnome/lib -lgobject-2.0 -lglib-2.0 - lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 - lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lfreetype -lz -lfontconfig -lexpat -lglitz -lm -lpng12 -lXrender -lX11 -lXau -lXdmcp -lxcb-xlib -latk-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lpango-1.0- lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0-lcairo - lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lfreetype -lz -lfontconfig -lexpat -lglitz -lm -lpng12 -lXrender -lX11 -lXau -lXdmcp -lxcb-xlib rm -fr .libs/php_gtk2.la .libs/php_gtk2.lai .libs/php_gtk2.so gcc -shared ./ext/gtk+/.libs/php_gtk+.o ext/gtk+/.libs/gen_atk.o ext/gtk+/.libs/gen_pango.o ext/gtk+/.libs/gen_gdk.o ext/gtk+/.libs/gen_gtk.o ext/gtk+/.libs/php_gdk.o ext/gtk+/.libs/php_gtk+_types.o ./ext/libglade/.libs/php_libglade.o ext/libglade/.libs/gen_libglade.o main/.libs/php_gtk.o main/.libs/phpg_support.o main/.libs/phpg_gtype.o main/.libs/phpg_exceptions.o main/.libs/php_gtk_util.o main/.libs/phpg_gvalue.o main/.libs/phpg_closure.o main/.libs/phpg_gboxed.o main/.libs/phpg_gpointer.o main/.libs/phpg_atom.o main/.libs/phpg_gobject.o main/.libs/php_gtk_ext.o -L/opt/gnome/lib /opt/gnome/lib/libglade-2.0.so-L/usr/lib /opt/gnome/lib/libgtk- x11-2.0.so /usr/lib/libxml2.so /opt/gnome/lib/libgdk-x11-2.0.so/opt/gnome/lib/libatk- 1.0.so /opt/gnome/lib/libgdk_pixbuf-2.0.so /opt/gnome/lib/libpangocairo- 1.0.so /opt/gnome/lib/libpango-1.0.so /usr/lib/libcairo.so /opt/gnome/lib/libgobject-2.0.so /opt/gnome/lib/libgmodule-2.0.so -ldl /opt/gnome/lib/libglib-2.0.so /usr/lib/libfreetype.so -lz /usr/lib/libfontconfig.so -lexpat /usr/lib/libglitz.so -lm /usr/lib/libpng12.so /usr/lib/libXrender.so /usr/lib/libX11.so /usr/lib/libXau.so /usr/lib/libXdmcp.so /usr/lib/libxcb-xlib.so -Wl,-rpath -Wl,/opt/gnome/lib -Wl,-rpath -Wl,/opt/gnome/lib -Wl,-rpath -Wl,/opt/gnome/lib -Wl,-rpath -Wl,/opt/gnome/lib -Wl,-rpath -Wl,/opt/gnome/lib -Wl,-soname -Wl,php_gtk2.so -o .libs/php_gtk2.so creating php_gtk2.la (cd .libs && rm -f php_gtk2.la && ln -s ../php_gtk2.la php_gtk2.la) /bin/sh /home/ultrus/php-gtk-2.0.0alpha/libtool --mode=install cp ./php_gtk2.la /home/ultrus/php-gtk-2.0.0alpha/modules cp ./.libs/php_gtk2.so /home/ultrus/php-gtk-2.0.0alpha/modules/php_gtk2.so cp ./.libs/php_gtk2.lai /home/ultrus/php-gtk-2.0.0alpha/modules/php_gtk2.la PATH="$PATH:/sbin" ldconfig -n /home/ultrus/php-gtk-2.0.0alpha/modules ---------------------------------------------------------------------- Libraries have been installed in: /home/ultrus/php-gtk-2.0.0alpha/modules If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
    during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
    during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- Build complete. (It is safe to ignore warnings about tempnam and tmpnam). localhost:/home/ultrus/php-gtk-2.0.0alpha # make install
Installing shared extensions:     /usr/lib/php5/extensions/
localhost:/home/ultrus/php-gtk-2.0.0alpha # ./buildconf --with-phpize=/usr/bin/phpize Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No: 220060519 rebuilding aclocal.m4 rebuilding configure rebuilding config.h.in localhost:/home/ultrus/php-gtk-2.0.0alpha # ./configure --with-php-config=/usr/bin/php-config checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for a sed that does not truncate output... /usr/bin/sed checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc and cc understand -c and -o together... yes checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-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/include/php5/ext/date/lib checking for PHP extension directory... /usr/lib/php5/extensions checking for PHP installed headers prefix... /usr/include/php5 checking for re2c... no configure: WARNING: You will need re2c 0.9.11 or later if you want to regenerate PHP parsers. checking for gawk... gawk checking for PHP-GTK support... yes, shared checking for PHP executable in /usr/bin... found version 5.2.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.12.4) checking for pkg-config... (cached) /usr/bin/pkg-config checking for GTK+ - version >= 2.6.0... yes (version 2.10.6) checking for atk >= 1.9.0... yes checking ATK_CFLAGS... -I/opt/gnome/include/atk-1.0-I/opt/gnome/include/glib- 2.0 -I/opt/gnome/lib/glib-2.0/include checking ATK_LIBS... -L/opt/gnome/lib -latk-1.0 -lgobject-2.0 -lgmodule-2.0-ldl - lglib-2.0 checking for pango >= 1.8.0... yes checking PANGO_CFLAGS... -I/opt/gnome/include/pango-1.0-I/opt/gnome/include/glib- 2.0 -I/opt/gnome/lib/glib-2.0/include checking PANGO_LIBS... -L/opt/gnome/lib -lpango-1.0 -lgobject-2.0 - lgmodule-2.0 -ldl -lglib-2.0 checking for libglade support... yes checking for libglade-2.0 >= 2.4.0... yes checking LIBGLADE_CFLAGS... -I/usr/include/libxml2 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/opt/gnome/include/libglade-2.0 -I/opt/gnome/include/gtk-2.0-I/opt/gnome/lib/gtk- 2.0/include -I/opt/gnome/include/atk-1.0 -I/opt/gnome/include/pango-1.0-I/opt/gnome/include/glib- 2.0 -I/opt/gnome/lib/glib-2.0/include checking LIBGLADE_LIBS... -L/opt/gnome/lib -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0-lcairo - lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lfreetype -lz -lfontconfig -lexpat -lglitz -lm -lpng12 -lXrender -lX11 -lpthread -lXau -lXdmcp -lxcb-xlib checking for GtkMozEmbed support... no checking for scintilla support... no checking for sourceview support... no creating main/php_gtk_ext.c checking for ld used by gcc... /usr/i586-suse-linux/bin/ld checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes checking for /usr/i586-suse-linux/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking how to run the C++ preprocessor... g++ -E checking the maximum length of command line arguments... 32768 checking command to parse /usr/bin/nm -B output from gcc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if gcc static flag works... yes checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc supports -c -o file.o... yes checking whether the gcc linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no creating libtool appending configuration tag "CXX" to libtool checking for ld used by g++... /usr/i586-suse-linux/bin/ld checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes checking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC checking if g++ PIC flag -fPIC works... yes checking if g++ supports -c -o file.o... yes checking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes configure: creating ./config.status config.status: creating config.h config.status: config.h is unchanged localhost:/home/ultrus/php-gtk-2.0.0alpha # php -m | grep php-gtk localhost:/home/ultrus/php-gtk-2.0.0alpha #

« previous php.gtk.general (#7898) next »