ScaleScaleScaleScale

Tips / Nginx


How to install Ming library on CentOS

One of my customers needed to install the ming library on CentOS, and I had no idea about what the **** Ming was… In fact was the first time someone asked for it. Ming is a library used to generate Flash files (.swf), written in C, it also include utilities for working with .swf files and has wrappers that can allow you to integrate this on almost any popular programming languages like C++, PHP, Python, Ruby, and Perl.

Here is a fast how to install Ming on CentOS.

Install system requirements

yum install bison flex
mkdir /root/ming
cd /root/ming

Download the lastest version from http://sourceforge.net/projects/ming/files/Releases/, in my case I used this version:

wget http://downloads.sourceforge.net/ming/ming-0.4.0.beta5.tar.gz?download
tar xzf ming-0.4.0.beta3.tar.gz
cd ming*
./configure --enable-php
make
make install

The library was installed at /usr/lib64/php/modules/ming.so

So, the next step to add ming to php is this:

Edit php.ini:

nano -w /etc/php.ini

Add this line at the end of the file:

extension=ming.so

Run php -i to see if Ming is loading from PHP:

[root@app2.myserver.com:~]php -i | grep ming -i
Ming SWF output library => enabled

Restart your webserver to apply the changes:

service nginx restart

And you are done.

Popular search terms:

  • instal ming swf library
  • centos libming
  • install php_ming on centos
  • libming centos 7
profile

Esteban Borges

Linux Geek, Webperf Addict, Nginx Fan. CTO @Infranetworking