I recently installed mod_wsgi on OpenSolaris 2008.11 for the Sun- supplied Apache 2.2 and didn't have to jump through any hoops.
My quick summary would be: Install Apache 2.2 if it isn't there already (check existence of /usr/ apache2/2.2/): $ pfexec pkg install SUNWapch22 Install Sun Studio Express with: $ pfexec pkg install sunstudioexpress (note that it is larger than normal packages, about 660MB). It installs /usr/bin/cc so I had to actually make my own symlink for / opt/SUNWspro/bin/cc $ pfexec ln -s /usr/bin/cc /opt/SUNWspro/bin/cc Then build mod_wsgi. Note that I didn't bother installing amp or amp-dev. If you really don't want Sun Studio for some reason (besides the sizeable download, I see no reason not to have it) then I'd suggest uninstalling SUNWapch22 and build Apache yourself using gcc. Hope that helps. Cheers, Chris Miles On 04/03/2009, at 6:22 PM, BraneSKS wrote: > > I ran into similar problems on my OpenSolaris install. If you > installed everything else through PKG then what I would do is: > > 1. Uninstall Apache and everything else associated with it. > 2. Uninstall Sun Studio 12 > > 3. Reinstall amp-dev > 4. Reinstall Sun Studio 12 > > 5. Try to compile again. > > Link to what I did: > http://branesks.blogspot.com/2009/01/installing-modwsgi-on-opensolaris.html > > > On Mar 3, 2009, at 11:56 PM, Graham Dumpleton wrote: > >> >> 2009/3/4 michael <[email protected]>: >>> >>> Hello, >>> >>> r...@trantor mod_wsgi-2.3 $ /usr/bin/apxs -q CFLAGS >>> -xO3 -m32 -xchip=pentium -xspace -Xa -xildoff -xc99=all - >>> DSSL_EXPERIMENTAL -DSSL_ENGINE -xO4 >>> >>> I have also the gcc 3.4.3 in my path >>> r...@trantor mod_wsgi-2.3 $ gcc -v >>> Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/specs >>> Configured with: /builds2/sfwnv-gate/usr/src/cmd/gcc/gcc-3.4.3/ >>> configure --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu- >>> as -- >>> with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c+ >>> +,f77,objc --enable-shared >>> Thread model: posix >>> gcc version 3.4.3 (csl-sol210-3_4-20050802) >>> >>> r...@trantor mod_wsgi-2.3 $ /usr/bin/apxs -q CC >>> /opt/SUNWspro/bin/cc >>> >>> The apache ist installed by the packageing-system. It is my first >>> apache_module, that I will build... Can I overwrite the CC and >>> CFLAGS- >>> variables in the make-file? Then I can use the gnu compiler. >> >> If you truly don't have /opt/SUNWspro/bin/cc available, it isn't as >> simple as changing stuff in mod_wsgi Makefile. This is because all >> the >> compiler information specific to Sun C compiler is defined within >> apxs >> configuration. >> >> I have had to do it before, so can work, but necessary to copy apxs >> script as well as the directory where its configuration is. Then >> modify your apxs copy to point at your copy of the configuration. >> Then >> hack on the copy of the configuration to change it to use gcc and >> replace any Sun C specific compiler options with gcc equivalents. >> >> I have to run out the door right now, but when get a chance I'll try >> and explain the actual changes you need to make. >> >> Graham >> >>> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en -~----------~----~----~----~------~----~------~--~---
