cpan> install DB_File make error

Discussion in 'HOWTO-Related Questions' started by Nu2Linux, Oct 29, 2005.

  1. Nu2Linux

    Nu2Linux New Member

    I need some more help. i've posted all the info, hope that's ok. the problem shows up in the last couple of lines. don't know how to fix this.
    =====================================================
    cpan> install DB_File
    Running install for module DB_File
    Running make for P/PM/PMQS/DB_File-1.812.tar.gz
    CPAN: Digest::MD5 loaded ok
    CPAN: Compress::Zlib loaded ok
    Checksum for /root/.cpan/sources/authors/id/P/PM/PMQS/DB_File-1.812.tar.gz ok
    Scanning cache /root/.cpan/build for sizes
    DB_File-1.812/
    DB_File-1.812/dbinfo
    DB_File-1.812/patches/
    DB_File-1.812/patches/5.6.0
    DB_File-1.812/patches/5.005_02
    DB_File-1.812/patches/5.005_03
    DB_File-1.812/patches/5.004_03
    DB_File-1.812/patches/5.004_05
    DB_File-1.812/patches/5.004_02
    DB_File-1.812/patches/5.005_01
    DB_File-1.812/patches/5.004_04
    DB_File-1.812/patches/5.004_01
    DB_File-1.812/patches/5.005
    DB_File-1.812/patches/5.004
    DB_File-1.812/hints/
    DB_File-1.812/hints/sco.pl
    DB_File-1.812/hints/dynixptx.pl
    DB_File-1.812/t/
    DB_File-1.812/t/db-btree.t
    DB_File-1.812/t/db-recno.t
    DB_File-1.812/t/db-hash.t
    DB_File-1.812/Changes
    DB_File-1.812/DB_File_BS
    DB_File-1.812/fallback.h
    DB_File-1.812/MANIFEST
    DB_File-1.812/typemap
    DB_File-1.812/ppport.h
    DB_File-1.812/DB_File.xs
    DB_File-1.812/META.yml
    DB_File-1.812/config.in
    DB_File-1.812/DB_File.pm
    DB_File-1.812/version.c
    DB_File-1.812/fallback.xs
    DB_File-1.812/README
    DB_File-1.812/Makefile.PL
    Removing previously used /root/.cpan/build/DB_File-1.812

    CPAN.pm: Going to build P/PM/PMQS/DB_File-1.812.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 -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -DVERSION=\"1.812\" -DXS_VERSION=\"1.812\" -fPIC "-I/usr/lib/perl5/5.8.6/i386-linux-thread-multi/CORE" -D_NOT_CORE -DmDB_Prefix_t=size_t -DmDB_Hash_t=u_int32_t version.c
    version.c:30:16: error: db.h: No such file or directory
    make: *** [version.o] Error 1
    /usr/bin/make -- NOT OK
    Running make test
    Can't test without successful make
    Running make install
    make had returned bad status, install seems impossible
    ==========================================================

    thanks again for the help,

    ray
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. Nu2Linux

    Nu2Linux New Member

    i installed db and db-devel according to the post http://www.howtoforge.com/forums/showthread.php?t=699

    i then ran the db install again and got this....
    ==========================================
    cpan> install DB_File
    Running install for module DB_File
    Running make for P/PM/PMQS/DB_File-1.812.tar.gz
    Is already unwrapped into directory /root/.cpan/build/DB_File-1.812
    Has already been processed within this session
    Running make test
    Can't test without successful make
    Running make install
    make had returned bad status, install seems impossible
    ==============================================

    any ideas???

    thanks,

    ray
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Have you tried to install DB_File from your linux distribution with e.g. rpm or apt instaed of using cpan? If you have apt installed, you can find the package by executing the command:

    apt-cache search DB_File
     
  5. Nu2Linux

    Nu2Linux New Member

    here's what i get when i run apt
    =============================================================
    [root@localhost DB_File-1.812]# apt-cache search DB_File
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    perl - The Perl programming language.
    [root@localhost DB_File-1.812]#
    =================================================================
    here's what i get when i try to run a db_file rpm (i'm typing this from notes)
    ===================================================
    perl-db_file-1.804-88.i386.rpm

    computing package dependencies.....
    The following package could not be installed on your system. installation cannot continue until it is installed. unlocatable package - libdb-4.0.so. required by - (perl-DB_File','1.804',88)
    =======================================================
    here's what i get when i try to install the package that contains libdb-4.0.so.
    =======================================================
    db4-4.0.14.i386.rpm

    package already installed. a newer version of "db4" is currently installed.
    ========================================================
    i tried yum install perl-db_file
    ====================================================
    [root@localhost DB_File-1.812]# yum install perl-db_file
    Setting up Install Process
    Setting up repositories
    http://klid.dk/homeftp/fedora/linux/core/updates/4/i386/repodata/repomd.xml: [Errno 4] IOError: HTTP Error 403: Date: Sun, 30 Oct 2005 23:34:11 GMT
    Server: Apache-AdvancedExtranetServer/1.3.28 (Mandrake Linux/3.4.92mdk) PHP/4.3.3
    Connection: close
    Transfer-Encoding: chunked
    Content-Type: text/html; charset=iso-8859-1
    Trying other mirror.
    updates-released 100% |=========================| 951 B 00:00
    extras 100% |=========================| 1.1 kB 00:00
    http://linux.admin.uillinois.edu/pub/linux/fedora/linux/core/4/i386/os/repodata/repomd.xml: [Errno 4] IOError: HTTP Error 403: Date: Sun, 30 Oct 2005 23:34:13 GMT
    Server: Apache/2.0.46 (Red Hat)
    Content-Length: 353
    Connection: close
    Content-Type: text/html; charset=iso-8859-1
    Trying other mirror.
    http://mirrors.bevc.net/fedora/4/i386/os/repodata/repomd.xml: [Errno 4] IOError: HTTP Error 404: Date: Sun, 30 Oct 2005 23:34:13 GMT
    Server: Apache/2.0.46 (Red Hat)
    Content-Length: 234
    Connection: close
    Content-Type: text/html; charset=iso-8859-1
    Trying other mirror.
    base 100% |=========================| 1.1 kB 00:00
    Reading repository metadata in from local files
    primary.xml.gz 100% |=========================| 346 kB 00:00
    updates-re: ################################################## 1006/1006
    Added 43 new packages, deleted 26 old in 20.27 seconds
    Parsing package install arguments
    No Match for argument: perl-db_file
    Nothing to do
    ===================================================
    i don't know what else to do here to finish the installation according to the set up instructions at http://www.falkotimme.com/howtos/perfect_setup_fedora_core_4/index.php.

    please help.

    thanks,
    ray
     
  6. falko

    falko Super Moderator ISPConfig Developer

    That's because you are in a directory that has been deleted in the meantime. Nothing to worry.
    You are on Mandriva? Have you tried urpmi?
    I think with
    Code:
    urpmi -y <search term> 
    you can search for packages, and with
    Code:
    urpmi <package name>
    you can install a package.
     
  7. fanboy

    fanboy New Member

    If anyone else gets this error, all you have to do is to "clean" the package before you try to install it again

    clean DB_File
    install DB_File
     

Share This Page