On Nov 4, 2008, at 4:55 PM, Roger Binns wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Michael Muratet wrote:
>>> The image in the directory is version 3.6.4, but the image that gets
>>> installed is 3.3.6. How can that be?
>
> Best guess is that the shell binary is from 3.6.4 but the shared
> libraries it picks up are 3.3.6.  Run `ldd /usr/local/bin/sqlite3` to
> see what libraries it uses.

Thanks for the suggestion.

It uses:
[EMAIL PROTECTED] src]# ldd /usr/local/bin/sqlite3
        linux-gate.so.1 =>  (0xffffe000)
        libdl.so.2 => /lib/libdl.so.2 (0x00c5a000)
        libc.so.6 => /lib/tls/libc.so.6 (0x00af3000)
        /lib/ld-linux.so.2 (0x00ad9000)

I'm not sure how to interpret this.

Mike

>
>
> You also need to take note of this:
>
> -  
> ----------------------------------------------------------------------
> 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 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
>    - 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.
> -  
> ----------------------------------------------------------------------
>
> For example this should work:
>
> $ env LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH \
>         /usr/local/bin/sqlite3
>
> Roger
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAkkQ0ssACgkQmOOfHg372QTLnQCeOdQabbtgFCzGjhvXhOCdfgMg
> 2aQAn1pNFVAiIc+WT1+oCO7i6sSjr0hO
> =7lJ8
> -----END PGP SIGNATURE-----
> _______________________________________________
> sqlite-users mailing list
> [email protected]
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to