Edward,
I'm not really up on this, but I got curious, so I looked a few things
up.
"Edward K. Ream" wrote:
The installation of wxWindows is finished. On certain
platforms (e.g.Linux) you'll now have to run ldconfig
...and also modify LD_LIBRARY_PATH (or equivalent)
library variable.
From "Linux Application Development":
"... the dynamic loader ... looks in /etc/ld.so.cache, created by
ldconfig, ... to find the libraries the program needs. However, if the
LD_LIBRARY_PATH environment variable is set, it will first dynamically
scan the directories in LD_LIBRARY_PATH..."
So LD_LIBRARY_PATH is usually used if you want to override the system
libs set up in /etc/ld.conf.
Given this, I would just make sure the appropriate directory is in
/etc/ld.conf, and run ldconf, and you should be all set.
Where is this variable set? I've looked in /etc and /root/.profile
I also can not find where it is set. (athough it has been set on my
system!, kde related, I think, and it's not set if I do a non-X login) I
have never been able to figure out an easy way to do a grep recursively
through a directory tree, but if I did, I would do it on /etc and
probably find it. ON the other hand, it seems to me that you wouldn't
want it set globally anyway, as you might as well jsut use /etc/ld.conf
for that. YOu would set it if you wanted to call a program and have it
load different libraries than the standard ones.
(I typically run as su.)
NOt that you asked, but this really is a bad idea. I know it's tempting
when you are getting started with Linux, as you are spending a lot of
time doing sys admin, but I really recomend you break yourself of the
habit.
> Also, the gcc "LIBDIR" path appears to be /usr/local/lib
Is LIBDIR the same as LD_LIBRARY_PATH?
No. I'm pretty sure that's where gcc looks for libraries when it is
linking, and LD_LIBRARY_PATH is looked at for dynamic linking at run
time (either by ld, or by your application if you explicitly call for
the link in your code (dlopen() ). I imagine that is how shared library
modules are loaded by the Python interpreter.
I hope this helps.
By the way, How's Leo on Linux coming?
-Chris
···
--
Christopher Barker,
Ph.D.
cbarker@jps.net --- --- ---
http://www.jps.net/cbarker -----@@ -----@@ -----@@
------@@@ ------@@@ ------@@@
Water Resources Engineering ------ @ ------ @ ------ @
Coastal and Fluvial Hydrodynamics ------- --------- --------
------------------------------------------------------------------------
------------------------------------------------------------------------
_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users