[Centos] MOD_WSGI installation process and problem solving methods. Apxs:command not found or Sorry, Python Developer package does isn't appear to be installed.

Source: Internet
Author: User

Prerequisites: Centos System, Apache installed, Python installed.

1. First download mod_wsgi-3.5.tar.gz

: https://code.google.com/p/modwsgi/

2. Decompression: TAR-ZXVF mod_wsgi-3.5.tar.gz

3. Enter the extracted directory: CD mod_wsgi-3.5

4. Configuration:./configure

You may experience problems at this time: Apxs:command not found

Cause: Apache component Httpd-devel not installed

Workaround: Yum Install Httpd-devel

5. Compiling: Make

You may experience problems compiling failures at this time. View the first line of error, found: Sorry, Python Developer package does not appear to be installed.

Cause: Python component Python-devel not installed

Workaround: Yum Install Python-devel

6. Install: Make install

Now that the installation is complete, you can see the output at this point:

# make install/usr/sbin/apxs-i-S libexecdir=/usr/lib64/httpd/modules-n ' Mod_wsgi 'mod_wsgi.la/usr/lib64/httpd/build/instdso.sh sh_libtool= '/usr/lib64/apr-1/build/libtool ' mod_wsgi.la/usr/lib64/httpd/Modules/usr/lib64/apr-1/build/libtool--mode=install CP mod_wsgi.la/usr/lib64/httpd/modules/LIBTOOL:INSTALL:CP. Libs/mod_wsgi.so/usr/lib64/httpd/modules/MOD_WSGI.SOLIBTOOL:INSTALL:CP. Libs/mod_wsgi.lai/usr/lib64/httpd/modules/MOD_WSGI.LALIBTOOL:INSTALL:CP. Libs/mod_wsgi.a/usr/lib64/httpd/modules/Mod_wsgi.alibtool:install:chmod644/usr/lib64/httpd/modules/Mod_wsgi.alibtool:install:ranlib/usr/lib64/httpd/modules/Mod_wsgi.alibtool:finish:PATH= "/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/sbin" Ldconfig-n/usr/lib64/httpd/Modules----------------------------------------------------------------------Libraries has been installed in:/usr/lib64/httpd/modulesif ever happen to want to link against installed Librariesin a given directory, Libdir, you must either use Libtool, andspecify the full pathname of the library, or use the '-llibdir'Flag during linking and DoAt least one of the following:-Add Libdir to the ' Ld_library_path ' environment variableduring execution-Add Libdir to the ' Ld_run_path ' environment variableduring linking-Use the '-WL,-RPATH-WL,LIBDIR ' linker flag-have Your system administrator add Libdir to '/etc/ld.so.conf'See all operating system documentation about shared libraries forMore information, such as the LD (1) and ld.so (8) manual pages.----------------------------------------------------------------------chmod755/usr/lib64/httpd/modules/mod_wsgi.so

[Centos] MOD_WSGI installation process and problem solving methods. Apxs:command not found or Sorry, Python Developer package does isn't appear to be installed.

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.