Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tlug: Can't see shared lib



>>>>> "Darren" == Darren Cook <darren@example.com> writes:

    Darren> I'm compiling php3 as a module into Apache, following the
    Darren> instructions in the php manual. When building Apache it
    Darren> complains 'libpq.so.2.0' doesn't exist.

"Doesn't exist" means "as far as /lib/ld-linux.so knows."  You can (1) 
put the /usr/local/pgsql/lib into /etc/ld/so/conf and run ldconfig,
(2) set LD_LIBRARY_PATH=/usr/local/pgsql/lib in your environment, or
(3) do LD_PRELOAD=/usr/local/pgsql/lib/libpq.so.2.0.  Probably you
want to do (1) (as root, of course), but you should tighten up the
permissions on that directory first.

Why is this so mendoukusai?  Security: think about the tricks that
muriyari Netscape plays with the X libraries to see just how much you
can do.  Then suppose that someone arranged to link in a trojan DLL
that scarfed input strings ahead of /lib/libc.  Even a script kiddie
can grok that one.

-- 
University of Tsukuba                Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Institute of Policy and Planning Sciences       Tel/fax: +81 (298) 53-5091
__________________________________________________________________________
__________________________________________________________________________
What are those two straight lines for?  "Free software rules."
-------------------------------------------------------------------
Next Nomikai: May 26 (Wed), 19:00 Tengu TokyoEkiMae 03-3275-3691
*** Special guest: Eric S. Raymond
Next Technical Meeting: June 19 (Sat), 12:30  place: Temple Univ.
Topic: Linux SMP and the Intel SC450NX Quad Xeon Server platform
-------------------------------------------------------------------
more info: http://www.tlug.gr.jp        Sponsor: Global Online Japan


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links