Hi Brice
On 30-07-2013 20:15, Brice Hamon wrote:
Hi guys,
I decided to work around the fileevent problem and to go with tcl
8.6.
So I recompiled TCL with multi-threading, my TCL API lib, and Rivet.
Re-install all and run some test program by hand, so far so good.
did you compile the Tcl version with the fix for the fork call?
Now the important test I was planing is: during the
RivetInitChildScript, loading my TCL API and create some sessions.
I now have a simple problem that I am sure you guys knows the answer
in 10 seconds: my TCL API lib (.so) has around 10 dependencies with
other .so files (mostly mine).
The RivetInitChildScript fails because it cant find dependency
libraries.
I am guessing my environment is not correct and I should set the
LD_LIBRARY_PATH correctly.
So I set the user root with the correct LD_LIBRARY_PATH (as my httpds
run as root) and try by hand (tclsh -> load ...../blabla.so). All
works fine.
But when the same line is called in the RivetInitChildScript, the
loading fails.
I hit myself the LD_LIBRARY_PATH problem trying to tell Apache to load
the Tcl library with the fix made by Jan. Eventually it worked.
What kind of path did you put as argument of the 'load' call? Is it
possible
Apache did some chdir (mod_rivet does IIRC) that might deceive your
script?
Any ideas how to set the correct path when the module is loaded and
run?
Thank you,
Brice.
-- Massimo
---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscr...@tcl.apache.org
For additional commands, e-mail: rivet-dev-h...@tcl.apache.org