~ubuntu-branches/ubuntu/lucid/ming/lucid

« back to all changes in this revision

Viewing changes to INSTALL

  • Committer: Bazaar Package Importer
  • Author(s): Ilya Barygin
  • Date: 2010-02-11 10:57:41 UTC
  • mfrom: (2.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100211105741-lzpmxc0703c4bo1w
Tags: 1:0.4.3-1ubuntu1
* Merge from Debian unstable (LP: #192664), remaining changes:
  - Python 2.6 transition:
    - debian/rules:
      + Include /usr/share/python/python.mk.
      + Add py_setup_install_args macro to setup.py install.
      + Installed modules differ between python versions and can't be shared,
        use DH_PYCENTRAL=nomove.
    - Remove unnecessary debian/python-ming.{dirs,files}, Python 2.3 is not
      supported anymore.
* debian/control: separate dependencies by commas.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
Installing Ming
3
3
 
4
 
Last updated 9th August 2005.
 
4
Last updated 14 January 2008.
5
5
 
6
6
  Unpack the Ming source tarball and go into the uncompressed
7
7
  directory.
8
8
 
9
 
    $ gunzip ming-0.3beta1.tar.gz
10
 
    $ tar xfp ming-0.3beta1.tar
 
9
    $ gunzip ming-0.4.0-beta.tar.gz
 
10
    $ tar xfp ming-0.4.0-beta.tar
11
11
    $ cd ming
12
12
 
13
13
 
18
18
 
19
19
  The preferred method is to build Ming as a PHP module (.so file):
20
20
 
21
 
   1. Compile the main Ming library
22
 
 
23
 
      $ ./configure
24
 
      $ make
25
 
 
26
 
   2. Compile the PHP module
27
 
 
28
 
      $ cd php_ext
29
 
      $ make
30
 
 
31
 
   3. Install the PHP module
 
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)
32
27
 
33
28
      $ make install
34
29
 
35
 
   4. Configure PHP to load Ming.  You need to adjust your
 
30
   3. Configure PHP to load Ming.  You need to adjust your
36
31
      php.ini file, normally by adding:
37
32
 
38
 
      extension=php_ming.so
39
 
 
40
 
      to the extension section, and also making sure the
41
 
      "extension_dir" parameter in the php.ini file is pointing
42
 
      to the correct directory.  A common default of the php.ini
43
 
      file is to be pointing to "./", which may need adjusting.
44
 
 
 
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.
45
40
 
46
41
   The alternative way is to build Ming into the PHP source:
47
42
 
80
75
  C/C++
81
76
  *****
82
77
 
83
 
  1. Compile the library
 
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
84
83
      $ ./configure
85
84
      $ make
86
85
 
87
 
  2. Install (you usually need to be root to do this)
 
86
  3. Install (you usually need to be root to do this)
88
87
      $ make install
89
88
 
90
89
  By default it puts headers into /usr/local/include and libraries
100
99
 
101
100
  Check the web site:
102
101
 
103
 
    http://ming.sf.net
 
102
    http://www.libming.org
104
103