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?
Brian Sretired geekAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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?
Brian Sretired geekAuthor 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


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.