Midgard - expat - nastaveni PATH (RH 6.2)

Tomáš Knaifl tomas.knaifl na logos.cz
Čtvrtek Únor 15 13:52:24 CET 2001


> Dobry den vsem!
> 
>  Snazim se nainstlovat a vyzkouset "Midgard" 
> (midgard-project.com). Narazil
> jsem na problem pri istalaci XML parseru "expat1.95.1".
> Instalace expat-u skoncila s nasledujici hlaskou:
> 
>  [root na dodo expat-1.95.1]# make install
> make[1]: Entering directory `/home/luboss/midgard/expat-1.95.1/lib'
> /bin/sh ../conftools/mkinstalldirs /usr/local/lib /usr/local/include
> mkdir /usr/local/include
> /bin/sh ../libtool  --mode=install /usr/bin/install -c libexpat.la
> /usr/local/lib/libexpat.la
> /usr/bin/install -c .libs/libexpat.so.0.0.1 
> /usr/local/lib/libexpat.so.0.0.1
> (cd /usr/local/lib && rm -f libexpat.so.0 && ln -s libexpat.so.0.0.1
> libexpat.so.0)
> (cd /usr/local/lib && rm -f libexpat.so && ln -s libexpat.so.0.0.1
> libexpat.so)
> /usr/bin/install -c .libs/libexpat.lai /usr/local/lib/libexpat.la
> /usr/bin/install -c .libs/libexpat.a /usr/local/lib/libexpat.a
> ranlib /usr/local/lib/libexpat.a
> chmod 644 /usr/local/lib/libexpat.a
> PATH="$PATH:/sbin" ldconfig -n /usr/local/lib
> ---------------------------------------------------------------------
> Libraries have been installed in:
>     /usr/local/lib
> 
>  If you ever happen to want to link against installed libraries
> in a given directory, LIBDIR, you must either use libtool, and
> specify the full pathname of the library, or use `-LLIBDIR'
> flag during linking and do at least one of the following:
>     - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
>       during execution
>     - add LIBDIR to the `LD_RUN_PATH' environment variable
>       during linking
>     - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
>     - have your system administrator add LIBDIR to `/etc/ld.so.conf'
> 
>  See any operating system documentation about shared libraries for
> more information, such as the ld(1) and ld.so(8) manual pages.
> -------------------------------------------------------------------
> 

to ani neni chyba.. to je jenom informace o tom, kam se ti knihovna
nainstalovala a informuje Te, ze je treba ld informovat o jejich
umisteni.. zrovna u cesty /usr/local/lib to nemusi vubec nic znamenat,
protoze ta by mela byt standardne prohledavana.. pokud by tam ale bylo
nejake exoticke umisteni, tak ti ta hlaska nabizi zpusoby, jak toto
udelat. napr. ja pouzivam posledni moznost, cili ze cestu ke knihovnam
pridam do /etc/ld.so.conf a pak spustim ldconfig a mam vystarano...

----------------------------------------
Tomáš Knaifl

tomas na knaifl.cz
http://www.hokejka.cz


Další informace o konferenci Linux