Sorry if I've posted this twice, but it doesn't seem to be appearing on the "seekers" page. Hi, I'm trying to run a script on cygwin, that I had origionally working on a unix server. I havent ported my sql database so I was going to connect to it from my new machine by using -
my $serverName = "www.server.com";
instead of -
my $serverName = "localhost"; Anyway, when I tried to run the script, I got -
perl index.cgi Prototype mismatch: sub main::head vs ($) at index.cgi line 9 <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US"><head><title>U +ntitled Document</title> </head><body>Content-Type: COmpile 1Content-type: text/html <H1>Software error:</H1> <PRE>install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC ( +@INC contains: ./ /usr/lib/perl5/5.6.1/cygwin-multi /usr/lib/perl5/5. +6.1 /usr/lib/perl5/site_perl/5.6.1/cygwin-multi /usr/lib/perl5/site_p +erl/5.6.1 /usr/lib/perl5/site_perl .) at (eval 10) line 3. Perhaps the DBD::mysql perl module hasn't been fully installed, or perhaps the capitalisation of 'mysql' isn't right. Available drivers: ExampleP, Proxy. at index.cgi line 34 </PRE> <P> For help, please send mail to this site's webmaster, giving this error + message and the time and date of the error. [Tue Mar 4 20:28:32 2003] index.cgi: install_driver(mysql) failed: Ca +n't locate DBD/mysql.pm in @INC (@INC contains: ./ /usr/lib/perl5/5.6 +.1/cygwin-multi /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/c +ygwin-multi /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl . +) at (eval 10) line 3. [Tue Mar 4 20:28:32 2003] index.cgi: Perhaps the DBD::mysql perl modu +le hasn't been fully installed, [Tue Mar 4 20:28:32 2003] index.cgi: or perhaps the capitalisation of + 'mysql' isn't right. [Tue Mar 4 20:28:32 2003] index.cgi: Available drivers: ExampleP, Pro +xy. [Tue Mar 4 20:28:32 2003] index.cgi: at index.cgi line 34 \[\033]0;\w\007 \033[32m\]\u@\h \[\033[33m\w\033[0m\] $
I then downloaded DBD-mysql-2.1026, but when I typed perl Makefile.pl I got -
Cant execute "mysql_config"
What should I do - THank you

In reply to Mysql problem on Cygwin by Anonymous Monk

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.