Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Digest::MD5 binary

by JoeJaz (Monk)
on Jun 03, 2004 at 20:01 UTC ( [id://360438]=perlquestion: print w/replies, xml ) Need Help??

JoeJaz has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I have been developing a Perl project that I plan to use on a public server. Since I do not have root to that server, I cannot install extra Perl modules using a perl -MCPAN -e; install somemodule to include extra modules. Therefore, I decided to create a seperate directory within my project directory and use a use lib 'somepath' statement to use my custom modules directory. Now to the problem. One of the modules that I am using is the Digest::MD5 module. I notieced that one of the files that it installs is a binary file. (to install this module, I did do a perl -MCPAN -e; install Digest::MD5 on my computer and then moved all of the files that pertained to the MD5 module to my custom directory). I noticed that one of the files from the CPAN install was a binary file named MD5.so and is compiled for an Intel 80386. I however, need to be able to place this program on an UltraSparc, so this type of binary will not work. Does anyone know of a similar module that I could use for MD5 hashes that doesn't involve a binary file or, if no such thing exists, does anyone know how to manually compile a perl module for a different architecture (without using the nice perl -MCPAN installer)? Thanks for taking the time to read this. Have a nice day, Joe

Replies are listed 'Best First'.
Re: Digest::MD5 binary
by Joost (Canon) on Jun 03, 2004 at 20:38 UTC
      Wow, that's really neat! Looks like what I am looking for. I'll try it out right away. Thanks for the reference. Joe
Re: Digest::MD5 binary
by Happy-the-monk (Canon) on Jun 03, 2004 at 20:19 UTC

    Since I do not have root to that server, I cannot install extra Perl modules using a   perl -MCPAN -e; install somemodule

    Yes you can: The CPAN.pm module doesn't need root access to work, it only needs it to be able to install in the regular system paths. You will need to configure CPAN.pm for your environment and you might need to include   use lib qw(some paths); statements into your code to use the modules installed that way.

    Cheers, Sören

      That's a good option to know about. Looks like a nice way to make some sparc binaries. I'm not sure how much shell access I will be able to have on the server. It is quite possible that only the sysadmin will have access to the server and will install the program for me (so it would be nice to have it all packaged up for him in a single directory). I'll see what I can work out. Thanks for the tip. Also, that link for CPAN.pm is also very handy. To be honest, I hadn't used the perl CLI for anything other than module installs. That guide showed me some other userful shell fundamentals that will make my life easier. Thank you very much for your response. Joe

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://360438]
Approved by Paladin
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2024-04-19 21:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found