Hi

I tried to install Tk module by cpan, I got the following error message as,

Cannot find X include files via /usr/include
Cannot find X include files anywhere.
You probably need to install the X11 development package first.
On Debian Linux, these are the packages libx11-dev and x-dev.
Please see README.linux for more information.
No 'Makefile' created  SREZIC/Tk-804.029.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK
Running make test
  Make had some problems, won't test
Running make install
  Make had some problems, won't install
Failed during this command:
 SREZIC/Tk-804.029.tar.gz                     : writemakefile NO -- No 'Makefile' created
 

I installed the libx11-dev and x-dev debian package from lenny installation CD

I tried to reinstall the Tk module as 'install Tk', but it said error as

cpan8> install Tk
Running install for module 'Tk'
Running make for S/SR/SREZIC/Tk-804.029.tar.gz
  Has already been unwrapped into directory /root/.cpan/build/Tk-804.029-4hdpeo
  No 'Makefile' created
, won't make
Running make test
  Make had some problems, won't test
Running make install
  Make had some problems, won't install
 

Could you please tell me how to solve this problem?


In reply to Tk module installation by cpan by vinoth.ree

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.