You need the X11 library header files, which are provided in the package separate from the one providing /usr/lib64/libX11.so, with "-devel" at the end of the name. Probably it's called "xorg-x11-devel" or "libX11-devel".

Since you are not root, download this package (manually from a mirror site, or using yum install xorg-x11-devel -y --downloadonly --downloaddir=., if "downloadonly" YUM plugin is installed), extract it somewhere (rpm2cpio file.rpm | cpio -idmv) and append the path to <extracted rpm root>/usr/include to the Makefile.PL parameters, like this:

$ cpan cpan[1]> look Tk $ perl Makefile.PL INC="-I/home/username/xorg-x11-devel-extracted/usr/ +include" <other parameters, if needed> (check if Makefile was successfully generated) $ make $ make test $ make install $ exit cpan[2]> exit $

If Makefile.PL asks you for some other library which is not installed on the system, you'll have to build it, then install somewhere you have write access to, then add another -I<somewhere> to INC and -L<directory/where/*.so/are/present> to LIBS (read ExtUtils::MakeMaker for more information on this topic).

It's probably easier to ask the administrator to install perl-Tk RPM package.


In reply to Re: install Perl Module Tk in Linux RedHatOS by aitap
in thread install Perl Module Tk in Linux RedHatOS by shan_emails

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.