You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Martin Sarachu <ma...@biol.unlp.edu.ar> on 2002/03/04 17:34:07 UTC
Library or symlink error
Hi,
I'm getting this strange error when trying to execute a program form a
perl script via Apache
> ld.so.1: wossname: fatal: libpng.so.2: open failed: No such file or directory
but when I execute wossname from command line it works ok. Also if I log
in as user nobody (the user Apache uses), wossname works fine. Any idea?
martin
--
Martin Sarachu
ICQ: 123797358
EMBnet Argentina: http://www.ar.embnet.org
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Library or symlink error
Posted by Owen Boyle <ob...@bourse.ch>.
Martin Sarachu wrote:
>
> Hi,
>
> I'm getting this strange error when trying to execute a program form a
> perl script via Apache
>
> > ld.so.1: wossname: fatal: libpng.so.2: open failed: No such file or directory
>
> but when I execute wossname from command line it works ok. Also if I log
> in as user nobody (the user Apache uses), wossname works fine. Any idea?
The shell which runs the CGI scripts doesn't inherit the user's
environment variables by default. Probably apache needs LD_LIBRARY_PATH
set. Do:
PassEnv LD_LIBRARY_PATH
to pass the value from the shell or;
SetEnv LD_LIBRARY_PATH /path/to/lib
to set it explicitly.
Rgds,
Owen Boyle.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org