[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freetds
Subject:    Re: [freetds] odbc on Ubuntu 11.10 Server
From:       Bernard Moreton <bernard () tnauk ! org ! uk>
Date:       2012-01-20 13:20:19
Message-ID: 4F196A13.2030001 () tnauk ! org ! uk
[Download RAW message or body]

I think there's a problem in /usr/bin/osql, with the line defining ODBC_DIR:
--------------------------------------------------------------------------
# Establish ODBC prefix directory

ODBC_DIR=$(strings ${ISQL} | grep ^/ | grep -v elf | grep -v '\.so\.' | head -1 
| sed 's/lib$/etc/' )
--------------------------------------------------------------------------


If I comment out the above in a copy (~/odbc.sh), and add after them what is 
correct for my server:

ODBC_DIR=/etc

then I get sensible results.


Bernard Moreton
IT Director, National Talking Newspapers and Magazines (TNAUK)
Charity registered in the UK 293656

DDI: 01 435 869 316

On 20/01/2012 09:49, Bernard Moreton wrote:
> osql -S tnauk -U '<domain login name>' -P'<password>' [-I $HOME]
> both give:
> osql: error: no potential directory strings in "/usr/bin/isql"
> isql strings are:
> + /lib/ld-linux.so.2
>
>
> isql -v tnauk '<domain login name>''<password>'
> logs into the database ok.
>
>
>
_______________________________________________
FreeTDS mailing list
FreeTDS@lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic