Perl Module


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Perl Module
# 1  
Old 02-26-2009
Perl Module

Hi,
Please help me!!
Im wondering if anyone can help me with a problem i have with some perl modules.
My problem is:
I'm trying to connect remote host to a unix box from a windows machine. So i'm developing an application to do this.
I'm programming it in perl with tcl/tk Gui interface.
I'm having some trouble with the modules. Firstly i realize there are 2 ways to connect to the unix box. SSH1 and SSH2. I'm having trouble connecting both ways.
For a SSH1 connection i need to install the module Math-GMP?
And for SSH2 connection i need to install the module Math-Pari?
When i try to connect with SSH1, i get the error:
Can't locate Math/GMP.pm in @INC (@INC contains:
And with SSH2 i get:
Can't locate Math/Pari.pm
For SSH2, i downloaded the pari-2.3.4.tar.gz, extracted to C:\
Then in Math-Pari, within the Makefile.pl i pointed to
$paridir = "c:/pari-2.1.7";
But i still get an error here. The SSH2 way of connecting seems overcomplicated.
So i went back to SSH1, but i cannot find the location of GMP that works with SSH1.
I went to a website gmplib.org
and i downloaded gmp-4.2.4.tar.bz2, But i don't know how to install this on windows. I don't think i can.
ppm will not work for me. I'm using Perl Version : v5.10.0
So as you can see, i'm stuck, can anyone please assist me on what i should do next.
Thank you,
Philip
# 2  
Old 02-26-2009
Why doesn't PPM work for you (I assume you mean the manager shipped with ActivePerl)? And why don't you try Net::SSH or Net::SSH::Perl?
# 3  
Old 02-26-2009
Quote:
Originally Posted by pludi
Why doesn't PPM work for you (I assume you mean the manager shipped with ActivePerl)? And why don't you try Net::SSH or Net::SSH::Perl?
When i start ppm in dos, it takes a while before i have control over it as it Synchronizing with the database. I only see the packages i have in my list. i get the following error.

Code:
 Synchronizing Database ...
  Downloading ActiveState Package Repository packlist ... failed 500 Can't connect to ppm4.activestate.com:80 (connect: timeout)

I'm then not able to install any packages. I also have my firewall turned off.

I have downloaded NET::SSH and NET::SSH::PERL,
and installed them using nmake in windows.
But they require to have the pari installed or gmp installed.
SSH1 uses the following NET::SSH:PERL:SSH1
I have also tried that.

Additionally,
ppm seems to only have the packages i have installed, i don't know if this is true. I only think so because it does not allow me to install any of the packages in its list.

Last edited by Phi01; 02-26-2009 at 01:28 PM.. Reason: Additional Note.
# 4  
Old 02-26-2009
Quote:
Originally Posted by Phi01
Code:
 Synchronizing Database ...
  Downloading ActiveState Package Repository packlist ... failed 500 Can't connect to ppm4.activestate.com:80 (connect: timeout)

That's strange. Might there be something else blocking access to the site (company firewall/proxy maybe)?
Quote:
Originally Posted by Phi01
Additionally,
ppm seems to only have the packages i have installed, i don't know if this is true. I only think so because it does not allow me to install any of the packages in its list.
PPM usually starts with the list of installed modules. To change to a list of all modules, press Ctrl+1 or the leftmost button on the bar or go via the menu View->All Packages. If that still doesn't work, you could try installing the modules via the CPAN.pm module, which takes care of dependencies and correct installation paths.
Code:
C:\Perl\> perl -MCPAN -e shell

# 5  
Old 02-26-2009
hmm, well, its not the firewall, because i turned it off, but i do think its a proxy.
I've also tried with CPAN.pm in Dos, but again this has connection problems, it just hangs as it tries to fetch results.
How can i allow Dos to accept the proxy im using....
# 6  
Old 02-26-2009
You can configure PPM for proxies, see the help files.
# 7  
Old 02-26-2009
Ok guys, Thanks for your help, ppm seems to be working now, will check more out tomorrow. pludi thanks alot for your help, and Kevin too.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl script module

I took the copy of the production module to the home directory and executing the module. one of the test prdmsk.pm module is present in the home directory ctskk. would like to know whether the below syntax is correct. use strict; use lib "/home/ssprod/ctskk"; use lib::Prdmsk; ... (0 Replies)
Discussion started by: ramkumar15
0 Replies

2. Shell Programming and Scripting

Perl module

I am recieiving an out of memory issue in my perl module while updating the records in the oracle table. Let me know what are the check or troubleshoot steps need to be done from my end to fix the issue. (1 Reply)
Discussion started by: ramkumar15
1 Replies

3. Shell Programming and Scripting

Perl SSH without a perl module

I'm trying to create a perl script that will do 1 SSH session, but be able to write multiple commands to the session and receive multiple outputs. I know there are modules out there like Net:SSH::Perl, but I'm not allowed to use it. I was thinking of doing something like an open3 on an ssh... (4 Replies)
Discussion started by: mrwatkin
4 Replies

4. Shell Programming and Scripting

calling perl subroutine from perl expect module

All, Is it possible to call a subroutine from the perl expect module after logging to a system that is within the same program. My situation is I need to run a logic inside a machine that I'm logging in using the expect module, the logic is also available in the same expect program. Thanks,... (5 Replies)
Discussion started by: arun_maffy
5 Replies

5. Shell Programming and Scripting

Which Perl Module to use?

Hi, I need to read an excel binary file and write the data to a text file. Is it possible using Spreadsheet-ParseExcel-0.58 ? If not, is there any module available in CPAN to do this? Thanks, Js (1 Reply)
Discussion started by: jisha
1 Replies

6. UNIX for Dummies Questions & Answers

help in writing perl module

Hi i have written a perl script which was then converted to perl module by me. it works as expected. but i have to put it on many servers so i want to build a package for it. i dont know how to do that. just to check i copied perl module in "lib" directory which is working. ( directly copied... (1 Reply)
Discussion started by: zedex
1 Replies

7. Shell Programming and Scripting

Help with Perl Module

I dont know if this is a dumb question, but I am unable to move ahead and need help - There is a perl module called Header.pm which was written by someone else. I am trying to write a simple perl script which uses a function provided by the module. The function has been exported by the module... (9 Replies)
Discussion started by: NewDeb
9 Replies

8. Shell Programming and Scripting

Perl Module Help

Hi All, I am using a perl module Win32::AdminMisc in my perl script. When i running in activestate perl v5.10.0 it shows folling error --- Can't locate loadable object for module Win32::AdminMisc in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .) at example.pl Please reply. ... (7 Replies)
Discussion started by: suprcool
7 Replies

9. Shell Programming and Scripting

perl module question

Couple questions on perl module.. 1)where is the best place on web where it tells you what modules can do? For example, use Text::Autoformat Where is the best place on line or via command line to find the exact capability of autoformat? 2)Is there already a perl module to read *.cap... (1 Reply)
Discussion started by: convenientstore
1 Replies

10. Shell Programming and Scripting

Replace Perl Module name in all Perl scripts

I want to replace a Perl module name in all my Perl Scripts in the cgi-bin directory. How is it possible? I have the following statement in my scripts use myUtil; I want to change it to use myUtil777; Regards, Rahul (2 Replies)
Discussion started by: rahulrathod
2 Replies
Login or Register to Ask a Question