[wxPython] Linux pathquestions

Hi,

These are questions about "LD_LIBRARY_PATH"
I am using Corel Linux 1.2, kernel 2.2.16, gcc 2.95.2

At the end of the build process there is this message:

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.

Where is thisvariable set? I've looked in /etc and /root/.profile
(I typically run as su.)

Also, the gcc "LIBDIR"path appears to be /usr/local/lib
IsLIBDIR the same as LD_LIBRARY_PATH?

Thanks,

Edward

···

----------------------------------------------------
Edward K. Ream edream@tds.net 608.231.0766
Leo: Literate Editor with Outlines
Leo: http://personalpages.tds.net/~edream/front.html
----------------------------------------------------

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

change via ldconfig or try to use a wrapper - nice if your playing around
with several versions of gtk/wx

···

---
#!/bin/tcsh

setenv LD_LIBRARY_PATH /your/installation_path/lib
setenv LIBDIR $LD_LIBRARY_PATH
setenv LD_LIBRARYN32_PATH ${LD_LIBRARY_PATH};

/your/installation_path/bin/python $*

---

--
Harald Schaeffler
BMW Group
Forschungs- und Ingenieurzentrum
Technologie Montage CA-Technik
TI-410

80788 Muenchen, Germany

Phone +49 89 38243531
Fax +49 89 38247140
Email: Harald.Schaeffler@bmw.de
                                        
_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

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

Given this, I would just make sure the appropriate directory is in
/etc/ld.conf, and run ldconf, and you should be all set.

Or install to directories already there, although I usually always add
/usr/local/lib to mine.

> Where is this variable set? I've looked in /etc and /root/.profile

Wherever you want. If you are using bash for a shell then you can put it in
~/.bashrc to always set it for your user account, or in /etc/bashrc to make
it global. If using a different shell then adjust accordingly.

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,

rgrep

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users