[mapserver-users] Mapserver + OCI error while loading shared libraries from Apache ?

Smith, Michael D ERDC-CRREL-NH michael.smith at usace.army.mil
Thu Nov 18 09:10:53 PST 2010


You may have to set those values inside your httpd.conf

Eg

<Location "/cgi-bin/">
    SetEnv ORACLE_HOME "/home/gis/libs/instantclient_11_2/"
    SetEnv LD_LIBRARY_PATH "/home/gis/libs/instantclient_11_2/"
</Location>



On 11/18/10  12:01 PM, "Ivan Lucena" <ivan.lucena at pmldnet.com> wrote:

> Sebastian,
> 
>>  -------Original Message-------
>>  From: Sebastian E. Ovide <sebastian.ovide at gmail.com>
>>  To: mapserver-users at lists.osgeo.org
>>  Subject: [mapserver-users] Mapserver + OCI error while loading shared
>> libraries from Apache ?
>>  Sent: Nov 18 '10 11:54
>>  
>>  Hi All,
>>  
>>  
>>  everything is working find from shell. I register the Oracle libraries with
>>  ldconfig, I have even created a cgi that set the LD_LIBRARY_PATH
>>  
>>  
>>  [gis at mapserver-fc14 cgi-bin]$ cat test.sh
>>  #!/bin/sh
>>  export ORACLE_HOME=/home/gis/libs/instantclient_11_2/
>>  export LD_LIBRARY_PATH=/home/gis/libs/instantclient_11_2/
>>  /var/www/cgi-bin/mapserv $*
>>  
>>  
>>  and still getting 
>>  
>>  
>>  [Thu Nov 18 16:50:06 2010] [error] [client 10.0.1.50]
>>  /var/www/cgi-bin/mapserv: error while loading shared libraries:
>>  libclntsh.so.11.1: cannot open shared object file: No such file or
>>  directory
> 
> Does that message means that the error occurs during the process of loading
> libclntsh.so.11.1 and therefor that library was found but that library is
> trying to load another one that is not on the path?
> 
>>  [Thu Nov 18 16:50:06 2010] [error] [client 10.0.1.50] Premature end of
>>  script headers: test.sh
>>  
>>  
>>  any ideas ?
>>  
>>  
>>  note: this problem is on a Fedora 14--
>>  Sebastian E. Ovide
>>  
>>  
>>  --------------------
>>  _______________________________________________
>>  mapserver-users mailing list
>>  [LINK: compose.php?to=mapserver-users at lists.osgeo.org]
>>  mapserver-users at lists.osgeo.org
>>  [LINK: http://lists.osgeo.org/mailman/listinfo/mapserver-users]
>>  http://lists.osgeo.org/mailman/listinfo/mapserver-users
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users




More information about the MapServer-users mailing list