Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to install CPAN without using yum on Linux? Post 302949283 by TioTony on Wednesday 8th of July 2015 04:54:36 PM
Old 07-08-2015
I believe you can extract it to any directory you like. Then you need to run:
1. perl Makefile.PL
2. make
3. make test
4. make install

If you run into errors with these commands (like missing libraries) and don't see any obvious solutions (like a typo) I suggest waiting until your RHN registration is complete as it will most likely be a much simpler solution.
This User Gave Thanks to TioTony For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

CYGWIN/CPAN install of Expect.pm

I am attempting to install a Perl Expect module via the CPAN . CPAN goes through the process but nothing happens, sample perl scripts can not find the Expect Module. CPAN was configured via the Default process " Are you ready for manual configuration? " answered "no". CPAN install seemed to find... (1 Reply)
Discussion started by: white222
1 Replies

2. Linux

install yum

I have a centos 4.x box and for some reason yum is not installed on it. Is there a howto on how to do this? thanks! (3 Replies)
Discussion started by: mcraul
3 Replies

3. Shell Programming and Scripting

[Perl] How to install with CPAN specified version of module

Hello all, i am searching how to install a module but the question is : howto specify CPAN to install a determined version of the module ? In my case i want to install DBD:Oracle1.14 and not version 1.23 proposed ! Any idea welcome ! :rolleyes: Thanks ! (1 Reply)
Discussion started by: sun_cracker
1 Replies

4. Shell Programming and Scripting

Error while trying to install from CPAN

Hi i was trying to install Text::CSV from cpan... it seemed to have downloaded everythign properly but was not able to run the make file... do u have any idea as to why this happened?? Install: ============================= If you install Text::CSV_XS v.0.70, it makes Text::CSV faster. ... (5 Replies)
Discussion started by: VGR
5 Replies

5. Red Hat

how can i get the install path from yum?

Hello all i install several application using yum in CentOS now i like to see the installed application path's where each component yum downloaded got installed how can i do that ? (1 Reply)
Discussion started by: umen
1 Replies

6. OS X (Apple)

Unable to install Perl module via CPAN

Hi, I am trying to install Unicode::String from the cpan shell, and here is what I get: Checking if your kit is complete... Looks good Writing Makefile for Unicode::String cp String.pm blib/lib/Unicode/String.pm cp lib/Unicode/CharName.pm blib/lib/Unicode/CharName.pm... (3 Replies)
Discussion started by: psychomachine
3 Replies

7. UNIX for Dummies Questions & Answers

Trying to install using YUM

Hi, working on CentOS 5.7 64 bit. I need to install syslog-ng. First I downloaded syslog-ng RPM. When I install I get many dependencies error messages. rpm -ivh syslog-ng-3.3.3-1.mga2.x86_64.rpm warning: syslog-ng-3.3.3-1.mga2.x86_64.rpm: Header V3 RSA/SHA1 signature: NOKEY, key ID... (2 Replies)
Discussion started by: samnyc
2 Replies

8. Shell Programming and Scripting

Unable to install module using cpan

Hi, I am unable to install module using cpan. It says 407 Proxy Authentication Required I did setup proxy server and given username and password in .bashrc file and apt.conf file. export http_proxy=http://username:password@proxyserver:portno/ However, still unable to install... (1 Reply)
Discussion started by: Anjan1
1 Replies

9. Programming

How to automatically install all modules required by a script from CPAN?

Having a script.pl how can I automatically download from CPAN all required modules and install and update as required? Something like "emerge -uDNav world" for the perl? ---------- Post updated at 05:38 PM ---------- Previous update was at 05:28 PM ---------- Doesn't matter I've found it ... (6 Replies)
Discussion started by: Tribe
6 Replies

10. UNIX for Beginners Questions & Answers

Installation of virt-manager while yum update and yum install rhvm does not work

I have downloaded RHEV-H 4.2 Red Hat Virtualization - Red Hat Customer Portal (RHVirtualization 4.2 Host and Manager iso). I uploaded the image and installed on an HP G9 server baremetal. I found I dont have a WAN/net connectivity later on HPG9 server. How can I still install virt-manager on... (1 Reply)
Discussion started by: Paras Pandey
1 Replies
CPANPLUS::Dist::MM(3perl)				 Perl Programmers Reference Guide				 CPANPLUS::Dist::MM(3perl)

