Re: Conflict between two libglib-2.0.so




On Aug 10, 2005, at 5:42 AM, Laurent BESSON wrote:

In fact, I just found a solution by modifying my perl header like this:

: # -*- perl -*-

eval 'export LD_LIBRARY_PATH; LD_LIBRARY_PATH=/apa/free2/SunOS/5.8/ lib:$LD_LIBRARY_PATH; exec ${PERL:=perl} $0 ${1+"$@"}'
 if 0;

and this workaround the problem

My next suggestion was going to be "write a small shell script wrapper to set up LD_LIBRARY_PATH and call your perl script", which this hack effectively does.

The problem was that your BEGIN was not running before the compile stage had caused 'use Gtk2' to load the dynamic libraries. Thus, the old path was being used.


--
I think it worked on the Wiley Coyote model of project management - if
at any point you looked down and realised what you were doing was
impossible then you'd instantly fail.
  -- Simon Wistow




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]