CentOS Linux Configure: error: *** libgdbm not found ***

While running a configure script before compiling an application on CentOS Linux I received an error noting that libgdbm could not be found. Below I display the actual error output that interrupted the configure script, how the correct RPM package to resolve the error was located, and the output of installing the new package on CentOS Linux via YUM.

Configure Error On CentOS Linux: libgdbm

bash

  1. configure: error: *** libgdbm not found ***

When I receive errors like the above I typically use YUM to locate what package includes the necessary items to complete the configure script or list the available packages named whatever the configure script is complaining about as shown in the below example.

Use YUM To Discover Packages That Include Missing Files:

bash

  1. [root@dev ~]# yum whatprovides *libgdbm*
  2. Loaded plugins: fastestmirror, refresh-packagekit
  3. Loading mirror speeds from cached hostfile
  4.  * base: yum.singlehop.com
  5.  * epel: mirror.steadfast.net
  6.  * extras: mirror.steadfast.net
  7.  * rpmforge: ftp-stud.fht-esslingen.de
  8.  * updates: mirror.rackspace.com
  9. atrpms/filelists_db                                                                                                           | 1.1 MB     00:03
  10. gdbm-devel-1.8.0-36.el6.i686 : Development libraries and header files for the gdbm library
  11. Repo        : base
  12. Matched from:
  13. Filename    : /usr/lib/libgdbm.so
  14.  
  15. gdbm-1.8.0-36.el6.x86_64 : A GNU set of database routines which use extensible hashing
  16. Repo        : base
  17. Matched from:
  18. Filename    : /usr/lib64/libgdbm.so.2.0.0
  19. Other       : libgdbm.so.2()(64bit)
  20. Filename    : /usr/lib64/libgdbm.so.2
  21.  
  22. gdbm-devel-1.8.0-36.el6.x86_64 : Development libraries and header files for the gdbm library
  23. Repo        : base
  24. Matched from:
  25. Filename    : /usr/lib64/libgdbm.so
  26.  
  27. gdbm-1.8.0-36.el6.i686 : A GNU set of database routines which use extensible hashing
  28. Repo        : base
  29. Matched from:
  30. Other       : libgdbm.so.2
  31. Filename    : /usr/lib/libgdbm.so.2.0.0
  32. Filename    : /usr/lib/libgdbm.so.2
  33.  
  34. nemiver-0.8.2el6-1.el6.x86_64 : A GNOME C/C++ Debugger
  35. Repo        : epel
  36. Matched from:
  37. Other       : libgdbmod.so()(64bit)
  38. Filename    : /usr/lib64/nemiver/modules/libgdbmod.so
  39.  
  40. gdbm-1.8.0-36.el6.x86_64 : A GNU set of database routines which use extensible hashing
  41. Repo        : installed
  42. Matched from:
  43. Filename    : /usr/lib64/libgdbm.so.2.0.0
  44. Other       : libgdbm.so.2()(64bit)
  45. Filename    : /usr/lib64/libgdbm.so.2
  46.  
  47. [root@dev ~]#

Typically you will need the “-devel” package when running into an error with a configure script so based on the above output the gdbm-devel package would need to be installed as shown in the below example output.

Install gdbm-devel Using YUM On CentOS Linux:

bash

  1. [root@dev ~]# yum install gdbm-devel
  2. Loaded plugins: fastestmirror, refresh-packagekit
  3. Loading mirror speeds from cached hostfile
  4.  * base: yum.singlehop.com
  5.  * epel: mirror.steadfast.net
  6.  * extras: mirror.steadfast.net
  7.  * rpmforge: apt.sw.be
  8.  * updates: mirror.rackspace.com
  9. Setting up Install Process
  10. Resolving Dependencies
  11. --> Running transaction check
  12. ---> Package gdbm-devel.x86_64 0:1.8.0-36.el6 set to be updated
  13. --> Finished Dependency Resolution
  14.  
  15. Dependencies Resolved
  16.  
  17. =====================================================================================================================================================
  18.  Package                              Arch                             Version                                  Repository                      Size
  19. =====================================================================================================================================================
  20. Installing:
  21.  gdbm-devel                           x86_64                           1.8.0-36.el6                             base                            25 k
  22.  
  23. Transaction Summary
  24. =====================================================================================================================================================
  25. Install       1 Package(s)
  26. Upgrade       0 Package(s)
  27.  
  28. Total download size: 25 k
  29. Installed size: 22 k
  30. Is this ok [y/N]: y
  31. Downloading Packages:
  32. gdbm-devel-1.8.0-36.el6.x86_64.rpm                                                                                            |  25 kB     00:00
  33. Running rpm_check_debug
  34. Running Transaction Test
  35. Transaction Test Succeeded
  36. Running Transaction
  37.   Installing     : gdbm-devel-1.8.0-36.el6.x86_64                                                                                                1/1
  38.  
  39. Installed:
  40.   gdbm-devel.x86_64 0:1.8.0-36.el6
  41.  
  42. Complete!
  43. [root@dev ~]#

After installing gdbm-devel I was able to move past the error noted above in the configure script though I ran into other errors moving forward. I used the same process above for each of the error until the configure script completed successfully.

Embedded Linux Primer: A Practical Real-World Approach (2nd Edition) (Hardcover)


List Price: $54.99 USD
New From: $25.00 USD In Stock
Used from: $24.99 USD In Stock

Linux Kernel Development (3rd Edition) (Paperback)


List Price: $49.99 USD
New From: $23.51 USD In Stock
Used from: $16.77 USD In Stock

Share