Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

MARC/Perl on a Windows PC--need some handholding....

8 views
Skip to first unread message

charles hobbs

unread,
Jun 19, 2012, 2:04:26 AM6/19/12
to perl...@perl.org
Greetings all.

Has anyone had much experience/luck running the current MARC/Perl on a PC using Perl (Active State, Strawberry, etc.)

Whenever I try to get it to work, it gives me error messages (it can't find the modules, etc.)  I'm not even sure I'm putting the modules in the right directory.

The makefiles are of little help, as they are designed for Unix (at least on the newest version of MARC/Perl)

Again, anyone ever make MARC/Perl work in a Windows environment?


Thanks in advance!

 
===
Charles P. Hobbs
cph...@yahoo.com
http://www.morethanredcars.com

Dr. Saiful Amin

unread,
Jun 19, 2012, 2:12:30 AM6/19/12
to charles hobbs, perl...@perl.org
Hi Charles,

I have always been using MARC::Record on Windows and never had such issue.
What is the exact error message you are getting? Are you installing from
CPAN?

Best regards,
Saiful Amin

Mark Jordan

unread,
Jun 19, 2012, 2:56:36 AM6/19/12
to charles hobbs, perl...@perl.org
Hi Charles,

If you're using ActiveState Perl on Windows, and ppm (its equivalent to CPAN), you don't have to use makefiles, ppm installs everything for you.

Mark

Bryan Baldus

unread,
Jun 19, 2012, 9:15:11 AM6/19/12
to charles hobbs, perl...@perl.org
On Tuesday, June 19, 2012 1:04 AM, Charles P. Hobbs wrote:
>Whenever I try to get it to work, it gives me error messages (it can't find the modules, etc.) I'm not even sure I'm putting the modules in the right directory.

After running the installer from ActiveState to get the base Perl installation working, and PPM for the modules that require it, you can manually install pure Perl (non-C-reliant) modules in the appropriate hierarchy in:
<C:\Perl\site\lib\>
[if C:\Perl is the name of your Perl installation; change the path before "\site\lib\" to point to the appropriate base folder on your machine--possibly Perl64 or some other name]
and then deal with any other requirements of the module (such as databases or other files created by the Makefile.PL, which may need to be edited to create/run just those parts, and which often need changes to the paths in the pl to get them working correctly).

I know that some modules fail to install from PPM (my own MARC::Errorchecks when one attempts to install after or at the same time as MARC::Lint because both include MARC::Lint::CodeData--I will likely remove it from Errorchecks in the next version and then require MARC::Lint to be installed).

I hope this helps,

Bryan Baldus
bryan....@quality-books.com
eij...@cpan.org
http://home.comcast.net/~eijabb/

Jon Gorman

unread,
Jun 19, 2012, 9:30:46 AM6/19/12
to charles hobbs, perl...@perl.org
I've had mixed luck with ppm and certain versions of ActiveState perl
on Windows. Haven't really had many issues w/ using dmake and
installing the modules via make files and cpan though.

Lately though I'm preferring Strawberry perl, which pretty much works
with cpan just like it would in an linux/unix environment.

Jon G.

arvinp...@lycos.com

unread,
Jun 19, 2012, 10:24:49 AM6/19/12
to perl...@perl.org
There are some modules that are designed for *nix systems and getting them to work on Windows can be a challenge.

Fortunately MARC isn't one of them. If you are using ActiveState here's how to install the modules you need:

Open a command prompt and type "ppm-shell"
Type "search marc-record"
Type "install 1"

This should install all the modules you need. To test, run this program:

use strict;
use MARC::Batch;

my $batch = new MARC::Batch ('USMARC', 'records.marc');
my $record = $batch->next;
while ($record) {
print $record->field('245')->subfield('a'), "\n";
$record = $batch->next;
}

On other perls, including strawberry, open a command prompt and type:
perl -MCPAN -e "install MARC::Record"

Good luck.

charles hobbs

unread,
Jun 19, 2012, 12:20:39 PM6/19/12
to arvinp...@lycos.com, perl...@perl.org

 That last line did the trick. Thank you for your help, and thank everyone who responded!


________________________________
From: "arvinp...@lycos.com" <arvinp...@lycos.com>
To: perl...@perl.org
Sent: Tuesday, June 19, 2012 7:24 AM
Subject: Re: MARC/Perl on a Windows PC--need some handholding....

On other perls, including strawberry, open a command prompt and type:
perl -MCPAN -e "install MARC::Record"

Shelley Doljack

unread,
Jun 19, 2012, 1:03:21 PM6/19/12
to charles hobbs, perl...@perl.org
I recently installed the MARC/Perl libraries on my Windows 7 machine, running ActiveState perl. The Perl code libraries are at C:\Perl64 on my computer. I tried putting the MARC/Perl module in C:\Perl64\lib, which is where all of the other modules that come with ActiveState are, but I got the same error that it couldn't find it. Then I figured out I could just type in a command prompt: ppm install Marc (http://code.activestate.com/ppm/Marc/) and it installs in the correct directory: C:\Perl64\site\lib. I guess this is where all of the modules that aren't part of the ActiveState repository live.

Hope this helps.

Shelley


----- Original Message -----
> From: "Jon Gorman" <jonatha...@gmail.com>
> To: "charles hobbs" <cph...@yahoo.com>
> Cc: perl...@perl.org
> Sent: Tuesday, June 19, 2012 6:30:46 AM
> Subject: Re: MARC/Perl on a Windows PC--need some handholding....
>
0 new messages