1 2Installing Ming 3 4Last updated 14 January 2008. 5 6 Unpack the Ming source tarball and go into the uncompressed 7 directory. 8 9 $ gunzip ming-0.4.0-beta.tar.gz 10 $ tar xfp ming-0.4.0-beta.tar 11 $ cd ming 12 13 14 PHP 15 *** 16 17 (should work with PHP-4.0.2 and higher) 18 19 The preferred method is to build Ming as a PHP module (.so file): 20 21 1. Compile the main Ming library with its php extension 22 23 $ ./configure --enable-php 24 $ make 25 26 2. Install everything (includes install of the PHP module) 27 28 $ make install 29 30 3. Configure PHP to load Ming. You need to adjust your 31 php.ini file, normally by adding: 32 33 extension=ming.so 34 35 The ming.so file should be in `php-config --extension-dir` 36 which is taken care of by the 'make install' step. 37 38 Note that apache will need a reload when changing the php.ini 39 used by it's php module. 40 41 The alternative way is to build Ming into the PHP source: 42 43 $ mkdir <phpdir>/ext/ming 44 $ cp php_ext/* <phpdir>/ext/ming 45 $ cd <phpdir> 46 $ ./buildconf 47 $ ./configure --with-ming=<mingdir> <other config options> 48 49 Then build and install php as usual, then restart your web server. 50 51 52 PYTHON 53 ****** 54 55 (You may need python 1.5.2 or higher) 56 57 $ ./configure 58 $ make static 59 $ cd py_ext 60 $ make mingcmodule.so 61 62 Then fix the install path in the Makefile 63 64 Then install 65 66 $ make install 67 68 69 PERL 70 **** 71 72 Read the README file in the perl_ext subdirectory. 73 74 75 C/C++ 76 ***** 77 78 1. If you're using a development snapshot rather than a stable 79 release then, 80 $ sh autogen.sh 81 82 2. Compile the library 83 $ ./configure 84 $ make 85 86 3. Install (you usually need to be root to do this) 87 $ make install 88 89 By default it puts headers into /usr/local/include and libraries 90 into /usr/local/lib. Do ./configure --help to see how to set 91 an alternative location. 92 93 By the way, the c++_ext subdirectory contains information and a 94 test file, but there is no additional makefile or installation 95 required to use C++. 96 97 98USING MING: 99 100 Check the web site: 101 102 http://www.libming.org 103 104