Е хората питат за дистро
. Как да е. Проблема е че трябва да има доста модули ( реално само mod_python остана но не иска по никакъв начин да се компилира )
./configure --with-apxs=/opt/pware/bin/apxs --with-python=/opt/pware/bin/python \
>
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for ar... ar
checking for a BSD-compatible install... ./install-sh -c
checking whether make sets $(MAKE)... yes
checking for main in -lm... yes
checking for an ANSI C-conforming const... yes
checking your blood pressure... a bit high, but we can proceed
configure: checking whether apxs is available...
checking for --with-apxs... /opt/pware/bin/apxs executable, good
checking Apache version... 2.2.11
checking for Apache libexec directory... /opt/pware/modules
checking for Apache include directory... -I/opt/pware/include
checking for --with-python... /opt/pware/bin/python
checking Python version... 2.6
checking Python install prefix... /opt/pware
checking checking where python libraries are installed... /opt/pware/lib/python2.6
checking for Py_NewInterpreter in -lpython2.6... no
checking what libraries Python was linked with... /opt/pware/lib/python2.6/config/libpython2.6.a -L/opt/pware/lib -lpthread -ldb -ldl -lm
checking linker flags used to link Python...
checking where Python include files are... -I/opt/pware/include/python2.6
checking for --with-python-src... no
checking for --with-mutex-dir... no
Using MUTEX_DIR /tmp
checking for --with-max-locks... no
Using 8 MAX_LOCKS.
checking for --with-flex... no
checking for flex... /usr/bin/flex
found /usr/bin/flex, we'll use this. Use --with-flex to specify another.
checking flex version... 2.5.35. Good
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating Doc/Makefile
config.status: creating src/include/mod_python.h
config.status: creating test/Makefile
config.status: creating test/testconf.py
config.status: creating dist/setup.py
config.status: creating dist/Makefile
#
#make
......
.....
*** Warning: Linking the shared library mod_python.la against the
*** static library /opt/pware/lib/python2.6/config/libpython2.6.a is not portable!
ld: 0706-004 Cannot find or read export file: Modules/python.exp
ld:accessx(): No such file or directory
collect2: ld returned 255 exit status
apxs:Error: Command failed with rc=65536
.
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 2.
Stop.
#