Connect with Facebook Lost Password?


Go Back   CodeCall Programming Forum > Software Development > Tutorials

Tutorials Programming Tutorials - Post your tutorials here!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-14-2007, 06:59 PM
John's Avatar   
Co-Administrator
 
Join Date: Jul 2006
Age: 20
Posts: 5,305
Blog Entries: 24
Rep Power: 20
John is just really niceJohn is just really niceJohn is just really niceJohn is just really niceJohn is just really nice
Send a message via AIM to John Send a message via MSN to John
Default Setting up PHP-Gtk [Ubuntu]

One of PHP's nifty extensions is PHP-Gtk which acts as wrapper around the GTK library. Under Ubuntu Gusty Gibbons with the use of the synaptic package manager, installing this extension is simple.

First update your current repositories:
Quote:
sudo apt-get update
Next, install the required packages.
Quote:
sudo apt-get install build-essential php5-cli php5-dev libgtk2.0-dev libglade2-dev cvs
Log in to the PHP anonymous CVS server (use phpfi as the password):
Quote:
cvs -d :pserver:cvsread@cvs.php.net:/repository login
Obtain the PHP-GTK tree.
Quote:
cvs -d :pserver:cvsread@cvs.php.net:/repository co php-gtk
Move into the source tree:
Quote:
cd php-gtk
Configure and install:
Quote:
./buildconf
./configure
make
sudo make install
Open your php.ini
Quote:
sudo nano /etc/php5/cli/php.ini
Scroll to the extensions section and add the following line:
Quote:
extension=php_gtk2.so
Finally, test your installation by typing the following line:
Quote:
php -m | grep php-gtk
which should echo a single line that says:
Quote:
php-gtk
Thats it!

Last edited by John; 06-16-2009 at 09:58 PM.. Reason: fixed errors
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP 4 end of life announcement Jordan News 4 08-30-2007 09:55 AM
Setting up PHP on Windows dirkfirst PHP Forum 21 12-18-2006 05:06 PM


All times are GMT -5. The time now is 08:17 AM.

Freelance Jobs

XML/XSL: Need code for Book with Chapers using XML
Create an XML file for a book of your creation, and a basic CSS file that will format it to display ...
Earn: $40.00


C++/C: Simple firework cue sequencer
What I require is a rework of a simple cue sequencer. I have a piece of hardware (an Arduino boar...
Earn: $50.00


HTML/XHTML: Menu Rework - ASCIIBin
I'm placing this in the HTML/XHTML section of the Freelance site but you are not limited to HTML. Wh...
Earn: $20.00



CodeCall Goal

Goal #1: 1,000 Blogs
Goal #2: 1,000 Wiki Pages
Goal #3: 300,000 Posts
Goal #4: 20,000 Threads
Done: 30%, 23%, 55%, 75%

Ads