インストール結果とエラー

ImagingLibrary?インストール

build結果

# /usr/local/python/bin/python2.5 setup.py build
--------------------------------------------------------------------
PIL 1.1.6 BUILD SUMMARY
--------------------------------------------------------------------
version       1.1.6
platform      linux2 2.5 (r25:51908, Jun 16 2008, 13:58:39)
              [GCC 3.4.6 20060404 (Red Hat 3.4.6-8)]
--------------------------------------------------------------------
*** TKINTER support not available
--- JPEG support ok
--- ZLIB (PNG/ZIP) support ok
--- FREETYPE2 support ok

*** Warning: zlib 1.2.1.2 may contain a security vulnerability.
*** Consider upgrading to zlib 1.2.3 or newer.
*** See: http://www.kb.cert.org/vuls/id/238678
         http://www.kb.cert.org/vuls/id/680620
         http://www.gzip.org/zlib/advisory-2002-03-11.txt

--------------------------------------------------------------------
To add a missing option, make sure you have the required
library, and set the corresponding ROOT variable in the
setup.py script.

To check the build, run the selftest.py script.
running build_scripts
creating build/scripts-2.5
copying and adjusting Scripts/pilconvert.py -> build/scripts-2.5
copying and adjusting Scripts/pildriver.py -> build/scripts-2.5
copying and adjusting Scripts/pilfile.py -> build/scripts-2.5
copying Scripts/pilfont.py -> build/scripts-2.5
copying and adjusting Scripts/pilprint.py -> build/scripts-2.5
changing mode of build/scripts-2.5/pilconvert.py from 644 to 755
changing mode of build/scripts-2.5/pildriver.py from 644 to 755
changing mode of build/scripts-2.5/pilfile.py from 644 to 755
changing mode of build/scripts-2.5/pilfont.py from 664 to 775
changing mode of build/scripts-2.5/pilprint.py from 644 to 755


mod_wsgiインストール

make結果

# make
usr/sbin/apxs -c -I/usr/local/python/include/python2.5 -DNDEBUG   mod_wsgi.c -L/usr/local/python/lib/python2.5/config -lpython2.5 -lpthread -ldl  -lutil
/bin/sh /usr/lib/apr/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apr-0 -I/usr/include/httpd -I/usr/local/python/include/python2.5 -DNDEBUG  -c -o mod_wsgi.lo mod_wsgi.c && touch mod_wsgi.slo
In file included from /usr/local/python/include/python2.5/Python.h:8,
                 from mod_wsgi.c:113:
/usr/local/python/include/python2.5/pyconfig.h:932:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/include/apr-0/apr.h:149,
                 from /usr/include/httpd/ap_config.h:19,
                 from /usr/include/httpd/httpd.h:29,
                from mod_wsgi.c:34:
/usr/include/features.h:150:1: warning: this is the location of the previous definition
/bin/sh /usr/lib/apr/build/libtool --silent --mode=link gcc -o mod_wsgi.la -I/usr/local/python/include/python2.5 -DNDEBUG  -rpath /usr/lib/httpd/modules -module -avoid-version    mod_wsgi.lo -L/usr/local/python/lib/python2.5/config -lpython2.5 -lpthread -ldl -lutil

make install結果

# make install
/usr/sbin/apxs -i -S LIBEXECDIR=/usr/lib/httpd/modules -n 'mod_wsgi' mod_wsgi.la
/usr/lib/httpd/build/instdso.sh SH_LIBTOOL='/bin/sh /usr/lib/apr/build/libtool' mod_wsgi.la /usr/lib/httpd/modules
/bin/sh /usr/lib/apr/build/libtool --mode=install cp mod_wsgi.la /usr/lib/httpd/modules/
cp .libs/mod_wsgi.so /usr/lib/httpd/modules/mod_wsgi.so
cp .libs/mod_wsgi.lai /usr/lib/httpd/modules/mod_wsgi.la
cp .libs/mod_wsgi.a /usr/lib/httpd/modules/mod_wsgi.a
ranlib /usr/lib/httpd/modules/mod_wsgi.a
chmod 644 /usr/lib/httpd/modules/mod_wsgi.a
PATH="$PATH:/sbin" ldconfig -n /usr/lib/httpd/modules
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/lib/httpd/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
chmod 755 /usr/lib/httpd/modules/mod_wsgi.so


mod_wsgiインストール時のエラー

mod_wsgiインストール時のエラー

