I got an error like this while running my application with apache via mod_wsgi
in my macbook:
> Library not loaded: libmysqlclient.18.dylib
I know I can resolve this problem by setting DYLD_LIBRARY_PATH to where mysql
is installed and I did it in my .bash_profile.
But how can I do this in apache?
my apache's wsgi configuration invoked the following python file, which call
pyramid project and I tried to set environment variable in it. But it doesn't
seem to work as I expected.
> import os
>
> os.environ['PYTHON_EGG_CACHE'] = '/tmp'
> os.environ['DYLD_LIBRARY_PATH'] = '/usr/local/mysql/lib'
>
> from pyramid.paster import get_app
>
> application = \
> get_app('/Users/myname/Project/production.ini', 'main')
--
Chung, Ha Nyung
<minorblend (at) gmail (dot) com>
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en.