Sure looks to me like you're still missing the mysql include files. /usr/local/mysql/include should contain the following files
config-win.h  heap.h       my_dir.h         my_tree.h        mysys_err.h        t_ctype.h
config.h      m_ctype.h    my_global.h      myisam.h         nisam.h            thr_alarm.h
dbug.h        m_string.h   my_list.h        myisammrg.h      queues.h           thr_lock.h
errmsg.h      merge.h      my_net.h         myisampack.h     raid.h             violite.h
ft_global.h   my_alarm.h   my_no_pthread.h  mysql.h          sslopt-case.h
getopt.h      my_base.h    my_nosys.h       mysql_com.h      sslopt-longopts.h
global.h      my_bitmap.h  my_pthread.h     mysql_version.h  sslopt-usage.h
hash.h        my_config.h  my_sys.h         mysqld_error.h   sslopt-vars.h
If it does, then please post the lines before the error (should be something like gcc dbdimp.c -I./ BLAH BLAH) so we can see the parameters passed to the compiler. If it doesn't, than you need to install the include files with MySQL. (Although I'm pretty sure they're installed by default if you compiled it from source.)

In reply to Re: Re: Installing DBD via CPAN by dondelelcaro
in thread Installing DBD via CPAN by costas

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.