On 17 March 2010 06:07, jepr <[email protected]> wrote: > Yesterday, I emailed Graham (Dumpleton) about a problem I've been > having with matplotlib, django and mod_wsgi. He suggested that the > issue was that my Python installation was built using the 64 bit > GNU C/C++ compiler, but that my system only has runtime libraries for > the 32 bit GNU C/C++ compiler installed. I went back and checked it, > and discovered that I do, in fact, have the runtime libraries for the > 64 bit GNU C/C++ compiler installed. > > One oddity: My sysadmin has installed software in weird places > (because he is afraid of letting a user have any control over his or > her system). So, I am running my apache server in test mode as myself > (not root, not apache).
When you say 'test mode', what exactly do you mean? Do you mean you are just running it on non privileged port, but still using 'apachectl' to stop and start it, or did you really mean you are running it in one of Apache's test modes. In respect of the latter, do you mean you are running 'httpd' directly such as: httpd -X > I have been meticulous about setting my PATH > and LD_LIBRARY_PATH environment variables (e.g. /usr/lib64 as well / > home/install-gcc-4.4.2/usr/local/lib64 is on LD_LIBRARY_PATH). Where are you setting these though, in the environment of your person user account, or in the startup files of Apache? BTW, the PATH variable has no relevance to library search paths on UNIX like it does on Windows. > I am > wondering, however, if it is necessary to use mod_env to explicitly > set these paths in httpd.conf. Perhaps apache is not inheriting my > environment? Possibly not, but mod_env isn't the solution. For a standard ASF Apache installation, there is a file called 'envvars' located in same directory as 'httpd'. Any settings of LD_LIBRARY_PATH should go in there. Ensure you export the variables, it is treated as a shell script. > The full text of the error reads: > > [Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130] mod_wsgi > (pid=15075): Exception occurred processing WSGI script '/home/www/ > margins_profiler/margins_profiler.wsgi'. > ... > [Mon Mar 15 11:32:51 2010] [error] [client 172.18.42.130] > ImportError: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not > found (required by /home/Python-2.6.4/install/lib/python2.6/site- > packages/matplotlib/_path.so) > > Has anyone else run into a similar error? Any advice would be > welcome! What do you get when you run: echo $LD_LIBRARY_PATH ldd /home/Python-2.6.4/install/lib/python2.6/site-packages/matplotlib/_path.so unsetenv LD_LIBRARY_PATH ldd /home/Python-2.6.4/install/lib/python2.6/site-packages/matplotlib/_path.so Did you compile matplotlib yourself? Also provide: ldd mod_wsgi.so for the compiled mod_wsgi.so file you are using. Based on that I'll likely ask you to do ldd on parts of Python installation as well. 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.
