I am trying to install GC 3.1-dev on Ubuntu 20.04 LTS. I have already installed Berkeley DB and it has placed 'db.h' in '/usr/local/BerkeleyDB.6.2/include/db.h' which seems normal. However GC configure bails out with 'configure: error: Berkeley DB db.h is missing'. Obviously GC has no idea where it is.
Ubuntu 20.04 is a 64-bit system.
I invoked 'configure CFLAGS='-g' per suggestion.
Any suggestions?
Thanks in advance.
G
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to install GC 3.1-dev on Ubuntu 20.04 LTS. I have already installed Berkeley DB and it has placed 'db.h' in '/usr/local/BerkeleyDB.6.2/include/db.h' which seems normal. However GC configure bails out with 'configure: error: Berkeley DB db.h is missing'. Obviously GC has no idea where it is.
Ubuntu 20.04 is a 64-bit system.
I invoked 'configure CFLAGS='-g' per suggestion.
Any suggestions?
Thanks in advance.
G
Never mind ... I added some of Simon's suggestions to the process:
export LD_LIBRARY_PATH=/usr/local/BerkeleyDB.6.2/lib:$LD_LIBRARY_PATH
./configure CFLAGS='-g' LDFLAGS=-L/usr/local/BerkeleyDB.6.2/lib CPPFLAGS=-I/usr/local/BerkeleyDB.6.2/include
./configure runs to the end. Now to see if it compiles, installs, and tests.
Fingers crossed ...
G