Your comment on

Name: 

Notify email: 

Comment:

  
       

home :: Dokumente :: MacOSX :: Leopard :: ApacheModules

 | Page 1 of 3 total pages | Next

Montag, 21 April 2008


mod_wsgi on leopard

Tagged as: , ,

as all other modules for the standard apache installation on leopard the mod_wsgi module must be compiled as 64-bit module too.


Note that the newer versions of mod_wsgi 2.0c4 and above work out of the box. No need to patch anything. Thanks to Graham Dumpleton!

So the below instructions to patch the older versions are obsolete from now on, but still I leave them in place, as they may give hints for other purposes.


In order to do so, patch the installer:

downloaded mod_python:

wget http://modwsgi.googlecode.com/files/mod_wsgi-1.2.tar.gz

(or, if you are adventurous, like me)

wget http://modwsgi.googlecode.com/files/mod_wsgi-2.0c2.tar.gz

unstuff:

tar -xzf mod_wsgi-1.2.tar.gz
cd mod_wsgi-1.2

(or)

tar -xzf mod_wsgi-2.0c2.tar.gz
cd mod_wsgi2.0c2

configure:

./configure

now patch MakeFile:

  • Add -arch x86_64 -arch ppc -arch i386 to the beginning of the LDFLAGS line (no quotes, of course).
  • Add -arch x86_64 -arch ppc -arch i386 to the beginning of the CFLAGS line
  • Add -arch x86_64 -arch ppc -arch i386 to the beginning of the CPPFLAGS line

and now:

make && sudo make install

now edit your apache config file (sudo nano /etc/apache2/httpd.conf) in order to load mod_python add (or uncomment) the following line:

LoadModule wsgi_module libexec/apache2/mod_wsgi.so

You can check the architecture of your mod_wsgi module in the terminal with:

file /usr/libexec/apache2/mod_wsgi.so

It should return the following result:

/usr/libexec/apache2/mod_wsgi.so: Mach-O universal binary with 3 architectures
/usr/libexec/apache2/mod_wsgi.so (for architecture ppc7400):	Mach-O bundle ppc
/usr/libexec/apache2/mod_wsgi.so (for architecture i386):	Mach-O bundle i386
/usr/libexec/apache2/mod_wsgi.so (for architecture x86_64):	Mach-O 64-bit bundle x86_64

Comments:

Tuesday, 18.December 2007 04:42:45 Graham Dumpleton wrote:

Patches to makefiles for mod_wsgi and Leopard not required from 2.0c4 onwards. Ie,. will compile out of the box with mod_wsgi 2.0.

Add comment | /Dokumente/MacOSX/Leopard/ApacheModules | permanent link



Farbflash trac projects

Search

Tag cloud

Category
Show articles per page

RSS Feed

Links
  • 3DPI
    - Property Inspector to edit and explore all properties of a director #shockwave3d member. Without the 3DPI the whole 3-D stuff would be nearly undoable!
  • ULLALA
    Excellent examples and tutorials
  • DOUG
    Director online -- First place to look for Director related info
  • JAMES NEWTON
    another bunch of excellent demos and source code
  • MEKKA MEDIALIGHT LINGOWORKSHOP
    lots of excellent demos and source code from Luke Wigley
  • VALENTIN SCHMIDT
    lots of excellent xtras and source code. Home of the indispensable Shell Xtra!
  • XONKO
    Mark Hills site. Very good tutorials and other director and 3-D related stuff
  • INLUDO
    Barry Swans director demos and tutorials
  • Deans Director resources
    Dean Utians huge collection of resources and tutorials related to everything Director
  • THE HENDRIK DORGATHEN SITE
    not at all related to director, but one of my favorite graphic design art sites
  • SALINAS
    the site, of our local resistance against nuclear garbage (german)
  • TIMKID
    furniture for children (with some shockwave3d pieces)

Contact

Disclaimer

Donate
If one of the open source examples on this page helped you to get a paid job delivered, you might want to contribute and support my work by donating via PayPal...

Private
Login:
Passwort:

  
design and code by Alex da Franca