[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: odbc_config missing



Hi, guys,

Please compare:

In Gentoo:

[code]
igor@IgorReinCloud ~ $ odbc_config --libs
-L/usr/lib64 -lodbc
igor@IgorReinCloud ~ $
[/code]

In Debian:

[code]
igor@debian: ~ $ pkg-config --libs odbc
-lodbc
[/code]

Not good enough. ;-)

When someone tries to build something on Debian and then
test it it will fail because ldd will not be able to find the library.

Thank you.

On Wed, Jul 20, 2022 at 5:28 PM David Wright <deblis@lionunicorn.co.uk> wrote:
>
> On Wed 20 Jul 2022 at 14:33:39 (-0500), Igor Korot wrote:
> > On Wed, Jul 20, 2022 at 2:04 PM Greg Wooledge <greg@wooledge.org> wrote:
> > > On Wed, Jul 20, 2022 at 01:48:34PM -0500, Igor Korot wrote:
> > > > This sentence from the OP:
> > > >
> > > > [quote]
> > > > I just tried to compile my program and got an error about it.
> > > > [/quote]
> > > >
> > > > shows what I'm doing (it doesn't reference unixODBC at all, does it?)
> > > > and the issue I'm facing.
> > >
> > > No.  It does not.
> > >
> > > Here are two theoretical help requests.  I would like you to compare
> > > them:
> > >
> > >
> > > The first one:
> > > =========================================
> > > Please help me!  I'm trying to compile a program and it doesn't work!
> > > I got an error!
> > > =========================================
> > >
> > >
> > > The second one:
> > > =========================================
> > > Please help me!  I'm trying to compile moon-lander 1.2.  I'm following
> > > the steps in the INSTALL file, but I get this error when I type make:
> > >
> > > fred@zanzibar:~$ make
> > > bash: make: command not found
> > >
> > > What should I do?
> > > =========================================
> > >
> > >
> > > Try to put yourself in the position of someone reading your messages.
> > > How would you react, upon reading your own message, which is almost
> > > completely devoid of any useful information?  How would you help yourself
> > > based on that message?
> > >
> > > At the very least you have to tell people what the error message says.
> > > Do you think we can see your screen?  We can't.
> >
> > How about a 3rd one?
> >
> > [quote]
> > I am a developer and I'm trying to compile my own software.
> > The software depends on unixODBC.
> > Trying to compile I got an error that odbc_config is not found.
> > [/quote]
> >
> > You are comparing apples and oranges here.
>
> You actually wrote:
>
>   I tried to run
>   pkg-config --libs unixodbc
>   and it fails.
>
> but you haven't said much about which Debian packages you have
> installed on your system, and whether you have taken any actions
> as a result of reading the URLs that have been mentioned. And,
> as I said, "it fails" is of no help.
>
> > Like I said in the OP, I'm trying to compile my own program
> > not the one that has a package in the Debian distro.
> > From the issue I would guess that the odbc_config script
> > that should tell the compiler where the include and library
> > should be searched is missing/not installed.
> >
> > My first thought would be just like Reco, to ask if the unixODBC
> > or iODBC and its development package is installed on the system.
>
> I assumed that by today, you would already have checked that.
> (I'm not sure how you would otherwise know that the file in
> question was actually missing.)
>
> But the said URLs refer to Debian bugs #422207 and #852676,
> which seem to indicate some issues between the odbc_config file
> and the Debian maintainer, so you might want to read them more
> carefully than I have. (I don't know what the issue is.)
>
> > And then ask to check for pkg-config, because as a developer
> > those are 2 things that first come to mind.
> >
> > So yes - I would help myself in that situation based on the OP message
> > I sent.
>
> Cheers,
> David.
>


Reply to: