Skip to Content.
Sympa Menu

freetds - Re: [freetds] [unixODBC][Driver Manager]Can't open lib ... Access is denied

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: jklowden AT schemamania.org
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] [unixODBC][Driver Manager]Can't open lib ... Access is denied
  • Date: Thu, 9 Jun 2011 13:13:52 -0400

On Thu, Jun 09, 2011 at 08:52:07AM -0700, Dave Dumaresq wrote:
> On 9-Jun-11, at 7:15 AM, jklowden AT schemamania.org wrote:
>
> >> $ isql dsn_bccampus MyUid MyPWD -v
> >>
> >> [01000][unixODBC][Driver Manager]Can't open lib '/usr/local/freetds/
> >> lib/libtdsodbc.a' : Access is denied.
> >> [ISQL]ERROR: Could not SQLConnect
> >>
> >> odbcinst.ini
> >> [FreeTDS]
> >> Driver=/usr/local/freetds/lib/libtdsodbc.a
> >
> > Is libtdsodbc.a a shared object? What does file(1) say?
>
>
> I'm not sure what you mean by 'file(1)'.

That notation means that "file" is a utility documented in section 1 of the
man
pages.

$ man file | head
FILE(1) BSD General Commands Manual FILE(1)

NAME
file - determine file type

SYNOPSIS
file [-bchiklLNnprsvz0] [--apple] [--mime-encoding] [--mime-type]
[-e testname] [-F separator] [-f namefile] [-m magicfiles] file ...
file -C [-m magicfiles]
file [--help]

Sometimes different sections of the manual have the same title. The
parenthetical number avoids ambiguity and is an immediate hint we're talking
about a standard utility.

> This is the first time I've built code in a cygwin environment, so I'm
> unsure about all the libraries that need to be available.

http://cygwin.com/ml/cygwin/2004-11/msg00124.html

Apparently shared libraries are named .DLL in cygwin. The .a files on my
system
are static libraries, e.g.:

$ file /usr/lib/libticw.*
/usr/lib/libticw.a: current ar archive
/usr/lib/libticw.dll.a: current ar archive
/usr/lib/libticw.la: libtool library file

HTH.

--jkl




Archive powered by MHonArc 2.6.24.

Top of Page