 |
| View previous topic :: View next topic |
| Author |
Message |
cweiske
Joined: 08 Dec 2005 Posts: 454 Location: Leipzig/Germany
|
Posted: Sat Sep 09, 2006 12:02 am Post subject: |
|
|
You also need libglade headers installed when compiling php-gtk2 with glade.
If your gcc is broken, try to re-installit via fink, perhaps it helps. |
|
| Back to top |
|
 |
beidlerj
Joined: 10 Feb 2006 Posts: 55 Location: Oregon, USA
|
Posted: Tue Sep 12, 2006 1:38 am Post subject: |
|
|
Hi again -
I'm sorry if all these posts bother you, but I find Mac command-line software installation to be very complicated (or most Unix stuff, for that matter) and I know that you're very knowledgeable and have been of tremendous help in the past.
So, I've now fixed gcc, and have tried to run the ./configure script again, minus the "disable-libglade" option, just to see what would happen. Now I'm getting this:
| Code: |
dev:~/php-gtk admin$ ./configure --with-php-config=/usr/local/bin/php-config
checking for egrep... grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for gcc... gcc
checking for C compiler default output... 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 ANSI C... 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,... no
checking build system type... powerpc-apple-darwin7.9.0
checking host system type... powerpc-apple-darwin7.9.0
checking target system type... powerpc-apple-darwin7.9.0
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20060613
checking for PHP installed headers prefix... /usr/local/include/php
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... no
checking for nawk... no
checking for awk... awk
checking if awk is broken... no
checking for PHP-GTK support... yes, shared
checking for PHP executable in /usr/local/bin... found version 5.2.0RC4-dev
PHP Fatal error: php-gtk: Could not open display in Unknown on line 0
configure: error: PHP CLI version is required, found
dev:~/php-gtk admin$
|
The last bit sounds like it's complaining about X again, but I do have X11 installed and functioning. When I tried running the ./configure command from the X11 terminal window, I got a slightly different result, but still not good:
| Code: |
dev:~/php-gtk admin$ ./configure --with-php-config=/usr/local/bin/php-config
checking for egrep... grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for gcc... gcc
checking for C compiler default output... 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 ANSI C... 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,... no
checking build system type... powerpc-apple-darwin7.9.0
checking host system type... powerpc-apple-darwin7.9.0
checking target system type... powerpc-apple-darwin7.9.0
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20060613
checking for PHP installed headers prefix... /usr/local/include/php
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... no
checking for nawk... no
checking for awk... awk
checking if awk is broken... no
checking for PHP-GTK support... yes, shared
checking for PHP executable in /usr/local/bin... found version 5.2.0RC4-dev
checking for gawk... (cached) awk
checking whether to include debugging symbols... no
checking for pkg-config... no
checking for GLIB - version >= 2.6.0... no
*** A new enough version of pkg-config was not found.
*** See http://www.freedesktop.org/software/pkgconfig/
configure: error: PHP-GTK 2.x requires GLib 2.6.0 or higher
dev:~/php-gtk admin$
|
However, I had to have pkg-config and GLib to get as far as I have already! I got them via MacPorts, and they show up as active:
| Code: |
dev:~/php-gtk admin$ port installed | grep pkg
pkgconfig @0.21_0 (active)
dev:~/php-gtk admin$ port installed | grep glib
glib1 @1.2.10_5 (active)
glib2 @2.12.2_0 (active)
dev:~/php-gtk admin$
|
I'm unsure as to what the problem is now... as always.  |
|
| Back to top |
|
 |
cohort
Joined: 07 Feb 2006 Posts: 47
|
Posted: Tue Sep 12, 2006 2:04 am Post subject: |
|
|
| beidlerj wrote: | | ...I find Mac command-line software installation to be very complicated (or most Unix stuff, for that matter)... |
As they say: UNIX is user friendly, it's just picky about who it calls "friend"...
You might want to pick up a primer .. A few friends recommend "UNIX for the Impatient".
Good luck to you. |
|
| Back to top |
|
 |
cweiske
Joined: 08 Dec 2005 Posts: 454 Location: Leipzig/Germany
|
Posted: Tue Sep 12, 2006 8:33 am Post subject: |
|
|
You get the "could not open X display" from a "normal" mac console because you don't have the DISPLAY variable set I guess. Since this is automatically done in the X terminal, it works there. I am sure there is some setting-up-X-on-mac-and-getting-it-work tutorial out there.
The thing with pkg-config.. Maybe you can pass the path to it directly to the configure script? See ./configure --help if there is a parameter.
Btw, you get the path yourself by using "which pkg-config" |
|
| Back to top |
|
 |
beidlerj
Joined: 10 Feb 2006 Posts: 55 Location: Oregon, USA
|
Posted: Wed Sep 13, 2006 7:37 pm Post subject: |
|
|
YES!!! I got it to work! WOO HOO!!!
I got rid of those weird errors and was able to reconfigure php-gtk by going into the php.ini file and commenting out the "extension=php_gtk2.so" line. Apparently, that was causing the configure program some confusion, because the module was already installed into PHP5, and I couldn't reconfigure (to add libglade support) while that was enabled. After I commented that part out, I was able to reconfigure, compile and install php-gtk. Now, when I run my code in an X11 terminal window, my application shows up on screen! Takes a long time to load (dunno why), but it works! Woo hoo!!!
Thanks for all your help and patience! I wouldn't have gotten the thing working without your pointers!  |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
 |