gnope php gtk gui gnope.org  

PHP-Gtk2 Instalation in Ubuntu 6.06

 
Post new topic   Reply to topic    gnope.org Forum Index -> Installation problems
View previous topic :: View next topic  
Author Message
js_junior



Joined: 23 May 2006
Posts: 18
Location: Macaé, RJ, Brasil

PostPosted: Tue Aug 01, 2006 4:42 pm    Post subject: PHP-Gtk2 Instalation in Ubuntu 6.06 Reply with quote

Hi all.

I try to install PHP-GTk2 in SO Linux dist Ubuntu 6.06. It's work but only with simple scritps. When I try to execute any scripts that have a GladeXML or any other class (like GtkText, etc) is returned a error like "can not found GtkXXX class ..." (where the XXX is a class - GtkText, etc).
I follow the installation script in gtk.php.net. So, somebody can help me?

Thanks a lot for any help.
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Tue Aug 01, 2006 6:23 pm    Post subject: Reply with quote

Glade is enabled by default in php-gtk2. It may be that, when you compiled it, the glade headers were missing. Please do a configure again and check for output regarding glade.
Back to top
js_junior



Joined: 23 May 2006
Posts: 18
Location: Macaé, RJ, Brasil

PostPosted: Tue Aug 01, 2006 7:00 pm    Post subject: Reply with quote

Cweiske,

Thanks for answer.
I do a configure again (3 times in total) but same problem occurs (Fatal error: Class 'GladeXML' not found). What I do:

1) Install the PHP 5.1.4 in another directory (I have a PHP installation for web in same machine);
2) Install the PHP-Gtk2 in diretory php-gtk2 in /usr/local/php-gtk2

After the PHP 5 installation, in help script, have a instruction as follow:

# echo extension=php_gtk2.so >> /opt/php-5.1.4/lib/php.ini
# /opt/php-5.1.4/bin/php-config --extension-dir |xargs echo \ 'extension_dir='>>/opt/php-5.1.4/lib/php.ini

I'm not sure what this do. I think this create a php.ini. But, after execute this commands, my php.ini have only 2 lines:

extension=php_gtk2.so
extension_dir=/opt/php-5.1.4/lib/php/extensions/no-debug-non-zts-20050922

It's right? When I use Win XP, my php.ini have more lines, like a php for web.

Thanks a lot!
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Tue Aug 01, 2006 7:10 pm    Post subject: Reply with quote

I meant: What output does ./configure give regarding glade?
Back to top
js_junior



Joined: 23 May 2006
Posts: 18
Location: Macaé, RJ, Brasil

PostPosted: Tue Aug 01, 2006 7:59 pm    Post subject: Reply with quote

Look that... I'm very shine... I forget the libglade in the configuration... Now, works fine... Just include the libglade and works very fine...
Thanks again and sorry for dummie question.

Take care,
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Tue Aug 01, 2006 8:10 pm    Post subject: Reply with quote

no problem, the forum is for questions. and remember, there are no dumb questions, just dumb answers
Back to top
cohort



Joined: 07 Feb 2006
Posts: 47

PostPosted: Tue Oct 24, 2006 3:46 am    Post subject: Reply with quote

In my case, it was that I'd forgotten to install the package "libglade2-dev" which has the libglade headers.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    gnope.org Forum Index -> Installation problems All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group
Templates enhanced by DigiWiki. Hosting by Tradebit.