Current location: Hot Scripts Forums » Programming Languages » Perl » Help Install a perl module


Help Install a perl module

Reply
  #1 (permalink)  
Old 03-18-04, 12:59 PM
jgill jgill is offline
New Member
 
Join Date: Mar 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Help Install a perl module

I am having some mixed results installing perl modules. I am running active state's port of perl v5.006? It comes with PPM but I have been unable to make it work because of network issues. My success has come by installing Nmake and going through the routines outlined in the Readme.txt files.

From the directory where the archives is kept, at the command prompt:
perl makefile.pl
nmake
nmake test
nmake install

With some scripts this works beautifully. But there are others....

I get the following message:
"'cl' is not recognized as an internal or external command, operable program or batch file. nmake : u1077 : Stop."

I have several that show this symptom.

I assume that "CL" is either an executable or module that I am missing, but have no idea what it is or where to get it. Is "CL" short for clean? Can I get it like I got Nmake?

Any help would be appreciated.

John
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 03-18-04, 07:11 PM
Chas Chas is offline
Coding Addict
 
Join Date: Oct 2003
Location: California
Posts: 359
Thanks: 0
Thanked 0 Times in 0 Posts
What are your network issues? It may be easier to overcome those issues than to fix the CL problem.

Also, you can ownlaod the ppm's and associated zips and do local installs via PPM. I had to do that for a while when I was stuck behind a crappy firewall.

~Charlie
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 03-18-04, 07:18 PM
jgill jgill is offline
New Member
 
Join Date: Mar 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Chas
What are your network issues? It may be easier to overcome those issues than to fix the CL problem.

Also, you can ownlaod the ppm's and associated zips and do local installs via PPM. I had to do that for a while when I was stuck behind a crappy firewall.

~Charlie
A proxy server and an uncooperative administrator. I have no problem downloading the modules. I have tried to run:

ppm> install digest-md5

From the command line. I don't recall the exact message but it had to do with being unable to open a connection to locate the archive. I read the PPM instructions, but don't remember anything about manual installation. I think PPM is ActiveState's Program, and it wants to talk to their archive.

John
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 03-18-04, 07:32 PM
Chas Chas is offline
Coding Addict
 
Join Date: Oct 2003
Location: California
Posts: 359
Thanks: 0
Thanked 0 Times in 0 Posts
See if this message helps at all:

http://aspn.activestate.com/ASPN/Mail/Message/1063891

You can set your proxy info in env vars and it *should* work.

Code:
set http_proxy=http://yourproxymachine:80
set http_proxy_user=username
set http_proxy_pass=pass

ppm
You only need pass/user if it's an auth proxy. If that doesn't work, I'll dig up the instructions for installing modules locally. Although PPM is initially setup with AS only repositories, there are *many* others you can use in addition. I use 7 or 8 just to get the latest and greatest versions of some of my favorite modules.

~Charlie
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 03-25-04, 01:03 PM
jgill jgill is offline
New Member
 
Join Date: Mar 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Chas
I'll dig up the instructions for installing modules locally.
~Charlie
I guess my trouble shooting was based on wishful thinking. I got the sysadmin to cooperate. We aparently use no proxy, but there is a fire wall. She thinks that I should not have any trouble. So I tried again. Piping to a file did not work as well as I hoped either. Some of this
is transcribed from the monitor, after the perl quit.

If I type
ppm >grab.txt
install digest-md5

I get ...

PPM interactive shell (1.1.3) - type 'help' for available commands.
PPM> Install package 'digest-md5-2.33?' (y/N):
Retrieving package 'digest-md5-2.33'...

... the file ends

Then on the monitor I see...

HTTP POST failed: 500 (script error), in SOAP method call. Content of responce:

Script failed to send data. at c:/perl/site/lib/ppm/soapclient.pm line 222

I altered soapclient.pm to read ...

my $soap = new SOAP::Transport::HTTP::Client();
print STDOUT "Johns soap is:$soap\n";
my $result = $soap->send_receive(
$self->{'_server'},
$self->{'_urn'},
$method,
$soap_request );

The comment is mine. I get the above with
"Johns soap is:SOAP::Transport::HTTP::Client=HASH(0x8e46e84)"
tacked on.

I am trying to avoid the OO stuff as much as possible.

From the comments in the code above this (line 222), the code looks experimental too.

