[OPEN-ILS-DEV] Perl Module Issues

Joe Atzberger atzberger at MECDC.ORG
Wed Apr 11 12:09:10 EDT 2007


Sperr, Edwin wrote:
> Is the Net::Z3950 module listed the old one, or the more recent
> Net::Z3950::ZOOM?
> 
> I can't get *either one* to make properly on my box (Perl v5.8.5 on
> RedHatEL4), so I need to know which one to try to fix.


Ed --


I had all manner of difficulty with this same step on my (stalled) solaris 10 installation.  I can't tell you what 
Evergreen really needs, but I can suggest why Net::Z3950 frequently fails.

To start, you will need to have successfully installed the yaz toolkit, which has it's own share of snags.  (Please 
advise if you encountered problems installing yaz.)

Assuming that is fine, poke around the cpan directory:
	/.cpan/build/Net-Z3950-0.51
or
	perl -MCPAN -e shell
	> look Net::Z3950

Edit Makefile.PL in three places, lines (8, 29, and 52 in my version), to say:
_________________
my $yazconf = "/path/to/your/yaz-config";	# line 8
...
'DEFINE' => '-D_GNU_SOURCE'	# line 29
...
cd yazwrap && $(MAKE) INC="$(PASTHRU_INC)" $(PASTHRU)';	# line 52
_________________

The latter change is subtle, just adding "quotes" around the variable assignment.

The others changes draw on the code comments, including:

#       Some systems like to be told:  'DEFINE' => '-D_GNU_SOURCE'
#       Apparently RedHat 8.0 (but NOT 7.3) is one of these.

So if your version of RedHat is 7.3, ignore me.  :)

--Joe Atzberger
INFOhio Technical Specialist
Metropolitan Educational Council



More information about the Open-ils-dev mailing list