Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (19.1k points)

I am trying to get mod_wsgi 3.3 to work. When I run make it is telling me that I am missing the Python developer package. How do I get and install the Python developer package?

The error I get is as follows:

mod_wsgi.c:135:20: error: Python.h: No such file or directory

mod_wsgi.c:138:2: error: #error Sorry, Python developer package does not appear to be installed.

mod_wsgi.c:142:2: error: #error Sorry, mod_wsgi requires at least Python 2.3.0 for Python 2.X.

mod_wsgi.c:150:2: error: #error Sorry, mod_wsgi requires that Python supporting thread.

mod_wsgi.c:153:21: error: compile.h: No such file or directory

mod_wsgi.c:154:18: error: node.h: No such file or directory

mod_wsgi.c:155:20: error: osdefs.h: No such file or directory

System (Amazon EC2 instance)

  • Apache 2.2.16 (Unix)
  • Amazon Linux(Red Hat 4.4.4-13) AMI Beta Version 2011.02
  • Python 2.6.6

1 Answer

0 votes
by (44.4k points)

Try this:

yum install python-devel 

If yum isn’t working try this:

apt-get install python-dev 

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer
asked Jul 15, 2019 in AWS by yuvraj (19.1k points)
0 votes
1 answer
0 votes
1 answer

Browse Categories

...