phpgtk__legacy/wiki1/wiki.d/PhpGtk2.InstallingOnUnix

96 lines
36 KiB
Text
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

version=pmwiki-1.0.5
newline=²
text=[[#top]]²!Building PHP-Gtk 2 on *nix²----²!!Index ²# [[#notes Notes]]²# [[#php_5_1 Installing PHP 5.1]]²# [[#php_gtk_2 Installing PHP-GTK 2]]²# [[#ubuntu ubuntu]]²# [[#kateos KateOS]]²----²[[#notes]]²!Notes²!!!Notes on requirements²You should check whether your system has the required software (and versions) to build PHP and PHP-GTK. As this depends on the extensions you may want to build, a quick read of the README files is recommended. ²As a side note, checking your distribution’s packaging system (YUM, APT, etc...) or CD-Roms for the needed packages is probably the quickest way of getting the required software.²²!!!Notes on PHP-GTK 2²PHP-Gtk 2 is WORK IN PROGRESS. It's currently in an alpha-stage, with new features (and occasionally bugs) being written every day. This means that the version you retrieve from CVS might build perfectly one day, and be seriously broken in the next! Check the php-gtk mailing lists in the [[http://gtk.php.net/resources.php resource section]] to get involved in the process!²²Also, note that PHP-Gtk isn’t a server-friendly extension, as it’s meant for desktop applications. This means you shouldn’t integrate PHP-Gtk with a version of PHP that is being used with a web server, so we’ll be installing PHP in a non-standard folder, to avoid conflicts.²²!!!Notes on the procedure²This guide assumes you have some knowledge on the basics of compiling and installing software, and know how to install the required tools for these operations. If you don't, then you should check other sites for specific help on that topic. ²In case you're not too fond of doing some reading, you can always wait that binaries for your system become available, though I'd assume you're into a bit of a waiting. \\²([[#top top]])²----²²[[#php_5_1]]²!!Installing PHP 5.1²The first thing you need to get PHP-Gtk 2 running is PHP 5.1. As far as I know, no other version will work, so either search for a pre-compiled binary for your system (good luck on that one...) or you’ll have to build it from CVS.²We’ll go for the CVS approach here, so we can count on the latest fixes!²²The installation process is very well documented on [[http://www.php.net/anoncvs.php PHP's site]], but note that we’ll be installing in a custom folder (@@/opt/php_5_1@@). You may change if you wish, but remember to also change the instructions as required. ²²* Get the latest stable php version from http://php.net/downloads.php²OR²*To get your very own copy of PHP, open a console terminal, and type: \\²[@$ cvs -d :pserver:cvsread@cvs.php.net:/repository login@]²²*When asked for a password, use '''phpfi'''. Then, retrieve the 5.1 branch: \\²[@$ cvs -d :pserver:cvsread@cvs.php.net:/repository checkout -r PHP_5_1 php-src@]²²*After the checkout is finished, let’s build and install PHP:\\²@@ $ su \\²# cd php-src\\²# ./buildconf \\²# ./configure --prefix=/opt/php_5_1 --disable-cgi \\²# make\\²# make install \\²# echo extension=php_gtk2.so >> /opt/php_5_1/lib/php.ini \\²# /opt/php_5_1/bin/php-config --extension-dir |xargs echo [=\=]\\²'extension_dir='>>/opt/php_5_1/lib/php.ini @@²²This went smoothly for me the first time around, so if you happen to stumble on an error, double check you match all the requirements, and read the README files. \\²([[#top top]])²----²²[[#php_gtk_2]] ²!!Installing Php-Gtk 2²With PHP 5.1 in place, we're ready to retrieve and install PHP-Gtk 2. Once more, check that you meet the requirements (found in the README files and such) before proceeding. As a last resource in case you can’t get the required software, you can disable some features during configure. For instance, in case it complains about libglade, and you’re growing desperate, use @@./configure --disable-libglade@@ .²²*Proceeding from where we left off, let’s get a copy of PHP-Gtk2 from CVS: \\²@@ # cd .. \\²# cvs -d :pserver:cvsread@cvs.php.net:/repository co php-gtk@@²²*After that is done, let’s build and install: \\²@@ # cd php-gtk \\²# ./buildconf --with-phpize=/opt/php_5_1/bin/phpize \\²# ./configure --with-php-config=/opt/php_5_1/bin/php-config \\²# make \\²# make install @@²²*Optionally, you may wish to create a link to the php executable:\\²@@ # ln -s /opt/php_5_1/bin/php /usr/bin/php-gtk @@²²*To check whether everything went fine, you can try: \\²@@ $ php-gtk -m | grep php-gtk @@²²The output should be a line stating “@@php-gtk@@”. \\²You can also try running the phpgtk2-demo.php script under /demos (under the php-gtk CVS checkout), it should be whooping!\\²([[#top top]])²²[[#php_gtk_2]] ²²[[#ubuntu]]²!!Installing under ubuntu²* install required developpement packages : \\²@@sudo apt-get install build-essential libglade2-dev libgtk2.0-dev cvs \\²sudo apt-get install php5 php5-dev php5-cli@@²²* get CVS sources : \\²@@cvs -d :pserver:cvsread@cvs.php.net:/repository login # (passwd : phpfi) \\²cvs -d :pserver:cvsread@cvs.php.net:/repository co php-gtk@@²²* go to source directory and just build \\²@@cd php-gtk \\²./buildconf \\²./configure \\²make \\²sudo make install@@²²* installation of module will be located in /usr/lib/php5/... (timestamp directory)²* works for Ubuntu Dapper (july 2006).²* Do not forget to set the "extension = php_gtk2.so" in your php.ini file, just below "Dynamic Extensions" section.²* to locate php.ini file, you can use this command : "php -i | grep -i 'php.ini'"²²[[#kateos]]²!!Installing under [=KateOS=]²* Add the community-unstable repository to your @@/etc/updateservers@@ if it has not already been done. \\²@@echo "[=http://kateos.org/download/packages/dist3-community-unstable/=]" >> /etc/updateservers@@²* Run the [=UpdateOS=] app. \\²@@updateos -i phpgtk2@@²²Dependencies will be filled and the the extension call appended to php.ini automatically. This package is currently in the community-unstable repository, so you '''must''' add it to your @@/etc/updateservers@@ before updateos will work.
time=1159754839
diff:1129200331:1129200331:=1c1²< Tutorial comming in a couple of hours! (jp @ 11h44GMT)²\ No newline at end of file²---²> Describe InstallingOnUnix here.²\ No newline at end of file²
author=bob
author:1129200331=Jp
host:1129200331=212.113.164.105
name=PhpGtk2.InstallingOnUnix
host=199.8.239.198
agent=Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1) Gecko/20060918 Firefox/2.0
rev=29
diff:1129218045:1129200331:=1,67c1²< !!Building PHP-Gtk 2 on *nix²< ²< !!!Some notes about this guide²< ²< This are the steps I took to install PHP-GTK 2 on my Fedora Core 4 box. As it's pretty customized (package-wise) at this stage, it's likelly that many of the requisits were met before starting the install. This means that if something seems to be missing on your box, you should check your distros packaging system (YUM, APT or other) or CD-Roms for the needed packages. Alternatively, you can always download, build and install them from source.²< ²< This guide assumes you have some knowledge on the basics of compiling and installing software, and know how to install the required tools for these operations. If you don't, then you should check other sites for specific help on that topic. In case you're not fond of doing some reading, you can always wait for pre-compiled binaries for your distro become available, though I'd assume you're into a bit of a waiting.²< ²< Also, note that PHP-Gtk 2 is WORK IN PROGRESS. It's currently in an alpha-stage, with new features (and ocasionally bugs) being written every day. This means that the version you retrive from CVS might build perfectly one day, and be seriously broken in the next! Check the mailing lists (TODO:ADD LINKS) to get involved in the process!²< ²< !!!Getting PHP 5.1²< ²< The first thing you need to get PHP-Gtk 2 running is PHP 5.1. As far as I know, no other version will work, so either search for a pre-compiled binary for your system (good luck on that one...) or youll have to build it from CVS.²< ²< Id recommend the CVS way, as its not as hard as it sounds, and it even configures a currently running Apache 2 server “automagically”. Not to mention, itll always have the latest fixes ;) ²< ²< This process is very well documented on [[http://www.php.net/anoncvs.php PHP's site]], but here are some general pointers to get you started: ²< ²< *To get your very own copy of PHP, open a console terminal, and type: \\²< '''$cvs -d :pserver:cvsread@cvs.php.net:/repository login'''²< ²< *When asked for a password, use '''phpfi'''. Then, retrieve the 5.1 branch: \\²< '''$cvs -d :pserver:cvsread@cvs.php.net:/repository checkout -r PHP_5_1 php-src '''²< ²< This part will take some time, depending on your connection and/or the traffic at php.nets CVS. After its done, we need to CONFIGURE, BUILD and INSTALL it.²< Before proceeding, make sure you have the required tools. Id say the standard development tools that come with your distro should be enough, but check the INSTALL and README files on the php-src folder we just downloaded for more precise requirements.²< In my particular case, I already had an Apache2 server up and running, but I didnt have the -devel package for it (that provides apxs), so I got an RPM from my usual place ([[http://www.freshrpms.net FreshRPMs.net]]) and installed it. (to install an RPM, use: rpm -ivh ''packagename'')²< ²< *After everything is in place, lets start the build process:\\²< '''$./buildconf '''\\²< '''$./configure --with-apxs2=/usr/sbin/apxs with-mysql''' \\²< '''$make'''\\²< '''$su'''\\²< '''#make install'''²< ²< I was amazed this went smoothly the first time around, not a single error (you can safely ignore most of the warnings). So, if you happen to stumble on an error, I wouldnt really know how to help you. As a hint, double check you match all the requirements. If, as me, you had an apache server running, restart the httpd service:²< *'''#[TODO:ADD THE COMMAND LINE WAY TO DO THIS!]'''²< You should try running a simple test script on your localhost to check everything is in order.²< ²< !!!Installing Php-Gtk 2²< ²< With PHP 5.1 in place, we're ready to retrieve and install Php-Gtk 2. Once more, check that you meet the requirements (found in the README files and such) before proceeding. If during the configure or build process you get an error about missing software, you should try to get those programs. ²< As a last resource, you can disable some features during configure. For instance, in case it complains about libglade, and youre growing desperate, use: ./configure -disable-libglade²< ²< *Proceeding from where we left off, let's get a copy of PHP-Gtk2 from CVS: \\²< '''#exit '''\\²< '''$cd .. '''\\²< '''$cvs -d :pserver:cvsread@cvs.php.net:/repository co php-gtk'''²< ²< *After that is done, lets build and install. The steps are very much like installing PHP: \\²< '''$cd php-gtk''' \\²< '''$./buildconf''' \\²< '''$./configure'''²< ²< *After you get configure to run without major problems, do: \\²< '''$make''' \\²< '''$su''' \\²< '''#make install'''²< ²< And there, you should be set to got! To try out your setup, do:²< '''$cd test '''\\²< '''$php gtk.php''' \\²< If you get a warning saying that ld() could not load php_gtk.so, then open gtk.php with a text editor, and change line 5 from\\²< ''dl( 'php_gtk.' . PHP_SHLIB_SUFFIX);''\\²< to\\²< ''dl( 'php_gtk2.' . PHP_SHLIB_SUFFIX);''\\²< and try again. If everything worked fine, a wonderful new window should have popped up, with a lot of buttons to satisfy all your button-pushing needs ;)²\ No newline at end of file²---²> Tutorial comming in a couple of hours! (jp @ 11h44GMT)²\ No newline at end of file²
author:1129218045=Jp
host:1129218045=212.113.164.99
diff:1129218368:1129218045:minor=9c9²< Also, note that PHP-Gtk 2 is WORK IN PROGRESS. It's currently in an alpha-stage, with new features (and ocasionally bugs) being written every day. This means that the version you retrive from CVS might build perfectly one day, and be seriously broken in the next! Check the php-gtk mailing lists in the [[http://gtk.php.net/resources.php resource section]] to get involved in the process!²---²> Also, note that PHP-Gtk 2 is WORK IN PROGRESS. It's currently in an alpha-stage, with new features (and ocasionally bugs) being written every day. This means that the version you retrive from CVS might build perfectly one day, and be seriously broken in the next! Check the mailing lists (TODO:ADD LINKS) to get involved in the process!²
author:1129218368=Jp
host:1129218368=212.113.164.99
diff:1129321245:1129218368:=37c37²< *'''#/usr/sbin/apachectl restart'''²---²> *'''#[TODO:ADD THE COMMAND LINE WAY TO DO THIS!]'''²
author:1129321245=Jp
host:1129321245=212.113.164.99
diff:1129453605:1129321245:=67,70c67²< and try again. If everything worked fine, a wonderful new window should have popped up, with a lot of buttons to satisfy all your button-pushing needs ;)²< ²< Please note: \\²< ''ld()'' is currently deprecated, and the correct way to load php-gtk is through php.ini. Still, for those running webservers, note that php-gtk is not a server-friendly extension - it's meant to run desktop-applications. I'm trying to figure out the right way to do this installation, if you have any ideas, let me know! (OR, edit this page =) ) - {{~Jp}}²\ No newline at end of file²---²> and try again. If everything worked fine, a wonderful new window should have popped up, with a lot of buttons to satisfy all your button-pushing needs ;)²\ No newline at end of file²
author:1129453605=Jp
host:1129453605=212.113.164.99
diff:1129454168:1129453605:minor=20c20²< @@$cvs -d :pserver:cvsread@cvs.php.net:/repository login@@²---²> '''$cvs -d :pserver:cvsread@cvs.php.net:/repository login'''²23c23²< @@$cvs -d :pserver:cvsread@cvs.php.net:/repository checkout -r PHP_5_1 php-src@@²---²> '''$cvs -d :pserver:cvsread@cvs.php.net:/repository checkout -r PHP_5_1 php-src '''²30,34c30,34²< @@$./buildconf \\²< $./configure --with-apxs2=/usr/sbin/apxs with-mysql \\²< $make\\²< $su\\²< #make install@@²---²> '''$./buildconf '''\\²> '''$./configure --with-apxs2=/usr/sbin/apxs with-mysql''' \\²> '''$make'''\\²> '''$su'''\\²> '''#make install'''²37c37²< *@@#/usr/sbin/apachectl restart@@²---²> *'''#/usr/sbin/apachectl restart'''²46,48c46,48²< @@#exit \\²< $cd .. \\²< $cvs -d :pserver:cvsread@cvs.php.net:/repository co php-gtk@@²---²> '''#exit '''\\²> '''$cd .. '''\\²> '''$cvs -d :pserver:cvsread@cvs.php.net:/repository co php-gtk'''²51,53c51,53²< @@$cd php-gtk \\²< $./buildconf \\²< $./configure@@²---²> '''$cd php-gtk''' \\²> '''$./buildconf''' \\²> '''$./configure'''²56,62c56,62²< @@$make \\²< $su \\²< #make install@@²< ²< And there, you should be set to got! To try out your setup, do: \\²< @@$cd test \\²< $php gtk.php@@ \\²---²> '''$make''' \\²> '''$su''' \\²> '''#make install'''²> ²> And there, you should be set to got! To try out your setup, do:²> '''$cd test '''\\²> '''$php gtk.php''' \\²64c64²< @@dl( 'php_gtk.' . PHP_SHLIB_SUFFIX);@@\\²---²> ''dl( 'php_gtk.' . PHP_SHLIB_SUFFIX);''\\²66c66²< @@dl( 'php_gtk2.' . PHP_SHLIB_SUFFIX);@@\\²---²> ''dl( 'php_gtk2.' . PHP_SHLIB_SUFFIX);''\\²
author:1129454168=Jp
host:1129454168=212.113.164.99
diff:1129732289:1129454168:minor=5,7d4²< !UNDER CONSTRUCTION²< Expect some changes to this guide before the end of the day, as a better way to install php-gtk has been pointed out!²< ²
author:1129732289=Jp
host:1129732289=212.113.164.99
diff:1129739543:1129732289:=1,21c1²< !Building PHP-Gtk 2 on *nix²< ----²< !!!Index ²< # [[#notes Notes]]²< # [[#php_5_1 Installing PHP 5.1]]²< # [[#php_gtk_2 Installing PHP-GTK 2]]²< ----²< [[#notes]]²< !!!Notes on requirements²< You should check whether your system has the required software (and versions) to build PHP and PHP-GTK. As this depends on the extensions you may want to build, a quick read of the README files is recommended. ²< As a side note, checking your distributions packaging system (YUM, APT, etc...) or CD-Roms for the needed packages is probably the quickest way of getting the required software.²< ²< !!!Notes on PHP-GTK 2²< PHP-Gtk 2 is WORK IN PROGRESS. It's currently in an alpha-stage, with new features (and occasionally bugs) being written every day. This means that the version you retrieve from CVS might build perfectly one day, and be seriously broken in the next! Check the php-gtk mailing lists in the [[http://gtk.php.net/resources.php resource section]] to get involved in the process!²< ²< Also, note that PHP-Gtk isnt a server-friendly extension, as its meant for desktop applications. This means you shouldnt integrate PHP-Gtk with a version of PHP that is being used with a web server, so well be installing PHP in a non-standard folder, to avoid conflicts.²< ²< !!!Notes on the procedure²< This guide assumes you have some knowledge on the basics of compiling and installing software, and know how to install the required tools for these operations. If you don't, then you should check other sites for specific help on that topic. ²< In case you're not too fond of doing some reading, you can always wait that binaries for your system become available, though I'd assume you're into a bit of a waiting.²< ----²---²> !!Building PHP-Gtk 2 on *nix²22a3,14²> !!!Some notes about this guide²> ²> !UNDER CONSTRUCTION²> Expect some changes to this guide before the end of the day, as a better way to install php-gtk has been pointed out!²> ²> This are the steps I took to install PHP-GTK 2 on my Fedora Core 4 box. As it's pretty customized (package-wise) at this stage, it's likelly that many of the requisits were met before starting the install. This means that if something seems to be missing on your box, you should check your distros packaging system (YUM, APT or other) or CD-Roms for the needed packages. Alternatively, you can always download, build and install them from source.²> ²> This guide assumes you have some knowledge on the basics of compiling and installing software, and know how to install the required tools for these operations. If you don't, then you should check other sites for specific help on that topic. In case you're not fond of doing some reading, you can always wait for pre-compiled binaries for your distro become available, though I'd assume you're into a bit of a waiting.²> ²> Also, note that PHP-Gtk 2 is WORK IN PROGRESS. It's currently in an alpha-stage, with new features (and ocasionally bugs) being written every day. This means that the version you retrive from CVS might build perfectly one day, and be seriously broken in the next! Check the php-gtk mailing lists in the [[http://gtk.php.net/resources.php resource section]] to get involved in the process!²> ²> !!!Getting PHP 5.1²24,25d15²< [[#php_5_1]]²< !!Installing PHP 5.1²27d16²< Well go for the CVS approach here, so we can count on the latest fixes!²29c18,20²< The installation process is very well documented on [[http://www.php.net/anoncvs.php PHP's site]], but note that well be installing in a custom folder (@@/opt/php_5_1@@). You may change if you wish, but remember to also change the instructions as required. ²---²> Id recommend the CVS way, as its not as hard as it sounds, and it even configures a currently running Apache 2 server “automagically”. Not to mention, itll always have the latest fixes ;) ²> ²> This process is very well documented on [[http://www.php.net/anoncvs.php PHP's site]], but here are some general pointers to get you started: ²32c23²< [@$ cvs -d :pserver:cvsread@cvs.php.net:/repository login@]²---²> @@$cvs -d :pserver:cvsread@cvs.php.net:/repository login@@²35,68c26²< [@$ cvs -d :pserver:cvsread@cvs.php.net:/repository checkout -r PHP_5_1 php-src@]²< ²< *After the checkout is finished, lets build and install PHP:\\²< @@ $ su \\²< # ./buildconf \\²< # ./configure --prefix=/opt/php_5_1 --disable-cgi \\²< # make\\²< # make install \\²< # echo extension=php_gtk2.so >> /opt/php_5_1/lib/php.ini \\²< # /opt/php_5_1/bin/php-config --extension-dir |xargs echo [=\=]\\²< 'extension_dir='>>/opt/php_5_1/lib/php.ini @@²< ²< This went smoothly for me the first time around, so if you happen to stumble on an error, double check you match all the requirements, and read the README files.²< ----²< ²< [[#php_gtk_2]]²< !!Installing Php-Gtk 2²< With PHP 5.1 in place, we're ready to retrieve and install PHP-Gtk 2. Once more, check that you meet the requirements (found in the README files and such) before proceeding. As a last resource in case you cant get the required software, you can disable some features during configure. For instance, in case it complains about libglade, and youre growing desperate, use @@./configure --disable-libglade@@ .²< ²< *Proceeding from where we left off, lets get a copy of PHP-Gtk2 from CVS: \\²< @@ # cd .. \\²< # cvs -d :pserver:cvsread@cvs.php.net:/repository co php-gtk@@²< ²< *After that is done, lets build and install: \\²< @@ # cd php-gtk \\²< # ./buildconf \\²< # ./buildconf -with-phpize=/opt/php_5_1/bin/phpize [=\=] \\²< -with-php-config=/opt/php_5_1/bin/php-config \\²< # ./configure \\²< # make \\²< # make install @@²< ²< *Optionally, you may wish to create a link to the php executable:\\²< @@ # ln -s /opt/php_5_1/bin/php /usr/bin/php-gtk @@²---²> @@$cvs -d :pserver:cvsread@cvs.php.net:/repository checkout -r PHP_5_1 php-src@@²70,71c28,70²< *To check whether everything went fine, you can try: \\²< @@ $ php-gtk -m | grep php-gtk @@²---²> This part will take some time, depending on your connection and/or the traffic at php.nets CVS. After its done, we need to CONFIGURE, BUILD and INSTALL it.²> Before proceeding, make sure you have the required tools. Id say the standard development tools that come with your distro should be enough, but check the INSTALL and README files on the php-src folder we just downloaded for more precise requirements.²> In my particular case, I already had an Apache2 server up and running, but I didnt have the -devel package for it (that provides apxs), so I got an RPM from my usual place ([[http://www.freshrpms.net FreshRPMs.net]]) and installed it. (to install an RPM, use: rpm -ivh ''packagename'')²> ²> *After everything is in place, lets start the build process:\\²> @@$./buildconf \\²> $./configure --with-apxs2=/usr/sbin/apxs with-mysql \\²> $make\\²> $su\\²> #make install@@²> ²> I was amazed this went smoothly the first time around, not a single error (you can safely ignore most of the warnings). So, if you happen to stumble on an error, I wouldnt really know how to help you. As a hint, double check you match all the requirements. If, as me, you had an apache server running, restart the httpd service:²> *@@#/usr/sbin/apachectl restart@@²> You should try running a simple test script on your localhost to check everything is in order.²> ²> !!!Installing Php-Gtk 2²> ²> With PHP 5.1 in place, we're ready to retrieve and install Php-Gtk 2. Once more, check that you meet the requirements (found in the README files and such) before proceeding. If during the configure or build process you get an error about missing software, you should try to get those programs. ²> As a last resource, you can disable some features during configure. For instance, in case it complains about libglade, and youre growing desperate, use: ./configure -disable-libglade²> ²> *Proceeding from where we left off, let's get a copy of PHP-Gtk2 from CVS: \\²> @@#exit \\²> $cd .. \\²> $cvs -d :pserver:cvsread@cvs.php.net:/repository co php-gtk@@²> ²> *After that is done, lets build and install. The steps are very much like installing PHP: \\²> @@$cd php-gtk \\²> $./buildconf \\²> $./configure@@²> ²> *After you get configure to run without major problems, do: \\²> @@$make \\²> $su \\²> #make install@@²> ²> And there, you should be set to got! To try out your setup, do: \\²> @@$cd test \\²> $php gtk.php@@ \\²> If you get a warning saying that ld() could not load php_gtk.so, then open gtk.php with a text editor, and change line 5 from\\²> @@dl( 'php_gtk.' . PHP_SHLIB_SUFFIX);@@\\²> to\\²> @@dl( 'php_gtk2.' . PHP_SHLIB_SUFFIX);@@\\²> and try again. If everything worked fine, a wonderful new window should have popped up, with a lot of buttons to satisfy all your button-pushing needs ;)²73c72,73²< The output should be a line stating “@@php-gtk@@”. You can also try running the gtk.php script under /tests (under the php-gtk CVS checkout), and although youll probably get a bunch of “deprecated” warnings until that script is updated (or php-gtk2 is more complete), it should be somewhat functional.²\ No newline at end of file²---²> Please note: \\²> ''ld()'' is currently deprecated, and the correct way to load php-gtk is through php.ini. Still, for those running webservers, note that php-gtk is not a server-friendly extension - it's meant to run desktop-applications. I'm trying to figure out the right way to do this installation, if you have any ideas, let me know! (OR, edit this page =) ) - {{~Jp}}²\ No newline at end of file²
author:1129739543=Jp
host:1129739543=212.113.164.99
diff:1129739953:1129739543:minor=1d0²< [[#top]]²4c3²< !!Index ²---²> !!!Index ²10d8²< !Notes²23d20²< ([[#top top]])²25a23²> ²50d47²< ([[#top top]])²53,54c50,51²< [[#php_gtk_2]] ²< !!Installing Php-Gtk 2 ([[#top top]])²---²> [[#php_gtk_2]]²> !!Installing Php-Gtk 2²76,77c73²< The output should be a line stating “@@php-gtk@@”. You can also try running the gtk.php script under /tests (under the php-gtk CVS checkout), and although youll probably get a bunch of “deprecated” warnings until that script is updated (or php-gtk2 is more complete), it should be somewhat functional.²< ([[#top top]])²\ No newline at end of file²---²> The output should be a line stating “@@php-gtk@@”. You can also try running the gtk.php script under /tests (under the php-gtk CVS checkout), and although youll probably get a bunch of “deprecated” warnings until that script is updated (or php-gtk2 is more complete), it should be somewhat functional.²\ No newline at end of file²
author:1129739953=Jp
host:1129739953=212.113.164.99
diff:1129740079:1129739953:minor=22c22²< In case you're not too fond of doing some reading, you can always wait that binaries for your system become available, though I'd assume you're into a bit of a waiting. \\²---²> In case you're not too fond of doing some reading, you can always wait that binaries for your system become available, though I'd assume you're into a bit of a waiting.²49c49²< This went smoothly for me the first time around, so if you happen to stumble on an error, double check you match all the requirements, and read the README files. \\²---²> This went smoothly for me the first time around, so if you happen to stumble on an error, double check you match all the requirements, and read the README files.²54c54²< !!Installing Php-Gtk 2²---²> !!Installing Php-Gtk 2 ([[#top top]])²76c76²< The output should be a line stating “@@php-gtk@@”. You can also try running the gtk.php script under /tests (under the php-gtk CVS checkout), and although youll probably get a bunch of “deprecated” warnings until that script is updated (or php-gtk2 is more complete), it should be somewhat functional.\\²---²> The output should be a line stating “@@php-gtk@@”. You can also try running the gtk.php script under /tests (under the php-gtk CVS checkout), and although youll probably get a bunch of “deprecated” warnings until that script is updated (or php-gtk2 is more complete), it should be somewhat functional.²
author:1129740079=Jp
host:1129740079=212.113.164.99
diff:1129741618:1129740079:=76,77c76²< The output should be a line stating “@@php-gtk@@”. \\²< You can also try running the phpgtk2-demo.php script under /demos (under the php-gtk CVS checkout), it should be whooping!\\²---²> The output should be a line stating “@@php-gtk@@”. You can also try running the gtk.php script under /tests (under the php-gtk CVS checkout), and although youll probably get a bunch of “deprecated” warnings until that script is updated (or php-gtk2 is more complete), it should be somewhat functional.\\²
author:1129741618=Jp
host:1129741618=212.113.164.99
diff:1131172410:1129741618:minor=41d40²< # cd php-src²
author:1131172410=rickz0rz
host:1131172410=68.62.66.108
diff:1131172452:1131172410:minor=41c41²< # cd php-src\\²---²> # cd php-src²
author:1131172452=rickz0rz
host:1131172452=68.62.66.108
diff:1131234191:1131172452:=64,65c64,67²< # ./buildconf --with-phpize=/opt/php_5_1/bin/phpize \\²< # ./configure --with-php-config=/opt/php_5_1/bin/php-config \\²---²> # ./buildconf \\²> # ./buildconf -with-phpize=/opt/php_5_1/bin/phpize [=\=] \\²> -with-php-config=/opt/php_5_1/bin/php-config \\²> # ./configure \\²
author:1131234191=Jp
host:1131234191=212.113.164.99
diff:1150312733:1131234191:=77,99c77²< ([[#top top]])²< ²< [[#php_gtk_2]] ²< ²< !!Installing under ubuntu²< * install required packages : \\²< @@ sudo apt-get install php5 php-dev php5-cli libgtk2.0-dev@@²< ²< * get CVS sources : \\²< @@cvs -d :pserver:cvsread@cvs.php.net:/repository login # (passwd : phpfi) \\²< cvs -d :pserver:cvsread@cvs.php.net:/repository co php-gtk@@²< ²< * go to source directory and just build \\²< @@cd php-gtk \\²< ./buildconf \\²< ./configure \\²< make \\²< make install@@²< ²< * installation of module will be located in /usr/lib/ ²< * there is a compiler error with dapper (sorry).²< ²< ²---²> ([[#top top]])²\ No newline at end of file²
author:1150312733=Marc Quinton
host:1150312733=82.234.62.122
diff:1150312888:1150312733:=82,83c82,83²< * install required developpement packages : \\²< @@ sudo apt-get install php5 php5-dev php5-cli libgtk2.0-dev@@²---²> * install required packages : \\²> @@ sudo apt-get install php5 php-dev php5-cli libgtk2.0-dev@@²
author:1150312888=Marc Quinton
host:1150312888=82.234.62.122
diff:1151483634:1150312888:=13c13²< As a side note, checking your distribution&#8217;s packaging system (YUM, APT, etc...) or CD-Roms for the needed packages is probably the quickest way of getting the required software.²---²> As a side note, checking your distributions packaging system (YUM, APT, etc...) or CD-Roms for the needed packages is probably the quickest way of getting the required software.²18c18²< Also, note that PHP-Gtk isn&#8217;t a server-friendly extension, as it&#8217;s meant for desktop applications. This means you shouldn&#8217;t integrate PHP-Gtk with a version of PHP that is being used with a web server, so we&#8217;ll be installing PHP in a non-standard folder, to avoid conflicts.²---²> Also, note that PHP-Gtk isnt a server-friendly extension, as its meant for desktop applications. This means you shouldnt integrate PHP-Gtk with a version of PHP that is being used with a web server, so well be installing PHP in a non-standard folder, to avoid conflicts.²28,29c28,29²< The first thing you need to get PHP-Gtk 2 running is PHP 5.1. As far as I know, no other version will work, so either search for a pre-compiled binary for your system (good luck on that one...) or you&#8217;ll have to build it from CVS.²< We&#8217;ll go for the CVS approach here, so we can count on the latest fixes!²---²> The first thing you need to get PHP-Gtk 2 running is PHP 5.1. As far as I know, no other version will work, so either search for a pre-compiled binary for your system (good luck on that one...) or youll have to build it from CVS.²> Well go for the CVS approach here, so we can count on the latest fixes!²31c31²< The installation process is very well documented on [[http://www.php.net/anoncvs.php PHP's site]], but note that we&#8217;ll be installing in a custom folder (@@/opt/php_5_1@@). You may change if you wish, but remember to also change the instructions as required. ²---²> The installation process is very well documented on [[http://www.php.net/anoncvs.php PHP's site]], but note that well be installing in a custom folder (@@/opt/php_5_1@@). You may change if you wish, but remember to also change the instructions as required. ²33,34d32²< * Get the latest stable php version from http://php.net/downloads.php²< OR²41c39²< *After the checkout is finished, let&#8217;s build and install PHP:\\²---²> *After the checkout is finished, lets build and install PHP:\\²58c56²< With PHP 5.1 in place, we're ready to retrieve and install PHP-Gtk 2. Once more, check that you meet the requirements (found in the README files and such) before proceeding. As a last resource in case you can&#8217;t get the required software, you can disable some features during configure. For instance, in case it complains about libglade, and you&#8217;re growing desperate, use @@./configure --disable-libglade@@ .²---²> With PHP 5.1 in place, we're ready to retrieve and install PHP-Gtk 2. Once more, check that you meet the requirements (found in the README files and such) before proceeding. As a last resource in case you cant get the required software, you can disable some features during configure. For instance, in case it complains about libglade, and youre growing desperate, use @@./configure --disable-libglade@@ .²60c58²< *Proceeding from where we left off, let&#8217;s get a copy of PHP-Gtk2 from CVS: \\²---²> *Proceeding from where we left off, lets get a copy of PHP-Gtk2 from CVS: \\²64c62²< *After that is done, let&#8217;s build and install: \\²---²> *After that is done, lets build and install: \\²77c75²< The output should be a line stating &#8220;@@php-gtk@@&#8221;. \\²---²> The output should be a line stating “@@php-gtk@@”. \\²
author:1151483634=cweiske
host:1151483634=84.185.163.110
diff:1153901660:1151483634:=85c85²< @@ sudo apt-get install build-essential php5 php5-dev php5-cli libgtk2.0-dev@@²---²> @@ sudo apt-get install php5 php5-dev php5-cli libgtk2.0-dev@@²
author:1153901660=Marc Quinton
host:1153901660=143.196.162.107
diff:1153902374:1153901660:=85,86c85²< @@sudo apt-get install build-essential libgtk2.0-dev cvs \\²< sudo apt-get install php5 php5-dev php5-cli@@²---²> @@ sudo apt-get install build-essential php5 php5-dev php5-cli libgtk2.0-dev@@²100,101c99²< * works for Ubuntu Dapper (july 2006).²< ²---²> * there is a compiler error with dapper (sorry).²
author:1153902374=Marc Quinton
host:1153902374=143.196.162.107
diff:1153902572:1153902374:=99c99²< * installation of module will be located in /usr/lib/php5/... (timestamp directory)²---²> * installation of module will be located in /usr/lib/ ²
author:1153902572=Marc Quinton
host:1153902572=143.196.162.107
diff:1154612458:1153902572:=103c103²< Do not forget to set the "extension = php_gtk2.so" in your php.ini file.²---²> ²
author:1154612458=jaccos
host:1154612458=57.67.195.200
diff:1154612521:1154612458:=103c103²< * Do not forget to set the "extension = php_gtk2.so" in your php.ini file.²---²> Do not forget to set the "extension = php_gtk2.so" in your php.ini file.²
author:1154612521=jaccos
host:1154612521=57.67.195.200
diff:1156949975:1154612521:=97c97²< sudo make install@@²---²> make install@@²
author:1156949975=Marc Quinton
host:1156949975=82.234.62.122
diff:1156950400:1156949975:minor=103c103²< * Do not forget to set the "extension = php_gtk2.so" in your php.ini file, just below "Dynamic Extensions" section.²---²> * Do not forget to set the "extension = php_gtk2.so" in your php.ini file.²
author:1156950400=Marc Quinton
host:1156950400=82.234.62.122
diff:1156950794:1156950400:minor=101,102d100²< * Do not forget to set the "extension = php_gtk2.so" in your php.ini file, just below "Dynamic Extensions" section.²< * to locate php.ini file, you can use this command : "php -i | grep -i 'php.ini'"²103a102,103²> ²> * Do not forget to set the "extension = php_gtk2.so" in your php.ini file, just below "Dynamic Extensions" section.²
author:1156950794=Marc Quinton
host:1156950794=82.234.62.122
diff:1157122673:1156950794:minor=8d7²< # [[#ubuntu ubuntu]]²84d82²< [[#ubuntu]]²
author:1157122673=Marc Quinton
host:1157122673=143.196.162.107
diff:1157656346:1157122673:=87c87²< @@sudo apt-get install build-essential libglade2-dev libgtk2.0-dev cvs \\²---²> @@sudo apt-get install build-essential libgtk2.0-dev cvs \\²
author:1157656346=Marc Quinton
host:1157656346=82.234.62.122
diff:1159754257:1157656346:=9d8²< # [[#kateos KateOS]]²107,112d105²< [[#kateos]]²< !!Installing under [=KateOS=]²< * Run the [=UpdateOS=] app \\²< @@updateos -i phpgtk2@@²< ²< Dependencies will be filled and the the extension call appended to php.ini automatically.²\ No newline at end of file²
author:1159754257=bob
host:1159754257=199.8.239.198
diff:1159754839:1159754257:minor=109,111c109²< * Add the community-unstable repository to your @@/etc/updateservers@@ if it has not already been done. \\²< @@echo "[=http://kateos.org/download/packages/dist3-community-unstable/=]" >> /etc/updateservers@@²< * Run the [=UpdateOS=] app. \\²---²> * Run the [=UpdateOS=] app \\²114c112²< Dependencies will be filled and the the extension call appended to php.ini automatically. This package is currently in the community-unstable repository, so you '''must''' add it to your @@/etc/updateservers@@ before updateos will work.²\ No newline at end of file²---²> Dependencies will be filled and the the extension call appended to php.ini automatically.²\ No newline at end of file²
author:1159754839=bob
host:1159754839=199.8.239.198