Jean-Michel Vourgère | 14 Jul 2012 13:55
Favicon

Where should one install .so files?

Hello

I'm working on mdbtools, that includes a really free odbc driver for microsoft access files.

I'm used to Debian GNU/Linux OS, and I noticed that most drivers are installing themselves in
/usr/lib/odbc rather that just /usr/lib. (Then it changed to /usr/lib/i386/odbc, but that is another story...)
That way, odbcinst.ini only have to reference "Driver = libmdbodbc.so.1" without any path.

But general "upstream" makefile installs in lib/ and not lib/odbc.

My question is where should a driver install itself on most architectures: lib/ or lib/odbc/ ?

Is the odbc subfolder a general thing for distros? Or just a Debian/Ubuntu specific thing?

Thank you!

-- Jean-Michel Vourgère
https://github.com/brianb/mdbtools
_______________________________________________
unixODBC-dev mailing list
unixODBC-dev <at> mailman.unixodbc.org
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev
Nick Gorham | 15 Jul 2012 20:17
Favicon

Re: Where should one install .so files?

On 14/07/2012 12:55, Jean-Michel Vourgère wrote:
> Hello
>
> I'm working on mdbtools, that includes a really free odbc driver for microsoft access files.
>
> I'm used to Debian GNU/Linux OS, and I noticed that most drivers are installing themselves in
/usr/lib/odbc rather that just /usr/lib. (Then it changed to /usr/lib/i386/odbc, but that is another story...)
> That way, odbcinst.ini only have to reference "Driver = libmdbodbc.so.1" without any path.
>
> But general "upstream" makefile installs in lib/ and not lib/odbc.
>
> My question is where should a driver install itself on most architectures: lib/ or lib/odbc/ ?
>
> Is the odbc subfolder a general thing for distros? Or just a Debian/Ubuntu specific thing?
>
> Thank you!
Hi,

TBH, I dont know. The source configure default to the normal /usr/local 
so /usr/local/lib I certainly dont have any view on /lib/odbc

--

-- 
nick
_______________________________________________
unixODBC-dev mailing list
unixODBC-dev <at> mailman.unixodbc.org
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev

Steve Langasek | 15 Jul 2012 23:19
Picon
Favicon

Re: Where should one install .so files?

Hi Jean-Michel,

On Sat, Jul 14, 2012 at 11:55:01AM +0000, Jean-Michel Vourgère wrote:
> I'm working on mdbtools, that includes a really free odbc driver for
> microsoft access files.

> I'm used to Debian GNU/Linux OS, and I noticed that most drivers are
> installing themselves in /usr/lib/odbc rather that just /usr/lib.  (Then
> it changed to /usr/lib/i386/odbc, but that is another story...) That way,
> odbcinst.ini only have to reference "Driver = libmdbodbc.so.1" without any
> path.

> But general "upstream" makefile installs in lib/ and not lib/odbc.

> My question is where should a driver install itself on most architectures:
> lib/ or lib/odbc/ ?

> Is the odbc subfolder a general thing for distros? Or just a Debian/Ubuntu
> specific thing?

This follows logically from the requirements of the FHS:

  /usr/lib : Libraries for programming and packages

  Purpose

  /usr/lib includes object files, libraries, and internal binaries that are
  not intended to be executed directly by users or shell scripts. [22]

  Applications may use a single subdirectory under /usr/lib. If an
(Continue reading)


Gmane