水曜日, 4月 15, 2009

Building JCC on Linux Platform

PyLuceneに使われているJCCのコンパイル

JCC is a Python extension written in Python and C++. It requires a Java Runtime Environment to operate as it uses Java's reflection APIs to do its work. It is built and installed via distutils or setuptools.
  1. Edit setup.py and review that values in the INCLUDES, CFLAGS,DEBUG_CFLAGS, LFLAGS and JAVAC are correct for your system. These values are also going to be compiled into JCC's config.py file and are going to be used by JCC when invoking distutils or setuptools to compile extensions it is generating code for.
  2. At the command line, enter:
    $ python setup.py build
    $ sudo python setup.py install




Installing PyLucene

For the Impatient Ones

  1. pushd jcc
  2. <edit setup.py to match your environment>
  3. python setup.py build
  4. sudo python setup.py install
  5. popd
  6. <edit Makefile to match your environment>
  7. make
  8. sudo make install
  9. make test (look for failures)

0 件のコメント: