In most cases you need an ODBC driver manager installed before installing DBD::ODBC (a very few ODBC drivers work with it directly but that is no longer recommended).

DBD::ODBC is mostly C code and XS and you need the driver manager C header files in addition to the driver manager itself. That probably means (in these days of packages) you need unixodbc main package and unixodbc-dev package.

Looking for odbc_config on PATH odbc_config not found Looking for iodbc-config on PATH iodbc_config not found odbc_config not found - ok, there are other things I can do

More modern versions of unixODBC and iODBC contain a config program ((x)odbc_config) which makes DBD::ODBC's life of configuring and itself to match the many different ways driver managers can be built a lot easier. As a result, DBD::ODBC looks for Xodbc_config first. In you case your installed odbc driver manager is too old for that so it is falling back on trying to locate driver manager header files:

Still trying to guess ODBCHOME - looking for headers now trying /usr/include trying usr/local/include trying /usr/pkg/include trying /usr/local/easysoft/unixODBC/include

It looks to me like you have not installed unixodbc-dev package that contains the headers or you installed in a non-standard place and did not use ODBCHOME or -o to point to them.


In reply to Re: Installing DBD::ODBC by mje
in thread Installing DBD::ODBC by Steve_BZ

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.