Unix PHP-GTK2 Installer
How to use this automated installer to set everything up
Topic: Installing PHP-GTK2 (View All Tutorials)
Keywords: binary binaries installer unix linux freebsd solaris
Updated: 267 Days Ago, 2007/11/27 14:42
I have built an installer that should work on all Linux distributions, FreeBSD, and Solaris. It will install a pre-compiled PHP-GTK and configure PHP. After running this, you should be good to go. It will even run a demo application to prove it. For the time being there are no completed and up-to-date installers for Windows. Installing on Windows is not difficult, read this
to learn how.
I have personally tested, or have heard of good news on the following systems.
- KateOS 3.6
- Ubuntu 7.10
- FreeBSD 6.2
- Debian Etch
Chances are good that this will work for you. If it does then you will not need to go through the compiling process.
The installer itself is still brand new, so please contact me with any comments or problems.
Requirements
- PHP 5.2.0 or newer
- GTK2 (2.8, 2.10, or 2.12) (2.12 recommended)
- libglade
Download
I (will) have three versions each package, the only difference is the number of extra features each one has. You must install any dependenies listed before installing PHP-GTK2. I would suggest you do that with your package manager.
- "base" packages are the base compiles of PHP-GTK and have less dependencies (less features), however, the base package is good enough for most people.
- Base Depends On:
GTK2, libglade2
- "expanded" packages have the most common extra features.
- Expanded Depends On:
GTK2, libglade2, gtkspell, libsexy, gtksourceview, gtkextra, gtkhtml
- "full" packages have all the features possible.
- Full Depends On:
GTK2, libglade2, gtkspell, libsexy, gtksourceview, gtkextra, gtkhtml, mozembed
Linux
- PHP-GTK2 (base) for GTK 2.12 (or newer)
Updated: PHP-GTK 2007/11/14 (CVS), Installer 2007/11/26
» Download This «
- PHP-GTK2 (base) for GTK 2.10 (or newer)
Updated: PHP-GTK 2007/11/14 (CVS), Installer 2007/11/26
I strongly recommend updating your GTK2 and using the package above instead.
» Download This «
- PHP-GTK2 (base) for GTK 2.8 (or newer)
Updated: PHP-GTK 2007/11/14 (CVS), Installer 2007/11/26
I implore you to update GTK2 and use the package above instead.
» Download This «
FreeBSD 6.2
- PHP-GTK2 (base) for GTK 2.10 (or newer)
Updated: 2007/11/06 (CVS)
» Download This «
Solaris
How To Use This
Here are instructions on how to use this installer.
Note
If you are planning on installing this on another machine on the other side of your room / house / office / country / planet over SSH then you need to read this bit about X11 forwarding (and why it probably will not work right).
The Quick Version
- Download
- Extract
- cd Into It
- Be Root
- php install
- Enjoy the Rest of Your Day
The Long Version (with pictures!!!)
- Download. Select the package you need from the list above and download it to your computer. Remember where you saved it.
- Extract. Open a terminal window and cd to the directory where you saved the package. Extract it with the command: tar -xjf <package file name>
Note
Did you remember the tab key can help you complete long and or annoying file/directory names faster?
- cd Into It. Extracting will create a new directory with the same name as the package file. You should now be at a point which looks very similar to the screenshot below.
- Be Root. This is commonly done with the su command. If this is normally how you do it, do it. If you normally use sudo then you will use this on the next step.
- PHP Install. From within the extracted package directory you should run the command php install, which will then check to make sure you have the required libraries and completely install PHP-GTK2 for you.
About Super User
If you normally use sudo instead of su then you should have run sudo php install instead.
Note
When the installation completes successfully, it will run a demonstration PHP-GTK2 application to prove everything is working. You might recognize it as this tutorial example I wrote.
Note
For command line options you can use with this command, try php install --help
- Enjoy the Rest of Your Day. Honestly, I mean it. Enjoy it. You are done and ready to use PHP-GTK2 and develop applications with it. May I suggest (yes I may) an excellent tutorial for getting started? Hello World!