Running is therapy

a blog about running, cats and Linux.
  • Home
  • Current Schedule
  • Personal Records
  • Upcoming Races

Installing php5-ming on Dapper

Published by Nathan Powell on June 25, 2007 12:23 pm under sysadmin

I ran into a package today that I couldn’t find in the repos for Dapper. So I had to figure out a way to get it on there.

Luckily I ran into mah online, and I asked him for some dpkg-fu. He was kind enough to give me a hand getting this working. Here is what we did.

First, I added a Feisty repo to my sources.list so I could grab the source files and patch them for Debian.

echo "deb-src http://us.archive.ubuntu.com/ubuntu/ feisty main universe" >> /etc/apt/sources.list

Next we had to increase the cache size for apt so it wouldn’t choke on the new repo

echo "APT::Cache-Limit \"33554432\";" >> /etc/apt/apt.conf

Then, you can update and install the source files

sudo apt-get update
apt-get source php5-ming

This should, among other things create a directory called ming-0.3.0. Next, see what deps are missing. Install them.

cd ming-0.3.0/
debuild -uc -us -b

This will tell you all the packages you need. The only one you won’t be able to install is python-central…who cares python sucks anyway. Let’s get rid of the need for it.

vi debian/rules

Change lines 25 and 26 to

#PYDEF=$(shell pyversions -d)
#PYVERS=$(shell pyversions -r)

And lines 181 and 182 to

  #dh_pycentral
  #dh_python

Now we are ready to build…but we’ll have to force it.

debuild -uc -us -b -d

In the parent directory (after that finishes) there will be a bunch of deb’s. Just install the lib-ming, and the php5-ming deb’s.

sudo dpkg -i php5-ming_0.3.0-11ubuntu1_i386.deb libming0_0.3.0-11ubuntu1_i386.deb

One last thing, you have to enable the use of ming in the php.ini file

echo "extension=ming.so" >> /etc/php5/apache2/php.ini

Then restart Apache.

That’s it. You can also now take those deb’s and use them on any Dapper machine…though, as mah pointed out…I wouldn’t use the Python ones if I were you :)

2 Comments so far

  1. Nicolas on October 26th, 2007

    Thank you very much! I had a problem with “debhelper” not being the right version but debuild was “forced” it did the job anyway. Up to now, everything works great. Should I expect surprises down the line?
    In any case, thank you very much for this documentation.

  2. Nathan Powell on October 26th, 2007

    You should not expect surprises, this has been working fine for me.

Posting your comment.

  • Search

  • Archives

    • August 2008 (10)
    • July 2008 (11)
    • June 2008 (14)
    • May 2008 (15)
    • April 2008 (10)
    • March 2008 (16)
    • February 2008 (17)
    • January 2008 (37)
    • December 2007 (21)
    • November 2007 (30)
    • October 2007 (29)
    • September 2007 (22)
    • August 2007 (30)
    • July 2007 (49)
    • June 2007 (32)
    • May 2007 (29)
    • April 2007 (38)
    • March 2007 (26)
    • February 2007 (25)
    • January 2007 (23)
    • December 2006 (10)
    • November 2006 (12)
    • October 2006 (9)
    • September 2006 (9)
    • August 2006 (5)
    • July 2006 (13)
    • June 2006 (9)
    • May 2006 (8)
    • April 2006 (11)
    • March 2006 (12)
    • February 2006 (12)
    • January 2006 (13)
    • December 2005 (15)
    • November 2005 (19)
    • October 2005 (8)
  • Categories

    • blather (61)
    • books (10)
    • computers (177)
    • cooking (1)
    • economics (3)
    • emacs (3)
    • football (1)
    • gaming (1)
    • hiking (5)
    • housekeeping (5)
    • lifehacking (7)
    • music (3)
    • paddling (2)
    • personal (1)
    • politics (21)
    • programming (69)
    • running (228)
    • smoking (40)
    • sysadmin (9)
    • tlc (10)
    • Uncategorized (1)
  • Pages

    • Current Schedule
    • Personal Records
    • Upcoming Races

Copyright © 2008 Running is therapy
WordPress Theme based on Light Theme