The solution to the unsuccessful problem of compiling MOD_WSGI on MAC os

Source: Internet
Author: User

Recently contacted with a bit of Django, it's really very efficient to do web development. It is very convenient to play in this machine, a command, and then in the browser 127.0.0.1 can see the page. But it is not possible to find the IP to others and access it from someone else's machine. The original is because there is not an important module installed MOD_WSGI, what is this module used to do? Is the bridging between Python and Apache, because Django is written in Python.
Then downloaded from GitHub mod_wsgi source code, follow the tutorial but compile failed, hint: fatal error: ' httpd.h ' No such file or directory.
According to the log at the prompt to compile the source code when the connection header file path is:/usr/include can not find this folder, the whole search also did not find out. It's so weird. Contacted the author, do not know why, but also said that my Mac is more wonderful.
Very hard to find because there is no command-line tool to install Xcode. After installation, this header file appears in the booking location.
Installing the Xcode command line tool must be installed from the terminal:

xcode-Select -Install

Entering the above code will pop up an installation dialog box Click OK and finish in a few minutes. You will find the/usr/include folder.
Re-compile it all over again.

The solution to the unsuccessful problem of compiling MOD_WSGI on MAC os

Related Article

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.