CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Can't locate loadable object for module Math::Pari in @INC

 



hem
User

Apr 16, 2009, 9:12 PM

Post #1 of 20 (12261 views)
Can't locate loadable object for module Math::Pari in @INC Can't Post

I am trying to run Net:SSH and get the following error

Any Ideas how to fix it on Windows Xp

Thanks


KevinR
Veteran


Apr 16, 2009, 11:05 PM

Post #2 of 20 (12260 views)
Re: [hem] Can't locate loadable object for module Math::Pari in @INC [In reply to] Can't Post

Sounds like the module needs to be installed or has not been installed properly.
-------------------------------------------------


hem
User

Apr 17, 2009, 8:03 AM

Post #3 of 20 (12255 views)
Re: [KevinR] Can't locate loadable object for module Math::Pari in @INC [In reply to] Can't Post

Hi

I could not find it in ppm , so I had to manually copy it

Is there any other way I can install it

Thanks


FishMonger
Veteran / Moderator

Apr 17, 2009, 9:10 AM

Post #4 of 20 (12254 views)
Re: [hem] Can't locate loadable object for module Math::Pari in @INC [In reply to] Can't Post

Manually copying it won't work. It needs to be properly installed.

You also need to add 1 or more ppm repositories.

Which version of Perl are you using i.e. what is the output of perl -v?


hem
User

Apr 17, 2009, 10:09 AM

Post #5 of 20 (12250 views)
Re: [FishMonger] Can't locate loadable object for module Math::Pari in @INC [In reply to] Can't Post

Here it is
This is perl, v5.8.9 built for MSWin32-x86-multi-thread
(with 9 registered patches, see perl -V for more detail)

Thanks


FishMonger
Veteran / Moderator

Apr 17, 2009, 11:02 AM

Post #6 of 20 (12246 views)
Re: [hem] Can't locate loadable object for module Math::Pari in @INC [In reply to] Can't Post

Add these 2 repositories:

http://theoryx5.uwinnipeg.ca/ppms/
http://www.bribes.org/perl/ppm/

Here's a more complete list of available repositories.
http://win32.perl.org/wiki/index.php?title=PPM_Repositories

Install either or both of these modules (which are in the theoryx5 repo):
Net::SSH2
Net::SSH::Perl this one requires lots of dependencies

Then install Math::Pari


(This post was edited by FishMonger on Apr 17, 2009, 11:03 AM)


KevinR
Veteran


Apr 17, 2009, 11:16 AM

Post #7 of 20 (12241 views)
Re: [FishMonger] Can't locate loadable object for module Math::Pari in @INC [In reply to] Can't Post

You can install modules with the CPAN shell using activeperl if you really want to. You will need a C compiler for non-pure perl modules and dmake or nmake. I think the PPM instructions explain this.
-------------------------------------------------


hem
User

Apr 17, 2009, 11:22 AM

Post #8 of 20 (12241 views)
Re: [FishMonger] Can't locate loadable object for module Math::Pari in @INC [In reply to] Can't Post

Hi

I tried doing it but it failed with the following error in PPM:

Synchronizing Database ... done
Synchronizing Database ... done
Downloading bribes packlist ... failed 501 Protocol scheme 'http' is not supported
Downloading bribes packlist ... failed 501 Can't locate object method "new" via package "LWP::Protocol::http"
Downloading bribes packlist ... failed 501 Can't locate object method "new" via package "LWP::Protocol::http"
Synchronizing Database ... done
Synchronizing Database ... done


FishMonger
Veteran / Moderator

Apr 17, 2009, 12:30 PM

Post #9 of 20 (12232 views)
Re: [hem] Can't locate loadable object for module Math::Pari in @INC [In reply to] Can't Post

Did you get the same error on the theoryx5 repo? That's where these modules are located.


hem
User

Apr 17, 2009, 1:10 PM

Post #10 of 20 (12229 views)
Re: [FishMonger] Can't locate loadable object for module Math::Pari in @INC [In reply to] Can't Post

Hi

Unfortunately Yes

Synchronizing Database ... done
Downloading uwinnipeg packlist ... failed 501 Protocol scheme 'http' is not supported
Downloading uwinnipeg packlist ... failed 501 Can't locate object method "new" via package "LWP::Protocol::http"
Downloading uwinnipeg packlist ... failed 501 Can't locate object method "new" via package "LWP::Protocol::http"
Synchronizing Database ... done


FishMonger
Veteran / Moderator

Apr 17, 2009, 1:24 PM

Post #11 of 20 (12226 views)
Re: [hem] Can't locate loadable object for module Math::Pari in @INC [In reply to] Can't Post

Are you connecting to the Internet through a proxy server?

Is the Windows firewall turned on? If so, turn it off and see if you get the same error.

It's possible that your LWP modules are currupt. If that's the case, you'll need to uninstall/reinstall Perl.


hem
User

Apr 17, 2009, 1:26 PM

