Join 3,375 readers in helping fund MetaFilter (Hide)


Installing PHP MING on Debian
August 11, 2005 12:42 PM   Subscribe

Installing PHP package Ming on Debian Sarge? (kernel 2.4.29) I'm getting compilation problems when I'm rebuilding php and I'm a n00b. Can I get some help?

I'm not very good with Linux but I'm running into problems installing Ming. I've tried various version, .3.1beta, .2alpha and .1.1 and none seem to work. .2alpha and .1.1 do install properely but when I try and rebuild php, I get the following errors while running make.

/home/admin/php-5.0.4/ext/ming/ming.c: In function `SWFgetProperty':
/home/admin/php-5.0.4/ext/ming/ming.c:105: structure has no member named `properties'
/home/admin/php-5.0.4/ext/ming/ming.c: In function `getCharacter':
/home/admin/php-5.0.4/ext/ming/ming.c:134: structure has no member named `ce'
/home/admin/php-5.0.4/ext/ming/ming.c:136: structure has no member named `ce'
/home/admin/php-5.0.4/ext/ming/ming.c:138: structure has no member named `ce'
/home/admin/php-5.0.4/ext/ming/ming.c:140: structure has no member named `ce'
/home/admin/php-5.0.4/ext/ming/ming.c:142: structure has no member named `ce'
/home/admin/php-5.0.4/ext/ming/ming.c:144: structure has no member named `ce'
/home/admin/php-5.0.4/ext/ming/ming.c:146: structure has no member named `ce'
/home/admin/php-5.0.4/ext/ming/ming.c:148: structure has no member named `ce'
/home/admin/php-5.0.4/ext/ming/ming.c: At top level:
/home/admin/php-5.0.4/ext/ming/ming.c:341: warning: `getBitmap' was declared implicitly `extern' and later `static'
/home/admin/php-5.0.4/ext/ming/ming.c:149: warning: previous declaration of `getBitmap'
/home/admin/php-5.0.4/ext/ming/ming.c:341: warning: type mismatch with previous implicit declaration
/home/admin/php-5.0.4/ext/ming/ming.c:149: warning: previous implicit declaration of `getBitmap'
/home/admin/php-5.0.4/ext/ming/ming.c:341: warning: `getBitmap' was previously implicitly declared to return `int'
/home/admin/php-5.0.4/ext/ming/ming.c:413: warning: `getButton' was declared implicitly `extern' and later `static'
/home/admin/php-5.0.4/ext/ming/ming.c:143: warning: previous declaration of `getButton'
/home/admin/php-5.0.4/ext/ming/ming.c:413: warning: type mismatch with previous implicit declaration
/home/admin/php-5.0.4/ext/ming/ming.c:143: warning: previous implicit declaration of `getButton'
/home/admin/php-5.0.4/ext/ming/ming.c:413: warning: `getButton' was previously implicitly declared to return `int'
/home/admin/php-5.0.4/ext/ming/ming.c:1108: warning: type mismatch with previous implicit declaration
/home/admin/php-5.0.4/ext/ming/ming.c:137: warning: previous implicit declaration of `getFont'
/home/admin/php-5.0.4/ext/ming/ming.c:1108: warning: `getFont' was previously implicitly declared to return `int'
/home/admin/php-5.0.4/ext/ming/ming.c: In function `zif_swffont_init':
/home/admin/php-5.0.4/ext/ming/ming.c:1135: warning: assignment makes pointer from integer without a cast
/home/admin/php-5.0.4/ext/ming/ming.c: At top level:
/home/admin/php-5.0.4/ext/ming/ming.c:1324: warning: `getMorph' was declared implicitly `extern' and later `static'
/home/admin/php-5.0.4/ext/ming/ming.c:145: warning: previous declaration of `getMorph'
/home/admin/php-5.0.4/ext/ming/ming.c:1324: warning: type mismatch with previous implicit declaration
/home/admin/php-5.0.4/ext/ming/ming.c:145: warning: previous implicit declaration of `getMorph'
/home/admin/php-5.0.4/ext/ming/ming.c:1324: warning: `getMorph' was previously implicitly declared to return `int'
/home/admin/php-5.0.4/ext/ming/ming.c: In function `zif_swfmovie_add':
/home/admin/php-5.0.4/ext/ming/ming.c:1469: structure has no member named `ce'
/home/admin/php-5.0.4/ext/ming/ming.c: In function `zif_swfmovie_save':
/home/admin/php-5.0.4/ext/ming/ming.c:1567: warning: assignment makes pointer from integer without a cast
/home/admin/php-5.0.4/ext/ming/ming.c: At top level:
/home/admin/php-5.0.4/ext/ming/ming.c:1722: warning: `getShape' was declared implicitly `extern' and later `static'
/home/admin/php-5.0.4/ext/ming/ming.c:135: warning: previous declaration of `getShape'
/home/admin/php-5.0.4/ext/ming/ming.c:1722: warning: type mismatch with previous implicit declaration
/home/admin/php-5.0.4/ext/ming/ming.c:135: warning: previous implicit declaration of `getShape'
/home/admin/php-5.0.4/ext/ming/ming.c:1722: warning: `getShape' was previously implicitly declared to return `int'
/home/admin/php-5.0.4/ext/ming/ming.c: In function `zif_swfshape_addfill':
/home/admin/php-5.0.4/ext/ming/ming.c:1813: structure has no member named `ce'
/home/admin/php-5.0.4/ext/ming/ming.c:1821: structure has no member named `ce'
/home/admin/php-5.0.4/ext/ming/ming.c: At top level:
/home/admin/php-5.0.4/ext/ming/ming.c:2299: warning: type mismatch with previous implicit declaration
/home/admin/php-5.0.4/ext/ming/ming.c:147: warning: previous implicit declaration of `getSprite'
/home/admin/php-5.0.4/ext/ming/ming.c:2299: warning: `getSprite' was previously implicitly declared to return `int'
/home/admin/php-5.0.4/ext/ming/ming.c: In function `zif_swfsprite_add':
/home/admin/php-5.0.4/ext/ming/ming.c:2325: structure has no member named `ce'
/home/admin/php-5.0.4/ext/ming/ming.c: At top level:
/home/admin/php-5.0.4/ext/ming/ming.c:2443: warning: type mismatch with previous implicit declaration
/home/admin/php-5.0.4/ext/ming/ming.c:139: warning: previous implicit declaration of `getText'
/home/admin/php-5.0.4/ext/ming/ming.c:2443: warning: `getText' was previously implicitly declared to return `int'
/home/admin/php-5.0.4/ext/ming/ming.c:2689: warning: `getTextField' was declared implicitly `extern' and later `static'
/home/admin/php-5.0.4/ext/ming/ming.c:141: warning: previous declaration of `getTextField'
/home/admin/php-5.0.4/ext/ming/ming.c:2689: warning: type mismatch with previous implicit declaration
/home/admin/php-5.0.4/ext/ming/ming.c:141: warning: previous implicit declaration of `getTextField'
/home/admin/php-5.0.4/ext/ming/ming.c:2689: warning: `getTextField' was previously implicitly declared to return `int'
/home/admin/php-5.0.4/ext/ming/ming.c:2927: warning: initialization makes integer from pointer without a cast
/home/admin/php-5.0.4/ext/ming/ming.c:2927: initializer element is not computable at load time
/home/admin/php-5.0.4/ext/ming/ming.c:2927: (near initialization for `ming_module_entry.size')
/home/admin/php-5.0.4/ext/ming/ming.c:2928: warning: initialization makes integer from pointer without a cast
/home/admin/php-5.0.4/ext/ming/ming.c:2929: warning: initialization makes integer from pointer without a cast
/home/admin/php-5.0.4/ext/ming/ming.c:2929: initializer element is not computable at load time
/home/admin/php-5.0.4/ext/ming/ming.c:2929: (near initialization for `ming_module_entry.zend_debug')
/home/admin/php-5.0.4/ext/ming/ming.c:2930: warning: initialization makes integer from pointer without a cast
/home/admin/php-5.0.4/ext/ming/ming.c:2933: warning: initialization from incompatible pointer type

Any ideas on how to fix this? I'm really lost at the moment.
posted by Stynxno to Computers & Internet (4 answers total)
 
Not to be dumb... but do you have the ming library installed, and is it showing up in the ldconfig cache?
posted by mosch at 1:13 PM on August 11, 2005


mosch: yep. it's there.
posted by Stynxno at 1:32 PM on August 11, 2005


Being the lazy sort myself, I would just look for someone who has already packaged Ming, edit my sources.list, and install their package.

Dotdeb.org is a good source. So, add this to your /etc/apt/sources.list:

deb http://packages.dotdeb.org ./

then:

# apt-get update
# apt-get install php5-ming

Betcha this works with no further configuration needed. All kneel before the power of Debian.
posted by jellicle at 2:37 PM on August 11, 2005


jellicle is right. You can also try this source for a debian packaged libming.

The first rule of debian is always do things with packages. If you start trying to compile things by hand and don't know what you're doing, you'll end of with a half-broken system. If you do have the need to build something from source, go with the grain instead of against it and use the source .deb package.
posted by Rhomboid at 7:37 PM on August 11, 2005


« Older How can I stop a dog from digg...   |  What currency is the best deal... Newer »
This thread is closed to new comments.