# make
/usr/sbin/apxs -c   mod_wsgi.c -Wl,-F -framework
/bin/sh /usr/lib/apr/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE         -pthread -I/usr/include/apr-0 -I/usr/include/httpd  -c -o mod_wsgi.lo mod_wsgi.c && touch mod_wsgi.slo
mod_wsgi.c:113:20: Python.h: No such file or directory
mod_wsgi.c:114:21: compile.h: No such file or directory
mod_wsgi.c:115:18: node.h: No such file or directory
mod_wsgi.c:116:20: osdefs.h: No such file or directory
mod_wsgi.c:119:2: #error Sorry, mod_wsgi requires at least Python 2.3.0.
mod_wsgi.c:123:2: #error Sorry, mod_wsgi requires that Python supporting thread.
mod_wsgi.c:140: error: syntax error before "Auth_Type"
mod_wsgi.c:140: warning: data definition has no type or storage class
mod_wsgi.c:1008: error: syntax error before "Dispatch_Type"
mod_wsgi.c:1008: warning: data definition has no type or storage class
mod_wsgi.c:1011: error: syntax error before "PyObject_HEAD"
mod_wsgi.c:1011: warning: no semicolon at end of struct or union
mod_wsgi.c:1016: error: syntax error before '}' token
mod_wsgi.c:1016: warning: data definition has no type or storage class
mod_wsgi.c:1018: error: syntax error before "Log_Type"
mod_wsgi.c:1018: warning: data definition has no type or storage class
mod_wsgi.c:1020: error: syntax error before '*' token
mod_wsgi.c: In function `newLogObject':
mod_wsgi.c:1022: error: `self' undeclared (first use in this function)
mod_wsgi.c:1022: error: (Each undeclared identifier is reported only once
mod_wsgi.c:1022: error: for each function it appears in.)
mod_wsgi.c: At top level:
mod_wsgi.c:1036: error: syntax error before '*' token
mod_wsgi.c: In function `Log_dealloc':
mod_wsgi.c:1038: error: `self' undeclared (first use in this function)
mod_wsgi.c:1042: error: `Py_BEGIN_ALLOW_THREADS' undeclared (first use in this function)
mod_wsgi.c:1042: error: syntax error before "ap_log_rerror"
mod_wsgi.c:1045: error: `Py_END_ALLOW_THREADS' undeclared (first use in this function)
mod_wsgi.c:1048: error: syntax error before "ap_log_error"
mod_wsgi.c: At top level:
mod_wsgi.c:1060: error: syntax error before '*' token
mod_wsgi.c:1060: error: syntax error before '*' token
mod_wsgi.c: In function `Log_flush':
mod_wsgi.c:1062: error: `self' undeclared (first use in this function)
mod_wsgi.c:1063: error: `PyExc_RuntimeError' undeclared (first use in this function)
mod_wsgi.c:1067: error: `args' undeclared (first use in this function)

解決策

pythonにパスが通っているか確認


easy_installを使ってパッケージをインストール

MySQL_Python

# /usr/local/python/bin/easy_install-2.5 -U -Z MySQL_Python
Searching for MySQL-Python
Reading http://pypi.python.org/simple/MySQL_Python/
Reading http://pypi.python.org/simple/MySQL-Python/
Couldn't find index page for 'MySQL_Python' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
Reading http://pypi.python.org/simple/MySQL-python/
Reading http://sourceforge.net/projects/mysql-python
Reading http://sourceforge.net/projects/mysql-python/
Best match: MySQL-python 1.2.2
Downloading http://internap.dl.sourceforge.net/sourceforge/mysql-python/MySQL-python-1.2.2.tar.gz
Processing MySQL-python-1.2.2.tar.gz
Running MySQL-python-1.2.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-sO5jPv/MySQL-python-1.2.2/egg-dist-tmp-OQRVv-
zip_safe flag not set; analyzing archive contents...
Adding MySQL-python 1.2.2 to easy-install.pth file

Installed /usr/local/python/lib/python2.5/site-packages/MySQL_python-1.2.2-py2.5-linux-i686.egg
Processing dependencies for MySQL-Python
Finished processing dependencies for MySQL-Python

ipython

# /usr/local/python/bin/easy_install-2.5 -U -Z ipython
Searching for ipython
Reading http://pypi.python.org/simple/ipython/
Reading http://ipython.scipy.org
Reading http://ipython.scipy.org/dist
Best match: ipython 0.8.4
Downloading http://ipython.scipy.org/dist/ipython-0.8.4-py2.5.egg
Processing ipython-0.8.4-py2.5.egg
creating /usr/local/python/lib/python2.5/site-packages/ipython-0.8.4-py2.5.egg
Extracting ipython-0.8.4-py2.5.egg to /usr/local/python/lib/python2.5/site-packages
Adding ipython 0.8.4 to easy-install.pth file
Installing ipython script to /usr/local/python/bin
Installing pycolor script to /usr/local/python/bin

Installed /usr/local/python/lib/python2.5/site-packages/ipython-0.8.4-py2.5.egg
Processing dependencies for ipython
Finished processing dependencies for ipython

PyGreSQL

# /usr/local/python/bin/easy_install-2.5 -U -Z PyGreSQL
Searching for PyGreSQL
Reading http://pypi.python.org/simple/PyGreSQL/
Reading http://www.pygresql.org
Reading ftp://ftp.pygresql.org/pub/distrib/
Best match: PyGreSQL 3.8.1
Downloading http://pypi.python.org/packages/source/P/PyGreSQL/PyGreSQL-3.8.1.tgz#md5=5575979dac93c9c5795d7693a8f91c86
Processing PyGreSQL-3.8.1.tgz
Running PyGreSQL-3.8.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-_UL3wk/PyGreSQL-3.8.1/egg-dist-tmp-93fMsb
zip_safe flag not set; analyzing archive contents...
Adding PyGreSQL 3.8.1 to easy-install.pth file

