On Wed, Mar 2, 2011 at 3:01 PM, vanderkerkoff <tonm...@gmail.com> wrote:
> Thanks Graham
>
> I went for the first option and added the path to my mysql libraries
> to /etc/ld.so.conf
>
> Never had to do that before though, and I've installed this type of
> system many many times.  This one is newer ubuntu and newer mysql
> though, must be a change in that.
>
> Thanks again
>
> Matt
>
>

This has been true for many years; if you install libraries to
locations outside of your OS's LD_LIBRARY_PATH, you're responsible for
ensuring that the linker/rtld has enough information to use it. man
rtld/ld.so/ld

In fact, whilst installing MySQL 5.5 from source, the following
message is emitted (obviously, the location is different):

Libraries have been installed in:
   /usr/local/lib/mysql

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 the `-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

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.


Cheers

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to