The script that I am trying to write will require access to the web, so I really was hoping that the modules could handle the ugly parts. I am not sure what other modules depend on the soap client to work so seeing it fail is rather disapointing.

It looks like I will probably have to install soap localy in order to get PPM to work.

Please send the instructions if you have them available.

Thank you,

John
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #6 (permalink)  
Old 04-08-04, 11:48 AM
Chas Chas is offline
Coding Addict
 
Join Date: Oct 2003
Location: California
Posts: 359
Thanks: 0
Thanked 0 Times in 0 Posts
Sorry for the late reply. You have a couple of options:

1) Make your own local repositry. Make a directory in your tree where you want to store your PPM's (say, C:\ppm). Start up PPM and make a new rep:

Code:
ppm> rep add local C:\ppm
ppm> rep off 1
(repeat above command untill all but the local rep is inactive and at the top of the list)
download the desired .ppd and .tgz's from the web into the your reposiry (http://ppm.activestate.com/PPMPackages/zips/). Now when you try to install the module it will look to your local reposity for the files.

2) Download the .ppd and .tgz (again from http://ppm.activestate.com/PPMPackages/zips/) and install manually:

Code:
C:\ ppm install C:\path\to\module.ppd
~Charlie
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #7 (permalink)  
Old 06-01-04, 08:21 AM
adam_22_bristol adam_22_bristol is offline
New Member
 
Join Date: Jun 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
explanation of CL

the CL "command" which is failing is installed as part of Visual C++. it is activated by running the batch file "C:\Program Files\Microsoft Visual Studio\VC98\Bin\VCVARS32.BAT".

you can verify that it is installed by entering "CL" at a dos prompt. my version of the batch file contains the following commands; as you can see, it edits/adds a number of environmental variables.

hope this helps you

adam
www.adambeirne.com

----------contents of vcvars32.bat-------------------------------
@echo off
rem
rem Root of Visual Developer Studio Common files.
set VSCommonDir=C:\PROGRA~1\MICROS~3\Common

rem
rem Root of Visual Developer Studio installed files.
rem
set MSDevDir=C:\PROGRA~1\MICROS~3\Common\msdev98

rem
rem Root of Visual C++ installed files.
rem
set MSVCDir=C:\PROGRA~1\MICROS~3\VC98

rem
rem VcOsDir is used to help create either a Windows 95 or Windows NT specific path.
rem
set VcOsDir=WIN95
if "%OS%" == "Windows_NT" set VcOsDir=WINNT

rem
echo Setting environment for using Microsoft Visual C++ tools.
rem

if "%OS%" == "Windows_NT" set PATH=%MSDevDir%\BIN;%MSVCDir%\BIN;%VSCommonDir%\TO OLS\%VcOsDir%;%VSCommonDir%\TOOLS;%PATH%
if "%OS%" == "" set PATH="%MSDevDir%\BIN";"%MSVCDir%\BIN";"%VSCommonDi r%\TOOLS\%VcOsDir%";"%VSCommonDir%\TOOLS";"%windir %\SYSTEM";"%PATH%"
set INCLUDE=%MSVCDir%\ATL\INCLUDE;%MSVCDir%\INCLUDE;%M SVCDir%\MFC\INCLUDE;%INCLUDE%
set LIB=%MSVCDir%\LIB;%MSVCDir%\MFC\LIB;%LIB%

set VcOsDir=
set VSCommonDir=
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #8 (permalink)  
Old 07-28-06, 10:11 AM
mohit's Avatar
mohit mohit is offline
Newbie Coder
 
Join Date: Jul 2006
Location: India
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
i have the same 'cl" problem.
i'm begginer in perl and working on windowsxp.
installed perl build application but when i run build then got "cl" error.
i need to resolve it.
let me know if u need more details...
thanks in advance..
mohit
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with my largest perl script. Grabbing data from a file. Sunnmann Perl 2 04-23-08 04:27 AM
Perl Parsing Script DeerHunter Perl 11 04-29-05 05:11 PM
convert perl code to php phptalk Perl 1 01-15-04 03:06 AM
how to install a perl module [win32::internetexplorer::window] in windowsXP ? freak Perl 1 12-26-03 11:06 AM
Translation request...(Xoops quiz module) kiange Script Requests 0 09-08-03 03:59 PM


All times are GMT -5. The time now is 12:59 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.