Problems with installing mod_python in Linux

Source: Internet
Author: User

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


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.