You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by ro...@apache.org on 2007/02/28 11:25:36 UTC

svn commit: r512689 - /incubator/tuscany/cpp/sca/samples/RestYahoo/sample.yahoo.client/runclient.sh

Author: robbinspg
Date: Wed Feb 28 02:25:35 2007
New Revision: 512689

URL: http://svn.apache.org/viewvc?view=rev&rev=512689
Log:
Force loading of python version of expat to avoid compatibility issue with Ruby

Modified:
    incubator/tuscany/cpp/sca/samples/RestYahoo/sample.yahoo.client/runclient.sh

Modified: incubator/tuscany/cpp/sca/samples/RestYahoo/sample.yahoo.client/runclient.sh
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/RestYahoo/sample.yahoo.client/runclient.sh?view=diff&rev=512689&r1=512688&r2=512689
==============================================================================
--- incubator/tuscany/cpp/sca/samples/RestYahoo/sample.yahoo.client/runclient.sh (original)
+++ incubator/tuscany/cpp/sca/samples/RestYahoo/sample.yahoo.client/runclient.sh Wed Feb 28 02:25:35 2007
@@ -39,4 +39,13 @@
 export TUSCANY_SCACPP_COMPONENT=sample.yahoo.app.WebSearchComponent
 
 cd $TUSCANY_SCACPP_ROOT/sample.yahoo.client
+
+libsuffix=.so
+UNAME=`uname -s`
+if [ "x$UNAME" = "xDarwin" ]; then
+    libsuffix=.dylib
+fi
+# Set LD_PRELOAD to use the expat included in Python to avoid incompatibilities
+export LD_PRELOAD=$TUSCANY_SCACPP/extensions/python/lib/libtuscany_sca_python$libsuffix
+
 ruby -I$TUSCANY_SCACPP/extensions/ruby/lib YahooWebSearchClient.rb



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org