Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Perl on Linux Ubunta

by mikasue (Friar)
on Dec 27, 2007 at 00:10 UTC ( [id://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!

Replies are listed 'Best First'.
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 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 FunkyMonk (Chancellor) 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 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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-04-24 20:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found