Can't get my linux compile of Python to make gdbm or bsddb modules

Zorba ghostagain at operamail.com
Thu Feb 13 12:45:19 EST 2003


Linux newbie + first time building Python = no gdbm or bsdb modules
available after the compile. This despite my installing both the
Berkeley and GNU packages prior to rebuilding Python.

'make' gives the following errors:

building 'gdbm' extension
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I.
-I/usr/src/coding_tools/Python-2.2.2/Python-2.2.2/./Include
-I/usr/local/include
-I/usr/src/coding_tools/Python-2.2.2/Python-2.2.2/Include
-I/usr/src/coding_tools/Python-2.2.2/Python-2.2.2 -c
/usr/src/coding_tools/Python-2.2.2/Python-2.2.2/Modules/gdbmmodule.c
-o build/temp.linux-i686-2.2/gdbmmodule.o
In file included from
/usr/src/coding_tools/Python-2.2.2/Python-2.2.2/Modules/gdbmmodule.c:12:
/usr/local/include/gdbm.h:85: warning: function declaration isn't a
prototype
gcc -shared build/temp.linux-i686-2.2/gdbmmodule.o -L/usr/local/lib
-lgdbm -o build/lib.linux-i686-2.2/gdbm.so
WARNING: removing "gdbm" since importing it failed
building 'bsddb' extension
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DHAVE_DB_185_H=1
-I/usr/include/db2 -I.
-I/usr/src/coding_tools/Python-2.2.2/Python-2.2.2/./Include
-I/usr/local/include
-I/usr/src/coding_tools/Python-2.2.2/Python-2.2.2/Include
-I/usr/src/coding_tools/Python-2.2.2/Python-2.2.2 -c
/usr/src/coding_tools/Python-2.2.2/Python-2.2.2/Modules/bsddbmodule.c
-o build/temp.linux-i686-2.2/bsddbmodule.o
gcc -shared build/temp.linux-i686-2.2/bsddbmodule.o -L/usr/local/lib
-ldb-3.1 -o build/lib.linux-i686-2.2/bsddb.so
WARNING: removing "bsddb" since importing it failed

As a novice I don't know why the import would fail. Tips on making it
work?




More information about the Python-list mailing list