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



hem
User

Apr 16, 2009, 9:12 PM


Views: 29048
Can't locate loadable object for module Math::Pari in @INC

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


Views: 29047
Re: [hem] Can't locate loadable object for module Math::Pari in @INC

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


hem
User

Apr 17, 2009, 8:03 AM


Views: 29042
Re: [KevinR] Can't locate loadable object for module Math::Pari in @INC

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


Views: 29041
Re: [hem] Can't locate loadable object for module Math::Pari in @INC

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


Views: 29037
Re: [FishMonger] Can't locate loadable object for module Math::Pari in @INC

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


Views: 29033
Re: [hem] Can't locate loadable object for module Math::Pari in @INC

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


Views: 29028
Re: [FishMonger] Can't locate loadable object for module Math::Pari in @INC

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


Views: 29028
Re: [FishMonger] Can't locate loadable object for module Math::Pari in @INC

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


Views: 29019
Re: [hem] Can't locate loadable object for module Math::Pari in @INC

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


Views: 29016
Re: [FishMonger] Can't locate loadable object for module Math::Pari in @INC

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


Views: 29013
Re: [hem] Can't locate loadable object for module Math::Pari in @INC

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


Views: 29011
Re: [FishMonger] Can't locate loadable object for module Math::Pari in @INC

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


Views: 29008
Re: [hem] Can't locate loadable object for module Math::Pari in @INC

See my comment in the previous thread.


hem
User

Apr 23, 2009, 8:14 AM


Views: 28947
Re: [Tumata] Can't locate loadable object for module Math::Pari in @INC

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


Views: 28945
Re: [hem] Can't locate loadable object for module Math::Pari in @INC

Please show us your code.


hem
User

Apr 23, 2009, 9:03 AM


Views: 28942
Re: [FishMonger] Can't locate loadable object for module Math::Pari in @INC

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


Views: 28939
Re: [hem] Can't locate loadable object for module Math::Pari in @INC

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


Views: 28916
Re: [KevinR] Can't locate loadable object for module Math::Pari in @INC

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


Views: 28864
Re: [hem] Can't locate loadable object for module Math::Pari in @INC

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


Views: 28861
Re: [hem] Can't locate loadable object for module Math::Pari in @INC

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