LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-10-2014, 12:42 PM   #1
User247
Member
 
Registered: Mar 2013
Location: Canada
Distribution: fedoera 27 (was fedora 19)
Posts: 37

Rep: Reputation: Disabled
Smile command for installing CPAN .tar.gz


Hi,

I'm trying to install CPAN and have downloaded CPAN-2.05.tar.gz .
to the Downloads directory.

As root, have tar -zxvf CPAN-2.05.tar.gz, then to do ./configure
but that is about it. I tried the rest of the installation with
commands - make, test, install but all without much luck. Can anyone
point me to the correct commands to use for a successful installation.

Thanks a lot.

Regards.
 
Old 05-10-2014, 02:06 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,553

Rep: Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946
Quote:
Originally Posted by User247 View Post
Hi,
I'm trying to install CPAN and have downloaded CPAN-2.05.tar.gz. to the Downloads directory.

As root, have tar -zxvf CPAN-2.05.tar.gz, then to do ./configure but that is about it. I tried the rest of the installation with commands - make, test, install but all without much luck. Can anyone point me to the correct commands to use for a successful installation.
It's helpful if you provide details when asking a question. Just saying you didn't have much luck tells us nothing. You don't tell us what version/distro of Linux you're using, or where you got the instructions you're following.

If you downloaded the .gz file from CPAN, it builds like any perl module builds. That is:
Go into the directory created when you uncompressed the file
  • Type in "perl Makefile.PL"
  • Type in "make"
  • Type in "make test"
  • Type in "make install" (if not running as root, you may have to type in "sudo make install")
That's it.
 
1 members found this post helpful.
Old 05-13-2014, 06:37 AM   #3
User247
Member
 
Registered: Mar 2013
Location: Canada
Distribution: fedoera 27 (was fedora 19)
Posts: 37

Original Poster
Rep: Reputation: Disabled
Command for installing CPAN .tar.gz

Hi,

Apology for this late response, just got back from a short trip.

My Linux Distribution is Fedora 19 and have got MySQL installed.
I am trying to install Perl support for MySQL. CPAN was downloaded
from it official website.

I started to learn Linux with Fedora 7 when installation takes 5 cds, but
have pop-in and out a few times. Recently returned to Linux and found it
is amazingly much easier to use than the early versions.

Will work on your command lines and post soon.

Thanks.

Regards.

User247
 
Old 05-13-2014, 08:36 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,553

Rep: Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946
Quote:
Originally Posted by User247 View Post
Hi,
Apology for this late response, just got back from a short trip.

My Linux Distribution is Fedora 19 and have got MySQL installed. I am trying to install Perl support for MySQL. CPAN was downloaded from it official website.

I started to learn Linux with Fedora 7 when installation takes 5 cds, but have pop-in and out a few times. Recently returned to Linux and found it is amazingly much easier to use than the early versions.

Will work on your command lines and post soon.
If this is a new installation, stop where you are. Fedora 19 is a bit older...the latest is 20, with 21 being worked on right now. If you're just beginning again, loading the latest version is the best way to go. And you can easily install Perl support for MySQL WITHOUT the CPAN module. Doing a fresh installation, note that you can select different package groups. If you expand them, you can see individual packages, probably under the "Development" header. From there, select the perl modules you want, one of which will be the DBD module.

Also, you can install the DBD module by itself.
 
Old 05-13-2014, 08:59 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The usual "Fedora perl modules - MySQL" are included in Fedora 19 :

# yum install \
perl-Class-DBI-mysql perl-Config-Extend-MySQL perl-DBD-MySQL \
perl-DateTime-Format-MySQL perl-Time-Piece-MySQL

-
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] LFS 7.3--> tar xf lfs-bootscripts-20130123.tar.bz2 , bash : tar : command not found AkiraMizuki Linux From Scratch 3 06-01-2013 03:00 AM
[SOLVED] Can't install Tk (Tk-804.029.tar.gz) from CPAN in slackware-current x86_64 pdags Slackware 3 03-24-2011 10:33 AM
cpan command not working prakash.akumalla Linux - Newbie 2 11-28-2008 09:14 AM
Installing an RPM or Tar.GZ package on CDROM in Command Line. mr.linux.noob Linux - General 10 10-28-2008 01:04 AM
CPAN.pm needs either the external programs tar, gzip and bzip2 anndy Linux - Newbie 4 09-27-2008 07:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration