Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Perl on Linux Ubunta

by mikasue (Friar)
on Dec 27, 2007 at 00:10 UTC ( #659131=perlquestion: print w/ replies, xml ) Need Help??
mikasue has asked for the wisdom of the Perl Monks concerning the following question:

I successfully installed Perl on Lunix Ubunta but I can't install Tk.
/usr/bin/perl is installed in /usr/lib/perl/5.8 okay PPM for perl5.008007 Test Compiling config/perlrx.c Test Compiling config/pmop.c Test Compiling config/pregcomp2.c Test Compiling config/signedchar.c Test Compile/Run config/unsigned.c Test Compiling config/Ksprintf.c Test Compiling -DSPRINTF_RETURN_CHAR config/Ksprintf.c Test Compiling config/tod.c Test Compiling -DTIMEOFDAY_TZ config/tod.c Test Compiling -DTIMEOFDAY_NO_TZ config/tod.c Test Compiling -DTIMEOFDAY_DOTS config/tod.c Problem gettimeofday() Using -L/usr/lib to find /usr/lib/libX11.so.6.2.0 Cannot find X include files via /usr/include Cannot find X include files anywhere at ./myConfig line 369. Compilation failed in require at Makefile.PL line 37. BEGIN failed--compilation aborted at Makefile.PL line 39. Running make test Make had some problems, maybe interrupted? Won't test Running make install Make had some problems, maybe interrupted? Won't install
Thanks!

Comment on Perl on Linux Ubunta
Download Code
Re: Perl on Linux Ubunta
by eserte (Deacon) on Dec 27, 2007 at 00:25 UTC
    From README.linux (which also applies to Ubuntu, I guess):
    Debian Linux: The libx11-dev and x-dev packages are necessary to compile Perl/Tk. The libfreetype6-dev, libxrender-dev and libxft-dev packages are necessary to compile with XFT=1.
Re: Perl on Linux Ubunta
by FunkyMonk (Canon) on Dec 27, 2007 at 00:45 UTC
    I haven't spent much time with Ubuntu Linux, but can't you just apt-get install libtk-perl? apt-get will take care of any other packages needed

      If you're using the system Perl (as the OP seems to be doing), you'd use apt-get (or aptitude). If you're using your own Perl that you've installed yourself, you'd presumably use that Perl's cpanp.

Re: Perl on Linux Ubunta
by sub_chick (Hermit) on Dec 27, 2007 at 01:43 UTC
    Use this to install the proper package:

    sudo apt-get install perl-tk

    Read up on the package HERE


    Es gibt mehr im Leben als Bücher, weißt du. Aber nicht viel mehr. - (Die Smiths)"
Re: Perl on Linux Ubunta
by derby (Abbot) on Dec 27, 2007 at 15:02 UTC

    Well ... this post has me confused on several levels. First ... I think you mean Linux Ubuntu (not Lunix Ubunta). And second, if you're using Ubuntu, why are you using ActiveState Perl? I know that ActiveState Perl is available for Linux but I would recommend using Ubuntu's repository (apt-get/aptitude) for installing perl packages first and then CPAN only if the package is not in Ubuntu's repository. As you can see, using yet another perl package manager just muddies the water.

    -derby

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2014-12-25 11:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (160 votes), past polls