Installed /usr/local/python/lib/python2.5/site-packages/PyGreSQL-3.8.1-py2.5-linux-i686.egg
Processing dependencies for PyGreSQL
Finished processing dependencies for PyGreSQL

yolk

# /usr/local/python/bin/easy_install-2.5 -U -Z yolk
Searching for yolk
Reading http://pypi.python.org/simple/yolk/
Reading http://tools.assembla.com/yolk/
Best match: yolk 0.3.0
Downloading http://pypi.python.org/packages/2.5/y/yolk/yolk-0.3.0-py2.5.egg#md5=d0b99ab1cf1afb58bf745135674e7201
Processing yolk-0.3.0-py2.5.egg
creating /usr/local/python/lib/python2.5/site-packages/yolk-0.3.0-py2.5.egg
Extracting yolk-0.3.0-py2.5.egg to /usr/local/python/lib/python2.5/site-packages
Adding yolk 0.3.0 to easy-install.pth file
Installing yolk script to /usr/local/python/bin

Installed /usr/local/python/lib/python2.5/site-packages/yolk-0.3.0-py2.5.egg
Processing dependencies for yolk
Finished processing dependencies for yolk

psycopg2

# /usr/local/python/bin/easy_install-2.5 -U -Z psycopg2
Searching for psycopg2
Reading http://pypi.python.org/simple/psycopg2/
Reading http://initd.org/projects/psycopg2
Reading http://initd.org/pub/software/psycopg/
Best match: psycopg2 2.0.7
Downloading http://initd.org/pub/software/psycopg/psycopg2-2.0.7.tar.gz
Processing psycopg2-2.0.7.tar.gz
Running psycopg2-2.0.7/setup.py -q bdist_egg --dist-dir /tmp/easy_install-3Zx5DT/psycopg2-2.0.7/egg-dist-tmp-nfKbbR
warning: no files found matching '*.html' under directory 'doc'
/usr/local/python/include/python2.5/datetime.h:186: warning: 'PyDateTimeAPI' defined but not used
psycopg/typecast.c:37: warning: 'skip_until_space' defined but not used
/usr/local/python/include/python2.5/datetime.h:186: warning: 'PyDateTimeAPI' defined but not used
/usr/local/python/include/python2.5/datetime.h:186: warning: 'PyDateTimeAPI' defined but not used
zip_safe flag not set; analyzing archive contents...
Adding psycopg2 2.0.7 to easy-install.pth file

Installed /usr/local/python/lib/python2.5/site-packages/psycopg2-2.0.7-py2.5-linux-i686.egg
Processing dependencies for psycopg2
Finished processing dependencies for psycopg2

lxml

# /usr/local/python/bin/easy_install-2.5 -UZ lxml==1.3.6
Searching for lxml==1.3.6
Reading http://pypi.python.org/simple/lxml/
Reading http://codespeak.net/lxml
Best match: lxml 1.3.6
Downloading http://codespeak.net/lxml/lxml-1.3.6.tgz
Processing lxml-1.3.6.tgz
Running lxml-1.3.6/setup.py -q bdist_egg --dist-dir /tmp/easy_install-RRNgMe/lxml-1.3.6/egg-dist-tmp-fK1Ict
Building lxml version 1.3.6
warning: no previously-included files found matching 'doc/pyrex.txt'
warning: no previously-included files found matching 'src/lxml/etree.pxi'
Adding lxml 1.3.6 to easy-install.pth file

Installed /usr/local/python/lib/python2.5/site-packages/lxml-1.3.6-py2.5-linux-i686.egg
Processing dependencies for lxml==1.3.6
Finished processing dependencies for lxml==1.3.6


lxmlインストールでエラーが起きた場合

確認

# yum list installed | grep libxml2
libxml2.i386                             2.6.16-6               installed
libxml2-devel.i386                       2.6.16-6               installed
libxml2-python.i386                      2.6.16-6               installed
# yum list installed | grep libxslt
libxslt.i386                             1.1.11-1               installed

足りないものをインストール

# yum install libxslt-devel


PythonImagingLibrary?インストールでエラーが起きた場合

確認

# yum list installed | grep libjpeg
libjpeg.i386                             6b-33                  installed
libjpeg-devel.i386                       6b-33                  installed
# yum list installed | grep libpng
libpng.i386                              2:1.2.7-1.el4.2        installed
libpng-devel.i386                        2:1.2.7-1.el4.2        installed
# yum list installed | grep zlib
zlib.i386                                1.2.1.2-1.2            installed
zlib-devel.i386                          1.2.1.2-1.2            installed

足りないものをインストール

# yum install freetype-devel

インストール(freetype2を以下の方法でインストール)

# yum install freetype*


Comment



Counter: 6924, today: 1, yesterday: 3

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2013-09-24 (火) 14:56:29 (1519d)