Setup perl modules for VC1.x SDK
Setting up somewhere to run VC1.x SDK perl scripts is not alot of fun. Here is some info that should help you get started. Also, when troubleshooting make sure you verify your web service.
Required Perl Modules
- HTTP::Cookies
- SOAP::Lite 0.55
- Tie::IxHash
- Getopt::Long
- Crypt::SSLeay (required for https, which is the virtual center default)
Activestate perl on windows should work, but I have never tried it. I always use a linux box, any flavor. If you haven’t messed with the perl modules on the box, you should expect to install the following plus dependencies:
HTTP::Cookies
SOAP::Lite
Crypt::SSLeay
Tie::IxHash
Here is an informal log that I kept when trying to install the modules on a RHEL 4 update 4 box.
################################
Here are my rpm’s related to perl.
[root@myhost Xscripts]# rpm -qa | grep perl
perl-5.8.5-36.RHEL4
perl-DBI-1.40-8
perl-XML-Parser-2.34-5
perl-Filter-1.30-6
perl-URI-1.30-4
perl-HTML-Tagset-3.03-30
perl-libwww-perl-5.79-5
perl-HTML-Parser-3.35-6
cpan install HTTP::Cookies
yes – satisfy dependencies
yes – More pre-req’s
Crack a fresh Guinness (hey I’m on my personal time here)
Do you want to install lwp-request? [y]
Do you want to install lwp-mirror? [y]
Do you want to install lwp-rget? [y]
Do you want to install lwp-download? [y]
Do you want to install the GET alias? [n]
Do you want to install the HEAD alias? [n]
Do you want to install the POST alias? [n]
yes – More deps
yes – More deps
yes – More deps
Install SOAP::Lite – this is the wrong version, keep reading.
cpan install SOAP::Lite
Need to add SSL here.
Do you want to proceed with this configuration? [yes] no
Do you plan to use Client HTTPS support? [no] yes
Do you plan to use Client SMTP/sendmail support? [no]
Do you plan to use Client FTP support? [yes] no
Do you plan to use Standalone HTTP server? [yes] no
Do you plan to use Apache/mod_perl server? [no] no
Do you plan to use FastCGI server? [no] no
Do you plan to use POP3 server? [no]
Do you plan to use IO server? [yes] no
Do you plan to use MQ transport support? [no] no
Do you plan to use JABBER transport support? [no]
Do you plan to use MIME messages? [no]
Do you plan to use DIME messages? [no]
Do you plan to use SSL Support for TCP Transport? [no] yes
Do you plan to use Compression support for HTTP? [yes]
Do you plan to use MIME interoperability w/ Axis? [no] no
Now, yes this list of options is good with me.
Do you want to perform these tests in addition to core tests? [no]
yes, install deps
yes, install deps
cpan install Tie::IxHash
I’m still missing some SSL stuff. I will try the rpm on the CD.
rpm -ihv /mnt/loop2/RedHat/RPMS/perl-Crypt-SSLeay-0.51-5.i386.rpm
Now, if you have the wrong version SOAP::Lite, you will get something like this when you try to run a script.
Can't call method "name" without a package or object reference at /usr/lib/perl5/site_perl/5.8.5/SOAP/Lite.pm line 3005.
Need to install the correct version 0.55.
cpan install K/KU/KULCHENKO/SOAP-Lite-0.55.tar.gz
Do you want to proceed with this configuration? [yes] no
Defaults except:
Client HTTPS support (SOAP::Transport::HTTPS::Client, require OpenSSL) [no]
Crypt::SSLeay
Do you plan to use this module? [no] yes
Follow defaults….crack another Guinness (HA. I bet you are at work).
Works now.