Write a self contained Python test script (not a WSGI application), which 
imports the Python wrapper for Ice and run it from the command line. Do this 
without setting LD_LIBRARY_PATH and so confirm that LD_RUN_PATH has had no 
affect on when you installed the Python wrapper.

Also provide the actual make/make install output when installing the wrapper. 
It is possible that the Makefile is doing its own mucking around with the 
library path using -R options, which I have seen causing problems with 
LD_RUN_PATH environment variable passing.

Finally, without LD_LIBRARY_PATH set, run ‘ldd’ in the extension module .so 
file for the Python wrapper. What may be broken is that Ice uses multiple 
libraries and it isn’t that the extension module cannot find a subsequent 
library, but one of the Ice libraries can’t find its companion libraries when 
loaded without LD_LIBRARY_PATH set.

Graham

> On 11 Nov 2015, at 1:11 am, Aleksandra Tarkowska 
> <[email protected]> wrote:
> 
> Hi Graham,
> 
> Thank you for a quick response. I am afraid this is not an option as I am 
> using Ice 3.5. I have to manually download the package and recompile locally:
> 
> wget https://zeroc.com/download/Ice/3.5/Ice-3.5.1-el6-x86_64-rpm.tar.gz 
> <https://zeroc.com/download/Ice/3.5/Ice-3.5.1-el6-x86_64-rpm.tar.gz>
> tar xfv Ice-3.5.1-el6-x86_64-rpm.tar.gz
> yum install db53-5.3.21-1ice.el6.x86_64.rpm 
> db53-devel-5.3.21-1ice.el6.x86_64.rpm db53-utils-5.3.21-1ice.el6.x86_64.rpm 
> mcpp-devel-2.7.2-2ice.el6.x86_64.rpm
> cd ..
> 
> # Download Ice 3.5.1 source
> wget https://zeroc.com/download/Ice/3.5/Ice-3.5.1.tar.gz 
> <https://zeroc.com/download/Ice/3.5/Ice-3.5.1.tar.gz>
> tar xfv Ice-3.5.1.tar.gz
> cd Ice-3.5.1
> 
> # Build and install main Ice libraries and programs
> cd cpp
> make
> make test
> make install
> 
> 
> 
>  # Build and install Python module
> cd ../py
> source /opt/rh/python27/enable
> 
> I tried here:
> ICE_HOME=/opt/Ice-3.5.1
> export LD_RUN_PATH="${ICE_HOME}/lib64:${ICE_HOME}/lib:$LD_RUN_PATH"
> 
> make
> make test
> make install
> 
> but I am afraid no success. The only way I can get this working is by adding
> 
> ICE_HOME=/opt/Ice-3.5.1
> export LD_LIBRARY_PATH="${ICE_HOME}/lib64:${ICE_HOME}/lib:$LD_LIBRARY_PATH"
> 
> to /etc/sysconfig/httpd
> 
> Do you have any other ideas ?
> 
> Ola
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at http://groups.google.com/group/modwsgi 
> <http://groups.google.com/group/modwsgi>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to