Redhat linux

Trying to install perl modules for the PTKDB, which requires Tk, which require X11 I think.

is there any way to have CPAN or YUM just go and install what is needed?
Who is Participating?
bs98909Connect With a Mentor Author Commented:
I have tried several times now.

I think I finally have it:

# cpan
Terminal does not support AddHistory.
cpan shell -- CPAN exploration and modules installation (v1.7602)
ReadLine support available (try 'install Bundle::CPAN')
cpan> install Tk
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
  Database was generated on Tue, 02 Jun 2009 06:26:57 GMT
Tk is up to date.
cpan> install ptkdb
Warning: Cannot install ptkdb, don't know what it is.
Try the command
    i /ptkdb/
to find objects with matching identifiers.
cpan> i /ptkdb/
Distribution    A/AE/AEPAGE/Devel-ptkdb-1.1091.tar.gz
Module          Devel::ptkdb    (A/AE/AEPAGE/Devel-ptkdb-1.1091.tar.gz)
Module          Enbugger::ptkdb (J/JJ/JJORE/Enbugger-2.005.tar.gz)
3 items found
cpan> install Devel::ptkdb
Running install for module Devel::ptkdb
Running make for A/AE/AEPAGE/Devel-ptkdb-1.1091.tar.gz
CPAN: Digest::MD5 loaded ok
CPAN: Compress::Zlib loaded ok
Checksum for /root/.cpan/sources/authors/id/A/AE/AEPAGE/Devel-ptkdb-1.1091.tar.gz ok
Scanning cache /root/.cpan/build for sizes
Devel-ptkdb-1.1091/README Going to build A/AE/AEPAGE/Devel-ptkdb-1.1091.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for Devel::ptkdb
cp blib/lib/Devel/
Manifying blib/man3/Devel::ptkdb.3pm
  /usr/bin/make  -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch"
ok 1
  /usr/bin/make test -- OK
Running make install
Installing /usr/lib/perl5/5.8.8/Devel/
Installing /usr/share/man/man3/Devel::ptkdb.3pm
Writing /usr/lib/perl5/5.8.8/i386-linux-thread-multi/auto/Devel/ptkdb/.packlist
Appending installation info to /usr/lib/perl5/5.8.8/i386-linux-thread-multi/perllocal.pod
  /usr/bin/make install  -- OK
cpan> quit

Open in new window

The CPAN will install all needed perl modules, following the dependencies for each.  But if a particular perl module requires a non-perl package to be installed through YUM, it will not automatically take care of it.

I'm not as familiar with YUM, but I use apt, and I'm guessing YUM is similar.  If so, when you select a package to add, it'll add all dependencies.  So, as long as ptkdb is an available package, you should be able to install it.  To search, run the command:
    yum search ptkdb
If you also want Tk, search for it with:
    yum search perl-Tk
Use this command to install packages with yum, you have to run either search or install to find out if the package is offered by RedHat and supported. The worst thing will happen is it will come back saying the package was not found, in which case you have to download the RPM with other dependencies or compile everything from the source.
Also, if the ptkdb package is found, it will automatically install needed dependencies, thus you would not need to use yum on Tk ....etc.

Good Luck!
yum install ptkdb*

Open in new window

Were you able to install ptkdb?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.