Ask a Question related to PERL Modules, Design and Development.

  1. #1

    Default DB_File

    anyone seen this error before:
    > Can't load '/usr/local/lib/perl5/5.8.0/PA-RISC2.0/auto/DB_File/DB_File.sl' for module DB_File: No such file or directory at /usr/local/lib/perl5/5.8.0/PA-RISC2.0/XSLoader.pm line 83.
    > at /usr/local/lib/perl5/5.8.0/PA-RISC2.0/DB_File.pm line 236

    I'm just trying to run this script:

    #!/usr/bin/perl -w
    use strict;
    use DB_File;

    print "Hello World!\n"


    all three of the files exist on the system....why is it saying this.
    (there are a few scripts that I have that want to use DB_File and they
    all say this.... that's why I just use this simple script above for
    error diagnosis)

    rab
    rab Guest

  2. Similar Questions and Discussions

    1. DB_File problem
      I am working on a script to base64 encode a file and then scramble the lines but also keep track of the order in which these lines were scrambled....
    2. DB_File default version
      Hi, If you read the doc of the DB_File module you need to install Berkeley DB. So why does this module work without installing Berkeley DB? If...
    3. DB_File Install Problem
      Hello, I am having trouble installing DB_File on my Solaris 2.9 box. I have done the usual: perl Makefile.PL make make test fails here...
    4. DB_File problems (again)
      Hi Rich/Dave, The deletion problem exists for me too .... There are around 90000 keys in my dbf file ... The key i found two days back doesn't...
    5. DB_File question
      I have built perl5.8.2 with gcc 3.3.1 on solaris 8. It found the libdb in the gnu/lib and included DB_File from the ext package for me. However,...
  3. #2

    Default Re: DB_File

    rab wrote:
    > anyone seen this error before:
    >
    >
    >>Can't load '/usr/local/lib/perl5/5.8.0/PA-RISC2.0/auto/DB_File/DB_File.sl' for module DB_File: No such file or directory at /usr/local/lib/perl5/5.8.0/PA-RISC2.0/XSLoader.pm line 83.
    >> at /usr/local/lib/perl5/5.8.0/PA-RISC2.0/DB_File.pm line 236
    >>
    >
    >
    > I'm just trying to run this script:
    >
    > #!/usr/bin/perl -w
    > use strict;
    > use DB_File;
    >
    > print "Hello World!\n"
    >
    >
    > all three of the files exist on the system....why is it saying this.
    > (there are a few scripts that I have that want to use DB_File and they
    > all say this.... that's why I just use this simple script above for
    > error diagnosis)
    >
    > rab
    >
    It would appear that either the DB_File module is not installed on your
    system, or it is not installed completely and correctly. Try installing
    the DB_File module again.

    --
    Bob Walton

    Bob Walton Guest

  4. #3

    Default db_file

    I am trying to install ikonboard on my site but my provider apparently does
    not have db_file installed on the server. I have had a look at CPAN and
    think this module is the one I need:
    [url]http://www.cpan.org/modules/by-module/DB_File/[/url] My provider says he has put
    the files into the /lib/ section (it is a Windows server) but when I run my
    test script it still says it is not installed. Was this the correct module
    or does anyone know which one it should have been?

    Cheers

    Mark


    Marksfish Guest

  5. #4

    Default Re: db_file

    Marksfish wrote:
    > I am trying to install ikonboard on my site but my provider
    > apparently does not have db_file installed on the server. I have
    > had a look at CPAN and think this module is the one I need:
    > [url]http://www.cpan.org/modules/by-module/DB_File/[/url] My provider says he
    > has put the files into the /lib/ section (it is a Windows server)
    > but when I run my test script it still says it is not installed.
    > Was this the correct module or does anyone know which one it should
    > have been?
    Doesn't Perl tell you that? What does the error message say?

    --
    Gunnar Hjalmarsson
    Email: [url]http://www.gunnar.cc/cgi-bin/contact.pl[/url]

    Gunnar Hjalmarsson Guest

  6. #5

    Default Re: db_file

    Marksfish wrote:
    >> Doesn't Perl tell you that? What does the error message say?
    >
    > "You do not have the db_file perl module installed on this server.
    > You will not be able to run Ikonboard."
    >
    > This is what is shown when the test file is run.
    That seems to be a custom Ikonboard message, not a Perl ditto. What
    does it say if you type

    perl -e "use DB_File"

    --
    Gunnar Hjalmarsson
    Email: [url]http://www.gunnar.cc/cgi-bin/contact.pl[/url]

    Gunnar Hjalmarsson Guest

  7. #6

    Default Re: db_file

    > perl -e "use DB_File"
    >
    Unfortunately I do not have telnet access to the server, only ftp.

    Mark


    Marksfish Guest

  8. #7

    Default Re: db_file

    > Then run this test script:
    >
    > #!/usr/bin/perl
    > use CGI::Carp 'fatalsToBrowser';
    > use DB_File;
    > print "Content-type: text/html\n\n";
    > print 'Loaded ok';
    >
    Can't locate loadable object for module DB_File in @INC (@INC contains:
    C:/Perl/lib C:/Perl/site/lib .) at
    d:\users\Cyberprog\marksfish\www\acso\test.pl line 3
    Compilation failed in require at
    d:\users\Cyberprog\marksfish\www\acso\test.pl line 3.
    BEGIN failed--compilation aborted at
    d:\users\Cyberprog\marksfish\www\acso\test.pl line 3.
    Normally I would put the full path of the file in that it is looking for,
    but I don't know where it would be. Should the db_file module be placed in
    the Perl/site/lib directory? I think my host only put it in the /lib/
    directory.Mark


    Marksfish Guest

  9. #8

    Default Re: db_file

    Marksfish wrote:
    > Can't locate loadable object for module DB_File in @INC
    <snip>
    > Normally I would put the full path of the file in that it is
    > looking for, but I don't know where it would be. Should the db_file
    > module be placed in the Perl/site/lib directory? I think my host
    > only put it in the /lib/ directory.
    No, the above error message confirms what I suspected: The location of
    DB_File.pm is okay. However, DB_File.pm is just a Perl interface to
    the C library Berkely DB, and the latter seems to be missing.

    You mentioned in your first post in this thread that your provider
    "says he has put the files into the /lib/ section". Installing DB_File
    comprises more than placing a .pm file in a directory.

    Maybe your provider doesn't know very much about Perl. Maybe you
    should change provider.

    --
    Gunnar Hjalmarsson
    Email: [url]http://www.gunnar.cc/cgi-bin/contact.pl[/url]

    Gunnar Hjalmarsson Guest

  10. #9

    Default Re: db_file

    > Maybe your provider doesn't know very much about Perl. Maybe you
    > should change provider.
    >
    > --
    That was my thought, but unfortunately I signed up for 12 months and still
    have another 11 to go with no refunds. It is a Windows server and he is more
    into asp than perl. Is there a step by step instruction for installing
    modules anywhere I can let him have?

    Mark


    Marksfish Guest

  11. #10

    Default Re: db_file

    Marksfish wrote:
    >> Maybe your provider doesn't know very much about Perl. Maybe you
    >> should change provider.
    >
    > That was my thought, but unfortunately I signed up for 12 months
    > and still have another 11 to go with no refunds. It is a Windows
    > server and he is more into asp than perl. Is there a step by step
    > instruction for installing modules anywhere I can let him have?
    I don't know about step by step, especially for somebody who is not
    "into" perl, but here is the applicable FAQ:

    [url]http://www.perldoc.com/perl5.8.0/pod/perlfaq8.html#How-do-I-install-a-module-from-CPAN-[/url]

    --
    Gunnar Hjalmarsson
    Email: [url]http://www.gunnar.cc/cgi-bin/contact.pl[/url]

    Gunnar Hjalmarsson Guest

  12. #11

    Default Re: db_file

    Thanks for your help Gunnar, i'll pass this on.

    Cheers

    Mark


    Marksfish Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139