some programs use a wrapper script that sets LD_LOAD_PATH or similar before running; mozilla uses this for plugins, i think. also, you can try using "strace" in situations like this, to see where your process is looking for the file you're trying to dlopen. t.