Web Hosting Talk







View Full Version : RedHat Administration


pickles
10-17-2003, 09:35 AM
Hi Folks,

I have a Sun background, and need some pointers administering a Linux System. I recently signed up for a low-end dedicated server with wholesaleinternet.com to do my secondary dns serving.

I have a perl script that fetches necessary information that is failing because it requires some perl mods that are not present. I would like to be able to install things like this on my own instead of involving support.

Right now I'm stuck on getting DBD installed. In a Solaris environment I would do this with perl -MCPAN -e shell; install DBD.

CPAN couldn't build this on the Linux box, so I figured I would build it from the source. This also fails. In the README file I'm told to rpm -i DBD-MySQL. Reading the man page on rpm, it sounds like Sun's pkgadd utility. It requires the DBD-MySql package, which I don't see anywhere in the source tree that CPAN downloaded.

Can some one give me a brief outline on the following.

1) What is the best method of obtaining and installing perl mods for a Linux system.
2) Is CPAN something that is NOT used in this environment.
3) Given I'm a reasonably competent Solaris admin, what is the most terse book/document available that I can use to get up to speed quickly and later use as a reference. I really don't want a book that starts of explaing the "cd" command.

I welcome all pointers. I'm fond of "RTFM", so if you'll want to just tell me where the "FM" is that will be fine.


Thanks in advance to anyone that will reply.

Bob

heyzuess
10-17-2003, 09:42 AM
rpm files are pre-compiled packages that redhat (not always) distributes.

You can find that from one of their ftp download sites, check http://www.redhat.com/mirrors to find one close to you.

You will also need the perl-DBI rpm as well.

Curious though why the module wouldn't compile. Have you tried compiling it by hand?

I would guess that it couldn't find the mysql include or header files.

dynamicnet
10-17-2003, 09:58 AM
Greetings:

While we work with Windows 200x, Sun Solaris, and FreeBSD, we work mostly with RedHat Linux.

We use CPAN all of the time on RedHat Linux as well as Sun Solaris.

It is possible that some components of mySQL are not installed, and that's why CPAN failed on the DBI modules.

But I know CPAN works as well as DBI installs; we just updated a half a dozen RedHat servers with the latest Bundle::DBI this morning using CPAN.

Thank you.