Install / configure Python gdbm for cvs2svn?

I am trying to install cvs2svn on a Solaris 10 machine. It has Python 2.4.4 on it. I do not have root access. When I downloaded cvs2svn and tried to start it, he said

ERROR: cvs2svn uses the anydbm package, which depends on the lower level dbm libraries. Your system has dbm, which cvs2svn is known to have problems with. To use cvs2svn, you must install a Python dbm library other than dumbdbm or dbm. See http://python.org/doc/current/lib/module-anydbm.html for more details .

I downloaded gdbm, compiled and installed it in my home directory. How can I install the Python gdbm module that works with anydbm? Google doesn't help ...

+2
source share
3 answers

I downloaded Python 2.5.1 and compiled it from the source. I made sure my gdbm libraries are in the appropriate paths and use altinstall in my home directory. Now I can run cvs2svn with my personal copy of python.

+2
source

Set the environment variable $PYTHONPATHto indicate where you installed gdbm. Then, when you run cvs2svn, the anybdm module should find gdbmsuccessfully.

0
source

To install gdbm for Python, try:

pip install gdbm

If pipnot, install it by: easy_install pip.

On OSX, you can try (if installed brew):

brew install gdbm
0
source

Source: https://habr.com/ru/post/1713699/


All Articles