Post #12 of 20 (12224 views)
Re: [FishMonger] Can't locate loadable object for module Math::Pari in @INC [In reply to] Can't Post

Hi

But i am able to use PPM for installing packages.It only fails when i try repositories?

I disabled the firewall and I don't think I am connecting using a proxy server (I will check it though)



Thanks again


Tumata
User


Apr 17, 2009, 1:35 PM

Post #13 of 20 (12221 views)
Re: [hem] Can't locate loadable object for module Math::Pari in @INC [In reply to] Can't Post

See my comment in the previous thread.


hem
User

Apr 23, 2009, 8:14 AM

Post #14 of 20 (12160 views)
Re: [Tumata] Can't locate loadable object for module Math::Pari in @INC [In reply to] Can't Post

Hi

I used a different machine and installed Net-SSH-Perl and Math-Pari using ppm . I was able to get past the previous error but now it fails because of :

C:\Perl\SSh>perl SSh.pl
The getpwuid function is unimplemented at C:/Perl/site/lib/Net/SSH/Perl.pm line
110.

I am using:
This is perl, v5.8.9 built for MSWin32-x86-multi-thread
(with 9 registered patches, see perl -V for more detail)

and Windows XP

Any pointers

Thanks


C:\Perl\SSh>


FishMonger
Veteran / Moderator

Apr 23, 2009, 8:48 AM

Post #15 of 20 (12158 views)
Re: [hem] Can't locate loadable object for module Math::Pari in @INC [In reply to] Can't Post

Please show us your code.


hem
User

Apr 23, 2009, 9:03 AM

Post #16 of 20 (12155 views)
Re: [FishMonger] Can't locate loadable object for module Math::Pari in @INC [In reply to] Can't Post

Hi

There it is

use Net::SSH::Perl;
my $host = "Comp Name";
$user = "abc";
$pass = "def";
my $ssh = Net::SSH::Perl->new($host);
$ssh->login($user, $pass);
$cmd = "ls -l";
my($stdout, $stderr, $exit) = $ssh->cmd($cmd);
print "All $stdout, $stderr, $exit\n";

Code



      
    


KevinR
Veteran


Apr 23, 2009, 2:58 PM

Post #17 of 20 (12152 views)
Re: [hem] Can't locate loadable object for module Math::Pari in @INC [In reply to] Can't Post

The module may only be written for systems that support the get* functions, which Windows doesn't support. You may need to find a Win32 module that you can use instead of the one you are trying to use. Maybe Fish or Larry will know something.
-------------------------------------------------


hem
User

Apr 27, 2009, 9:03 AM

Post #18 of 20 (12129 views)
Re: [KevinR] Can't locate loadable object for module Math::Pari in @INC [In reply to] Can't Post

Hi

has anyone been able to use SSH on Windows XP

Looks like every time I solve something i run into a different problem

Can someone who has this working help or guide me

Appreciate it

Thanks

In Reply To


hem
User

Apr 30, 2009, 12:04 PM

Post #19 of 20 (12077 views)
Re: [hem] Can't locate loadable object for module Math::Pari in @INC [In reply to] Can't Post

Added debugging and i see that the script gets hung at this pont

Any ideas please ?

Thanks


Elvis: Received host key, type 'ssh-dss'.
Elvis: Host 'PowerPC' is known and matches the host key.
Elvis: Computing shared secret key.
Elvis: Verifying server signature.
Elvis: Waiting for NEWKEYS message.
Elvis: Enabling incoming encryption/MAC/compression.
Elvis: Send NEWKEYS, enable outgoing encryption/MAC/compression.
Elvis: Sending request for user-authentication service.
Elvis: Service accepted: ssh-userauth.
Elvis: Trying empty user-authentication request.
Elvis: Authentication methods that can continue: publickey,gssapi-with-mic,pass
word.
Elvis: Next method to try is publickey.
Elvis: Next method to try is password.
Elvis: Trying password authentication.
Elvis: Login completed, opening dummy shell channel.
Elvis: channel 0: new [client-session]
Elvis: Requesting channel_open for channel 0.
Elvis: channel 0: open confirm rwindow 0 rmax 32768
Elvis: Got channel open confirmation, requesting shell.
Elvis: Requesting service shell on channel 0.
Elvis: channel 1: new [client-session]
Elvis: Requesting channel_open for channel 1.
Elvis: Entering interactive session.
Elvis: Sending command: ls -l >file.txt
Elvis: Requesting service exec on channel 1.
Elvis: channel 1: open confirm rwindow 0 rmax 32768


KevinR
Veteran


Apr 30, 2009, 3:10 PM

Post #20 of 20 (12074 views)
Re: [hem] Can't locate loadable object for module Math::Pari in @INC [In reply to] Can't Post

Sorry, I have no erxperience in this are. Try www.perlmonks.com if nobody here is able to help further.
-------------------------------------------------

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives