You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Mike Steinert <mi...@yahoo.com> on 2002/05/09 01:43:11 UTC

CGI scripts can't find libraries

I'm running Apache/1.3 on Solaris 2.5

I don't have root access, so everything is installed
under my home directory.

I'm trying to access a MySQL database using Perl
and/or Python. The problem occurs when I try to 'use'
or 'import' (respectively) the MySQL modules needed by
Perl/Python. The error_log shows that ld.so can't find
the *.so files.

Is there any way that I can configure Apache to tell
it to look in certain directories for libraries when
running a CGI (like LD_LIBRARY_PATH)?

Thanks,
--Mike

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Mother's Day is May 12th!
http://shopping.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: CGI scripts can't find libraries

Posted by Andrew Hawkes <ah...@unicon.net>.
In httpd.conf,

SetEnv LD_LIBRARY_PATH /whatever/it/is

You need to have mod_env, I believe (which should be there by default).

-Andy


On Wed, 8 May 2002 16:43:11 -0700 (PDT)
Mike Steinert <mi...@yahoo.com> wrote:

> I'm running Apache/1.3 on Solaris 2.5
> 
> I don't have root access, so everything is installed
> under my home directory.
> 
> I'm trying to access a MySQL database using Perl
> and/or Python. The problem occurs when I try to 'use'
> or 'import' (respectively) the MySQL modules needed by
> Perl/Python. The error_log shows that ld.so can't find
> the *.so files.
> 
> Is there any way that I can configure Apache to tell
> it to look in certain directories for libraries when
> running a CGI (like LD_LIBRARY_PATH)?
> 
> Thanks,
> --Mike
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Shopping - Mother's Day is May 12th!
> http://shopping.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org