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

2010-11-18 Thread Sebastian E. Ovide
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

[...@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
[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
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


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

2010-11-18 Thread Daniel Morissette
Does the file /home/gis/libs/instantclient_11_2/libclntsh.so.11.1 exist
and is the full path to its location reachable by the user running the
Apache server? i.e. check the permissions on all subdirs, especially
/home/gis which is likely to have access restrictions by default.



Sebastian E. Ovide wrote:
 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
 
 [...@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
 [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
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users


-- 
Daniel Morissette
http://www.mapgears.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


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

2010-11-18 Thread Ivan Lucena
Sebastian,

  ---Original Message---
  From: Sebastian E. Ovide sebastian.ov...@gmail.com
  To: mapserver-users@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
  
  
  [...@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-us...@lists.osgeo.org]
  mapserver-users@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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


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

2010-11-18 Thread Smith, Michael D ERDC-CRREL-NH
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.luc...@pmldnet.com wrote:

 Sebastian,
 
  ---Original Message---
  From: Sebastian E. Ovide sebastian.ov...@gmail.com
  To: mapserver-users@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
  
  
  [...@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-us...@lists.osgeo.org]
  mapserver-users@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@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


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

2010-11-18 Thread Sebastian E. Ovide
you are right...  the problem was that in Fedora the homes have access
restrictions by default ... thanks

On Thu, Nov 18, 2010 at 5:00 PM, Daniel Morissette dmorisse...@mapgears.com
 wrote:

 Does the file /home/gis/libs/instantclient_11_2/libclntsh.so.11.1 exist
 and is the full path to its location reachable by the user running the
 Apache server? i.e. check the permissions on all subdirs, especially
 /home/gis which is likely to have access restrictions by default.



 Sebastian E. Ovide wrote:
  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
 
  [...@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
  [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
  mapserver-users@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users


 --
 Daniel Morissette
 http://www.mapgears.com/
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users




-- 
Sebastian E. Ovide
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users