Skip to Content.
Sympa Menu

freetds - Re: How to compile SQSH with FreeTDS .60?

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Steve Langasek <vorlon AT netexpress.net>
  • To: TDS Development Group <freetds AT franklin.metalab.unc.edu>
  • Subject: Re: How to compile SQSH with FreeTDS .60?
  • Date: Tue, 8 Oct 2002 17:21:27 -0500

Jay,

Can I interest you in a working set of sqsh/freetds Debian packages for
your hardware platform of choice? ;)

On Tue, Oct 08, 2002 at 03:01:40PM -0700, Jay Sauls wrote:

> I then ran the following on sqsh:
> export SYBASE=/usr/local
> ./configure
> make
> su
> make install

> But this is what I get when running sqsh:
> [jays@jays-linux sqsh-2.1]$ sqsh -S jayssql -U jays
> sqsh: error while loading shared libraries: libtds.so.1: cannot open shared
> object file: No such file or directory
> [jays@jays-linux sqsh-2.1]$

> ls -la /usr/local/lib/libtds* shows:
> -rw-r--r-- 1 root root 863064 Oct 8 14:49
> /usr/local/lib/libtds.a
> -rwxr-xr-x 1 root root 728 Oct 8 14:49
> /usr/local/lib/libtds.la
> lrwxrwxrwx 1 root root 13 Oct 8 14:49
> /usr/local/lib/libtds.so -> libtds.so.1.0
> lrwxrwxrwx 1 root root 13 Oct 8 14:49
> /usr/local/lib/libtds.so.1 -> libtds.so.1.0
> -rwxr-xr-x 1 root root 466058 Oct 8 14:49
> /usr/local/lib/libtds.so.1.0
> -rw-r--r-- 1 root root 151954 Oct 8 14:50
> /usr/local/lib/libtdssrv.a
> -rwxr-xr-x 1 root root 743 Oct 8 14:50
> /usr/local/lib/libtdssrv.la
> lrwxrwxrwx 1 root root 16 Oct 8 14:50
> /usr/local/lib/libtdssrv.so -> libtdssrv.so.0.0
> lrwxrwxrwx 1 root root 16 Oct 8 14:50
> /usr/local/lib/libtdssrv.so.0 -> libtdssrv.so.0.0
> -rwxr-xr-x 1 root root 91464 Oct 8 14:50
> /usr/local/lib/libtdssrv.so.0.0

Try running '/sbin/ldconfig'. The official 0.6 release was built with a
version of libtool that trims the final '0' from the library version
string, and on most Linux distributions, the "real" filename of
libtds.so.1 is cached in /etc/ld.so.cache. Re-running ldconfig will
force a re-scan of your library directories, and enable sqsh to again
find the libraries it needs.

The good news is that this definitively ensures that sqsh IS pointed at
the right set of libraries on your system.

Cheers,
Steve Langasek
postmodern programmer

Attachment: pgpwDNDBGgBL5.pgp
Description: PGP signature




Archive powered by MHonArc 2.6.24.

Top of Page