Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Tk module installation by cpan

by vinoth.ree (Parson)
on Aug 14, 2010 at 10:43 UTC ( #855057=perlquestion: print w/ replies, xml ) Need Help??
vinoth.ree has asked for the wisdom of the Perl Monks concerning the following question:

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?

Comment on Tk module installation by cpan
Re: Tk module installation by cpan
by marto (Chancellor) on Aug 14, 2010 at 11:01 UTC

    Looks like you're still in the same cpan session in which the Tk installation failed. Exit the cpan session, then do a cpan Tk. I'm sure this is also available via apt-get: apt-get install perl-tk, since you seem to be trying to install to the system perl. See Re: LWP::UserAgent @ Ubuntu 8.04 64-Bit for advice.

      Thanks you!

        Hi,

        I have the same like issue while i install the Tk perl module. How you are rectified it, And my error is.

        While i executing the command in CPAN look Tk. I comes out of the cpan prompt. But the process is running at backend. After wards i have manually killed the process using kill -9 process_id

        cpan[1]> look Tk Reading '/install/others/.cpan/Metadata' Database was generated on Mon, 17 Jun 2013 05:41:03 GMT Running look for module 'Tk' Trying to open a subshell in the build directory... Checksum for /install/others/.cpan/sources/authors/id/S/SR/SREZIC/Tk-8 +04.031.tar.gz ok Scanning cache /install/others/.cpan/build for sizes ...................................................................... +......DONE /bin/tar: Read 4608 bytes from - Working directory is /install/others/.cpan/build/Tk-804.031-vGSB5p bash: export: `/home/iesadm/.bashrc': not a valid identifier bash-3.2$
        bash-3.2$ cd /install/others/.cpan/build/Tk-804.031 bash-3.2$ pwd /install/others/.cpan/build/Tk-804.031 bash-3.2$ perl Makefile.PL INC="-I/install/others/.cpan/build/libX/lib +X11-1.6.0/" PREFIX=/install/others /usr/bin/perl is installed in /usr/lib64/perl5/5.8.8/x86_64-linux-thre +ad-multi okay PPM for perl5.008008 Test Compiling config/perlrx.c Test Compiling config/pmop.c Test Compiling config/pregcomp2.c Test Compiling config/regexp511.c Test Compiling config/signedchar.c Test Compiling config/Ksprintf.c Test Compiling config/svtrv.c Test Compiling config/copstashset.c Test Compiling config/tod.c Test Compiling -DTIMEOFDAY_TZ config/tod.c TZ gettimeofday() Using -L/usr/lib64 to find /usr/lib64/libX11.so.6.2.0 Cannot find X include files via /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.

        Thanks,
        Shanmugam A.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://855057]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2014-11-24 22:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (147 votes), past polls