Hi Ed, > -----Original Message----- > From: Edward Summers [mailto:[EMAIL PROTECTED] > Sent: Monday, December 05, 2005 6:14 AM > To: perl4lib > Subject: Re: MARC-8 to UTF-8 conversion > > On Dec 2, 2005, at 9:01 AM, Doran, Michael D wrote: > > > Installing the MARC::Charset module can be a bit problematic for > > the casual Perl user, due to the prerequisites. > > Is DB_File a big deal as a prerequisite? it's been in Perl since > 5.00307. The other prereq is perl 5.8, but doing unicode work in > Perls lower than that isn't really a good idea. > > I only ask because the new version of MARC::Charset currently > has the same dependencies, but I'd like ot make it easier to > install if possible. > > //Ed >
Below is a previous off-list email regarding my experiences earlier this year trying to install MARC::Charset and was the basis for the above editorial comment. I include myself in the category of "casual" Perl user, so there may very well be something I did wrong or was overlooking. -- Michael > -----Original Message----- > From: Doran, Michael D > Sent: Tuesday, June 14, 2005 4:14 PM > To: 'Ed Summers' > Subject: MARC::Record v2.0 & MARC::Charset > > Hi Ed, > > Just wanted to give some feedback on installation of your > MARC modules... > > My environment: > Solaris 9 4/04 > Perl 5.8.7 (configured with all defaults) > > As part of setting up a test server, I am doing a fresh > Solaris 9 install. That in turn gives me an opportunity to > install newer Perl stuff. I installed MARC::Record 2.0 with > no problems and am looking forward to taking it for a test > ride, but am having some trouble installing MARC::Charset 0.6 > on a fairly plain vanilla system. > > I first tried an automated install: > > /opt/bin/perl -MCPAN -e 'install MARC::Charset' > > which failed with these messages: > > BEGIN failed--compilation aborted at lib/MARC/Charset.pm line 12. > Compilation failed in require at Makefile.PL line 7. > BEGIN failed--compilation aborted at Makefile.PL line 7. > Running make test > Make had some problems, maybe interrupted? Won't test > Running make install > Make had some problems, maybe interrupted? Won't install > > I then downloaded the source tarball and tried a manual > install and got this error: > > # /opt/bin/perl Makefile.PL > Can't locate DB_File.pm in @INC (@INC contains: lib > /opt/lib/perl5/5.8.7/sun4-solaris /opt/lib/perl5/5.8.7 > /opt/lib/perl5/site_perl/5.8.7/sun4-solaris > /opt/lib/perl5/site_perl/5.8.7 /opt/lib/perl5/site_perl .) at > lib/MARC/Charset.pm line 12. > BEGIN failed--compilation aborted at lib/MARC/Charset.pm line 12. > Compilation failed in require at Makefile.PL line 7. > BEGIN failed--compilation aborted at Makefile.PL line 7. > > Line 12 in Charset.pm is "use DB_File;". The DB_File > dependency wasn't mentioned in the MARC::Charset README, but > since it is obviously required, I tried to install it, but > ran into a problem there (see output below sig file). From > the output, I wasn't sure if the problem was with the DB_File > prerequisites or something else. The DB_File README says > that "Berkeley DB" is a prerequisite. I have the following > Solaris packages installed: > SFWbdb berkeleyDB - Berkeley Database Library > SFWdb1 Berkeley DB - database library > ... but I'm not sure if that constitutes having the "Berkeley > DB". There are no other packages on the Solaris Media Kit > (Software 1 of 2; Software 2 of 2; Software Companion) that > have the word "Berkeley" in the name or description. I > googled "Berkeley DB" and wound up at http://www.sleepycat.com/. > I've downloaded a tarball but for now have put aside the project. > > I'm not looking for you to solve any problems here, I'm just > alerting you to the fact that the MARC::Charset prerequisites > may make installation problematic for the casual Perl user > and that that may have an impact on how much that module is used. > > -- Michael > > # Michael Doran, Systems Librarian > # University of Texas at Arlington > # 817-272-5326 office > # 817-688-1926 cell > # [EMAIL PROTECTED] > # http://rocky.uta.edu/doran/ > > # /opt/bin/perl -MCPAN -e 'install DB_File' > CPAN: Storable loaded ok > Going to read /var/software/.cpan/Metadata > Database was generated on Sun, 29 May 2005 15:05:48 GMT > Running install for module DB_File > Running make for P/PM/PMQS/DB_File-1.811.tar.gz > CPAN: Digest::MD5 loaded ok > Checksum for > /var/software/.cpan/sources/authors/id/P/PM/PMQS/DB_File-1.811 > .tar.gz ok > > gzip: stdout: Broken pipe > Scanning cache /var/software/.cpan/build for sizes > x DB_File-1.811, 0 bytes, 0 tape blocks > x DB_File-1.811/dbinfo, 3063 bytes, 6 tape blocks > x DB_File-1.811/patches, 0 bytes, 0 tape blocks > x DB_File-1.811/patches/5.6.0, 10120 bytes, 20 tape blocks > x DB_File-1.811/patches/5.005_02, 9240 bytes, 19 tape blocks > x DB_File-1.811/patches/5.005_03, 8602 bytes, 17 tape blocks > x DB_File-1.811/patches/5.004_03, 7212 bytes, 15 tape blocks > x DB_File-1.811/patches/5.004_05, 6712 bytes, 14 tape blocks > x DB_File-1.811/patches/5.004_02, 6944 bytes, 14 tape blocks > x DB_File-1.811/patches/5.005_01, 7252 bytes, 15 tape blocks > x DB_File-1.811/patches/5.004_04, 6678 bytes, 14 tape blocks > x DB_File-1.811/patches/5.004_01, 6944 bytes, 14 tape blocks > x DB_File-1.811/patches/5.005, 7168 bytes, 14 tape blocks > x DB_File-1.811/patches/5.004, 2561 bytes, 6 tape blocks > x DB_File-1.811/hints, 0 bytes, 0 tape blocks > x DB_File-1.811/hints/sco.pl, 146 bytes, 1 tape blocks > x DB_File-1.811/hints/dynixptx.pl, 101 bytes, 1 tape blocks > x DB_File-1.811/t, 0 bytes, 0 tape blocks > x DB_File-1.811/t/db-btree.t, 36795 bytes, 72 tape blocks > x DB_File-1.811/t/db-recno.t, 37745 bytes, 74 tape blocks > x DB_File-1.811/t/db-hash.t, 28397 bytes, 56 tape blocks > x DB_File-1.811/Changes, 12501 bytes, 25 tape blocks > x DB_File-1.811/DB_File_BS, 164 bytes, 1 tape blocks > x DB_File-1.811/fallback.h, 11405 bytes, 23 tape blocks > x DB_File-1.811/MANIFEST, 491 bytes, 1 tape blocks > x DB_File-1.811/typemap, 1151 bytes, 3 tape blocks > x DB_File-1.811/ppport.h, 9567 bytes, 19 tape blocks > x DB_File-1.811/DB_File.xs, 47089 bytes, 92 tape blocks > x DB_File-1.811/META.yml, 295 bytes, 1 tape blocks > x DB_File-1.811/config.in, 3117 bytes, 7 tape blocks > x DB_File-1.811/DB_File.pm, 63298 bytes, 124 tape blocks > x DB_File-1.811/version.c, 2283 bytes, 5 tape blocks > x DB_File-1.811/fallback.xs, 2645 bytes, 6 tape blocks > x DB_File-1.811/README, 21218 bytes, 42 tape blocks > x DB_File-1.811/Makefile.PL, 7971 bytes, 16 tape blocks > Removing previously used /var/software/.cpan/build/DB_File-1.811 > > CPAN.pm: Going to build P/PM/PMQS/DB_File-1.811.tar.gz > > Parsing config.in... > Looks Good. > Checking if your kit is complete... > Looks good > Note (probably harmless): No library found for -ldb > Writing Makefile for DB_File > cp DB_File.pm blib/lib/DB_File.pm > AutoSplitting blib/lib/DB_File.pm (blib/lib/auto/DB_File) > gcc -c -I/usr/local/BerkeleyDB/include -fno-strict-aliasing > -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O > -DVERSION=\"1.811\" -DXS_VERSION=\"1.811\" -fPIC > "-I/opt/lib/perl5/5.8.7/sun4-solaris/CORE" -D_NOT_CORE > -DmDB_Prefix_t=size_t -DmDB_Hash_t=u_int32_t version.c > /opt/bin/perl /opt/lib/perl5/5.8.7/ExtUtils/xsubpp > -noprototypes -typemap /opt/lib/perl5/5.8.7/ExtUtils/typemap > -typemap typemap DB_File.xs > DB_File.xsc && mv DB_File.xsc DB_File.c > gcc -c -I/usr/local/BerkeleyDB/include -fno-strict-aliasing > -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O > -DVERSION=\"1.811\" -DXS_VERSION=\"1.811\" -fPIC > "-I/opt/lib/perl5/5.8.7/sun4-solaris/CORE" -D_NOT_CORE > -DmDB_Prefix_t=size_t -DmDB_Hash_t=u_int32_t DB_File.c > Running Mkbootstrap for DB_File () > chmod 644 DB_File.bs > rm -f blib/arch/auto/DB_File/DB_File.so > LD_RUN_PATH="" gcc -G version.o DB_File.o -o > blib/arch/auto/DB_File/DB_File.so > chmod 755 blib/arch/auto/DB_File/DB_File.so > cp DB_File.bs blib/arch/auto/DB_File/DB_File.bs > chmod 644 blib/arch/auto/DB_File/DB_File.bs > Manifying blib/man3/DB_File.3 > /usr/ccs/bin/make -- OK > Running make test > PERL_DL_NONLAZY=1 /opt/bin/perl "-MExtUtils::Command::MM" > "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t > t/db-btree....Can't load > '/var/software/.cpan/build/DB_File-1.811/blib/arch/auto/DB_Fil > e/DB_File.so' for module DB_File: ld.so.1: /opt/bin/perl: > fatal: relocation error: file > /var/software/.cpan/build/DB_File-1.811/blib/arch/auto/DB_File > /DB_File.so: symbol db_version: referenced symbol not found > at /opt/lib/perl5/5.8.7/sun4-solaris/DynaLoader.pm line 230. > at t/db-btree.t line 34 > Compilation failed in require at t/db-btree.t line 34. > BEGIN failed--compilation aborted at t/db-btree.t line 34. > t/db-btree....dubious > > Test returned status 2 (wstat 512, 0x200) > t/db-hash.....Can't load > '/var/software/.cpan/build/DB_File-1.811/blib/arch/auto/DB_Fil > e/DB_File.so' for module DB_File: ld.so.1: /opt/bin/perl: > fatal: relocation error: file > /var/software/.cpan/build/DB_File-1.811/blib/arch/auto/DB_File > /DB_File.so: symbol db_version: referenced symbol not found > at /opt/lib/perl5/5.8.7/sun4-solaris/DynaLoader.pm line 230. > at t/db-hash.t line 23 > Compilation failed in require at t/db-hash.t line 23. > BEGIN failed--compilation aborted at t/db-hash.t line 23. > t/db-hash.....dubious > > Test returned status 2 (wstat 512, 0x200) > t/db-recno....Can't load > '/var/software/.cpan/build/DB_File-1.811/blib/arch/auto/DB_Fil > e/DB_File.so' for module DB_File: ld.so.1: /opt/bin/perl: > fatal: relocation error: file > /var/software/.cpan/build/DB_File-1.811/blib/arch/auto/DB_File > /DB_File.so: symbol db_version: referenced symbol not found > at /opt/lib/perl5/5.8.7/sun4-solaris/DynaLoader.pm line 230. > at t/db-recno.t line 23 > Compilation failed in require at t/db-recno.t line 23. > BEGIN failed--compilation aborted at t/db-recno.t line 23. > t/db-recno....dubious > > Test returned status 2 (wstat 512, 0x200) > FAILED--3 test scripts could be run, alas--no output ever seen > *** Error code 2 > make: Fatal error: Command failed for target `test_dynamic' > /usr/ccs/bin/make test -- NOT OK > Running make install > make test had returned bad status, won't install without force