Install mod_python + Django on the server. The system environment is as follows:
- Ubuntu 10.04
- Python2.6.5
- Django 1.4.0
- Mod_python 3.3.1
- Apache 2.2.14
Question 1:
connobject.c: In function ‘_conn_read’:
connobject.c:142: error: request for member ‘next’ in something not a structure or union
apxs:Error: Command failed with rc=65536
.
make[1]: *** [mod_python.so] Error 1
make[1]: Leaving directory `/tmp/mod_python-3.3.1/src'
make: *** [do_dso] Error 2
DnsSlave:/tmp/mod_python-3.3.1# vim src/connobject.c
DnsSlave:/tmp/mod_python-3.3.1# make
make[1]: Entering directory `/tmp/mod_python-3.3.1/src'
Solution: Modify the src/connobject. c file in the source code.
-!(b == APR_BRIGADE_SENTINEL(b) ||
//replcae
+!(b == APR_BRIGADE_SENTINEL(bb) ||
Question 2:
ln: creating symbolic link XXXXXX : Operation not supported
This type of problem occurs mainly because some soft links should be established with LN during compilation, and these files are shared to Linux Through vmwarevm in windows, while this operation is common in Linux systems, it is not supported by windows. Therefore, an error is reported during compilation.
Solution: in Linux under VMWare, create the samba service, create a new Samba user and folder, and then access the folder in windows. In Linux, copy the shared directory to the samba directory you want to share. In this way, you can share the files you want. At this time, when compiling the code, it is OK because it is in the Linux system. Another method is to copy mod_python. ** .tar.gz CP to the system, such as the home directory, and then perform the installation operation.
Question 3:
/Usr/bin/install-c-d/usr/local/Apache/modules
/Usr/bin/install-C src/mod_python.so/usr/local/Apache/modules
/Usr/bin/install: stat 'src/mod_python.so ': the file or directory does not exist.
Solution: Link to the latest libtool,
mv /usr/local/apache/build/libtool /usr/local/apache/build/libtool.old
ln -s /usr/bin/libtool /usr/local/apache/build/libtool