[mapserver-users] php_mapscript.so not found
Pushkar Pradhan
pushkar at ERC.MsState.Edu
Mon Mar 4 16:25:55 PST 2002
Daniel,
I tried pointing extensions_dir to the locn. where php_mapscript.so is
located, but didn't work, I even tried putting the .so file in various
different places.
Warning: Unable to load dynamic library
'/rstc/user1/erc/pushkar/gis/php_mapscript.so' - ld.so.1:
/rstc/user1/erc/pushkar/apache_1.3.22/bin/httpd: fatal: relocation error:
file /rstc/user1/erc/pushkar/gis/php_mapscript.so: symbol main: referenced
symbol not found in /rstc/user1/erc/pushkar/gis/hello.php on line 20
I think this problem seems to be with apache not finding .so,
Could this be a problem with my LD_LIBRARY_PATH?
Thanks,
>
Pushkar Pradhan wrote: > > > >
Hi, > > I compiled php_map***.so and placed it under the lib dir. of php.
> > I've enabled dl in my .ini file and the extension_dir = ./
>
>
> Setting 'extension_dir = ./' means that PHP should look for
> php_mapscript.so in the directory where your php script lives.
>
> If you placed php_mapscript.so in some lib dir (e.g. /usr/lib/php4) then
> you should set extension_dir to point to that location:
>
> extension_dir = /usr/lib/php4/
>
>
> Daniel
>
>
> > I've compiled php as a dynamic module, I am running apache 1.3.22 , php
> > 4.0.6, mapserver 3.5 on sun solaris.
> > I also made user I've the path from my hello.php (which is trying to load
> > the module) to the .so r-x for public. (this is suggested on MS website)
> > Yet I get the foll. error:
> > Warning: Unable to load dynamic library './php_mapscript.so' - ld.so.1:
> > /rstc/user1/erc/pushkar/apache_1.3.22/bin/httpd: fatal:
> > ./php_mapscript.so: open failed: No such file or directory in
> > /rstc/user1/erc/pushkar/gis/hello.php on line 20
> >
> > I have done everything from restarting apache to opening a new browser.
> > On opening hello.php in my browser I see extension_dir = ./ in the tables
> > and so does everything else seem okay.
> > If anybody has worked around this problem please help me.
> > Thanks in advance,
> >
> > ------------------------------------------------------------------------------
> > PUSHKAR S. PRADHAN
> > Research Assistant
> > MISSISSIPPI STATE UNIVERSITY,
> > STARKVILLE, MS 39759.
> >
> > Engineering Research Center
> > Box 9627
> > Mississippi State, MS 39762-9627
> > ------------------------------------------------------------------------------
>
------------------------------------------------------------------------------
PUSHKAR S. PRADHAN
Research Assistant
MISSISSIPPI STATE UNIVERSITY,
STARKVILLE, MS 39759.
Engineering Research Center
Box 9627
Mississippi State, MS 39762-9627
------------------------------------------------------------------------------
More information about the MapServer-users
mailing list