Lost Password?

Go Back   CodeCall Programming Forum > Software Development > Tutorials

Unregistered, Check out the Coder Battles in the Announcement and Game forums.

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   
John John is online now
Co-Administrator
 
Join Date: Jul 2006
Age: 20
Posts: 3,238
Last Blog:
Passwords
Credits: 887
Rep Power: 20
John has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud of
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 some packages required for Gtk
Quote:
sudo apt-get install php5-cli php5-dev php5-gd libgtk2.0-dev libglade2-dev
If you haven't installed the build essentials, now would be a good time to do so:
Quote:
sudo apt-get install build-essential
If you haven't installed the cvs package, you also need to do that:
Quote:
sudo apt-get install cvs
Now connect to the repository: <press enter when prompted for a password>
Quote:
cvs -d :pserver:cvsread@cvs.php.net:/repository login
Check out the necessary files:
Quote:
cvs -d :pserver:cvsread@cvs.php.net:/repository co php-gtk
Change to the new php-gtk directory:
Quote:
cd /home/****/php-gtk
Then run the following commands: [one line at a time]
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
Thanks it!
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Blog
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall

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

Sponsored Links
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 Programming 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 12:49 AM.

Contest Stats

Xav ........ 1333.07
MeTh0Dz|Reb0rn ........ 1059.52
John ........ 887.37
morefood2001 ........ 879.43
marwex89 ........ 869.98
WingedPanther ........ 851.68
Brandon W ........ 764.23
chili5 ........ 312.39
Steve.L ........ 254.16
dcs ........ 225.25

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 82%

Ads