develooper Front page | perl.perl5.porters | Postings from January 2006

DB_File module on perl-5.8.7

Thread Next
mohammad yaseen
January 24, 2006 02:27
DB_File module on perl-5.8.7
Message ID:
  I''m using perl-5.8.7 on Z/OS.
  The testcase i'm runing is 
  # Use the DBM module.
  use DB_File;
  if ( ! ( tie %DBFILE, 'DB_File', $database, O_RDWR|O_CREAT, 0600, $DB_HASH ) )
     print "Could not open (\"tie\") message database file \"$database\".\n";
  $DBFILE{'record1'}="One line of data";
  I'm getting this error
   Can't locate in @INC (@INC contains: /u/isldev1/GM/perl-5.8.7/lib /u/
  opensrc/perl/usr/local/lib/5.8.7/os390-thread-multi /u/opensrc/perl/usr/local/li
  b/5.8.7 /u/opensrc/perl/usr/local/lib/site_perl/5.8.7/os390-thread-multi /u/open
  src/perl/usr/local/lib/site_perl/5.8.7 /u/opensrc/perl/usr/local/lib/site_perl .
  ) at /u/opensrc/perl/ line 4.
  BEGIN failed--compilation aborted at /u/opensrc/perl/ line 4.
  So i searched for and found it in ext/DB_File/,
  i copied this file to lib and ran the the test again
  Can't locate auto/DB_File/autosplit.ix in @INC (@INC contains: /u/isldev1/latest
  /perl-5.8.7/lib /u/opensrc/perl/usr/local/lib/5.8.7/os390-thread-multi /u/opensr
  c/perl/usr/local/lib/5.8.7 /u/opensrc/perl/usr/local/lib/site_perl/5.8.7/os390-t
  hread-multi /u/opensrc/perl/usr/local/lib/site_perl/5.8.7 /u/opensrc/perl/usr/lo
  cal/lib/site_perl .) at /u/isldev1/latest/perl-5.8.7/lib/ line 160.
   at /u/isldev1/latest/perl-5.8.7/lib/ line 184
  Can't load module DB_File, dynamic loading not available in this perl.
    (You may need to build a new perl executable which either supports
    dynamic loading or has the DB_File module statically linked into it.)
   at /u/opensrc/perl/ line 4
  Compilation failed in require at /u/opensrc/perl/ line 4.
  BEGIN failed--compilation aborted at /u/opensrc/perl/ line 4.
  The perl has been build statically on my machine.
  How to resolve this problem?
  Is there any prerequisites has to be satisfied for building DB_File module like any library should be available on the machine.

Yahoo! Photos
 Got holiday prints? See all the ways to get quality prints in your hands ASAP.
Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About