NAME
CPANPLUS::Dist::MM - distribution class for MakeMaker related modules SYNOPSIS
$mm = CPANPLUS::Dist::MM->new( module => $modobj ); $mm->create; # runs make && make test $mm->install; # runs make install DESCRIPTION
"CPANPLUS::Dist::MM" is a distribution class for MakeMaker related modules. Using this package, you can create, install and uninstall perl modules. It inherits from "CPANPLUS::Dist". ACCESSORS
parent() Returns the "CPANPLUS::Module" object that parented this object. status() Returns the "Object::Accessor" object that keeps the status for this module. STATUS ACCESSORS
All accessors can be accessed as follows: $mm->status->ACCESSOR makefile () Location of the Makefile (or Build file). Set to 0 explicitly if something went wrong. make () BOOL indicating if the "make" (or "Build") command was successful. test () BOOL indicating if the "make test" (or "Build test") command was successful. prepared () BOOL indicating if the "prepare" call exited successfully This gets set after "perl Makefile.PL" distdir () Full path to the directory in which the "prepare" call took place, set after a call to "prepare". created () BOOL indicating if the "create" call exited successfully. This gets set after "make" and "make test". installed () BOOL indicating if the module was installed. This gets set after "make install" (or "Build install") exits successfully. uninstalled () BOOL indicating if the module was uninstalled properly. _create_args () Storage of the arguments passed to "create" for this object. Used for recursive calls when satisfying prerequisites. _install_args () Storage of the arguments passed to "install" for this object. Used for recursive calls when satisfying prerequisites. METHODS
$bool = $dist->format_available(); Returns a boolean indicating whether or not you can use this package to create and install modules in your environment. $bool = $dist->init(); Sets up the "CPANPLUS::Dist::MM" object for use. Effectively creates all the needed status accessors. Called automatically whenever you create a new "CPANPLUS::Dist" object. $bool = $dist->prepare([perl => '/path/to/perl', makemakerflags => 'EXTRA=FLAGS', force => BOOL, verbose => BOOL]) "prepare" preps a distribution for installation. This means it will run "perl Makefile.PL" and determine what prerequisites this distribution declared. If you set "force" to true, it will go over all the stages of the "prepare" process again, ignoring any previously cached results. When running "perl Makefile.PL", the environment variable "PERL5_CPANPLUS_IS_EXECUTING" will be set to the full path of the "Makefile.PL" that is being executed. This enables any code inside the "Makefile.PL" to know that it is being installed via CPANPLUS. Returns true on success and false on failure. You may then call "$dist->create" on the object to create the installable files. $href = $dist->_find_prereqs( file => '/path/to/Makefile', [verbose => BOOL]) Parses a "Makefile" for "PREREQ_PM" entries and distills from that any prerequisites mentioned in the "Makefile" Returns a hash with module-version pairs on success and false on failure. $bool = $dist->create([perl => '/path/to/perl', make => '/path/to/make', makeflags => 'EXTRA=FLAGS', prereq_target => TARGET, skiptest => BOOL, force => BOOL, verbose => BOOL]) "create" creates the files necessary for installation. This means it will run "make" and "make test". This will also scan for and attempt to satisfy any prerequisites the module may have. If you set "skiptest" to true, it will skip the "make test" stage. If you set "force" to true, it will go over all the stages of the "make" process again, ignoring any previously cached results. It will also ignore a bad return value from "make test" and still allow the operation to return true. Returns true on success and false on failure. You may then call "$dist->install" on the object to actually install it. $bool = $dist->install([make => '/path/to/make', makemakerflags => 'EXTRA=FLAGS', force => BOOL, verbose => BOOL]) "install" runs the following command: make install Returns true on success, false on failure. $bool = $dist->write_makefile_pl([force => BOOL, verbose => BOOL]) This routine can write a "Makefile.PL" from the information in a module object. It is used to write a "Makefile.PL" when the original author forgot it (!!). Returns 1 on success and false on failure. The file gets written to the directory the module's been extracted to. perl v5.14.2 2014-09-29 CPANPLUS::Dist::MM(3perl)
All times are GMT -4. The time now is 04:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy