[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Omaha.pm] how to build Crypt::Blowfish without root
Well, there's a dependency for Crypt-CBC.
Plus, I'm really excellent at beating dead horses. < grin >
So this should do it, complete:
setenv PERL5LIB ~/lib
mkdir ~/lib
cd ~/lib
wget http://search.cpan.org/CPAN/authors/id/L/LD/LDS/Crypt-CBC-2.15.tar.gz
tar -zxvf Crypt-CBC-2.15.tar.gz
cd Crypt-CBC-2.15
perl Makefile.PL PREFIX=~/lib LIB=~/lib
make
make test
make install
wget
http://search.cpan.org/CPAN/authors/id/D/DP/DPARIS/Crypt-Blowfish-2.09.tar.gz
tar -zxvf Crypt-Blowfish-2.09.tar.gz
cd ../Crypt-Blowfish-2.09
perl Makefile.PL PREFIX=~/lib LIB=~/lib
make
make test
make install
cd ../
vi test.pl
#!/usr/bin/perl
use Crypt::Blowfish;
my $key = pack("H16", "0123456789ABCDEF"); # min. 8 bytes
my $cipher = new Crypt::Blowfish $key;
my $ciphertext = $cipher->encrypt("plaintex");
print unpack("H16", $ciphertext), "\n";
perl test.pl
ea03e67434315a63
On Wed, 21 Sep 2005, Bob McCoy wrote:
> OK, Mat. Right above "How to use Private" was "How to install Private"
>
> http://www.cpan.org/misc/cpan-faq.html#How_install_private
>
> Once again, I should have RTM. Thanks, Bob.
>
> -----Original Message-----
>
> Thanks, Mat. I kind of figured that's how I could use it once it was
> installed. However, the real issue I'm having is trying to figure out
> how to tell the makefile where to install it. The generic command is
> "make install". And Ilve been through the Makefile several times and
> haven't figured out what params I need to pass in order for it to
> install it someplace that I have permissions to.
>
> -----Original Message-----
>
> Hi Bob:
>
>
> http://www.cpan.org/misc/cpan-faq.html#How_use_private
>
> There are several ways to use modules installed in private directories:
>
> setenv PERL5LIB /path/to/module
> sets the environment variable PERL5LIB.
>
> use lib qw(/path/to/module);
> used at the top of your script tells perl where to find your
> module.
>
> perl -I/path/to/module
>
> All of these will append /path/to/module to @INC.
>
> Mat
>
>
>
>
> On Wed, 21 Sep 2005, Bob McCoy wrote:
> > I need some help installing a private library. I want to use the
> > Cyrpt::Blowfish.pm
> > (http://search.cpan.org/~dparis/Crypt-Blowfish-2.09/Blowfish.pm) on
> the
> > UNO Phoenix system. However, I don't have admin right to install the
> > library. So ...
> >
> > 1. What is the appropriate make command line to direct the
> installation
> > to a private directory, e.g., /home/bob/lib? This is the one I'm
> really
> > stumped on.
> >
> > 2. Is "use lib '/home/bob/lib';" sufficient to get it then in the
> @INC
> > array for searching?
> >
> > Bob
>
>
> _______________________________________________
> Omaha-pm mailing list
> Omaha-pm@pm.org
> http://mail.pm.org/mailman/listinfo/omaha-pm
>
> _______________________________________________
> Omaha-pm mailing list
> Omaha-pm@pm.org
> http://mail.pm.org/mailman/listinfo/omaha-pm
>