LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-17-2011, 10:22 AM   #1
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,115

Rep: Reputation: 58
Print output of a script to screen using Perl/Multiple installation of Perl Modules


I have been using a tool called CPANPLUS and trying to install multiple perl modules via this script file containing the modules I want installed. It worked once and then second time I ran it, it didnt work. When it executes, it doesn’t complete and I want to see the output from the script to the screen as it executes so I can see what is going on. I am new to programming to show mercy. I will break out the old perl and c books later on. thanks

This is what I do:

perl multi_module.pl ---> nothing happens

This is what is inside

PHP Code:
   #!/usr/bin/perl -w
    
use CPANPLUS;
    use 
strict;

    
CPANPLUS::Backend->newconf => { prereqs => } )->install(
        
modules => [ qw(
            
DBI
            DBIx
::Simple
            DBD
::SQLite
            LWP
            WWW
::Mechanize
            String
::CRC32
            Digest
::MD4
            Crypt
::Password
            Digest
::CRC
            Digest
::HMAC
            IO
::Pty
        
) ]
    ); 
Also is there other methods in installing multiple Perl modules at the same time. It can be tedious and I want an easy method.Installing them one a time sucks.

I also read about autobundle

http://www.ibm.com/developerworks/op...l-depperl.html


Is this what I need?

 
Old 02-17-2011, 05:59 PM   #2
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,115

Original Poster
Rep: Reputation: 58
I figured it out:

PHP Code:
 #!/usr/bin/perl -w 
    
use CPANPLUS
    use 
strict

  print 
"  CPANPLUS::Backend->new( conf => { prereqs => 1 } )->install( "
        
modules => [ qw
            
DBI 
            DBIx
::Simple 
            DBD
::SQLite 
            LWP 
            WWW
::Mechanize 
            String
::CRC32 
            Digest
::MD4 
            Crypt
::Password 
            Digest
::CRC 
            Digest
::HMAC 
            IO
::Pty 
        
) ] 
    ); 
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with perl modules declaration and perl/cgi script shifter Programming 9 02-24-2010 09:09 AM
perl cpam modules installation issue jindalarpan Linux - Server 4 05-16-2008 11:53 PM
Print a diamond on the screen using Perl huey123 Programming 1 02-20-2008 05:43 AM
locate/print text in perl on screen Jerry Draper Programming 2 01-10-2006 11:36 AM
Perl modules installation problem on fc4 kartheekpn Linux - Software 0 08-09-2005 02:44 AM


All times are GMT -5. The time now is 01:00 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration