Installing/configuring gdbm Python module for cvs2svn?

我的梦境 提交于 2019-12-24 00:43:37

问题


I am trying to install cvs2svn on a Solaris 10 machine. It has Python 2.4.4 on it. I don't have root access. When I downloaded cvs2svn and tried to run it, it said

ERROR: cvs2svn uses the anydbm package, which depends on lower level dbm libraries. Your system has dbm, with which cvs2svn is known to have problems. 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 information.

I downloaded gdbm, compiled, and installed it in my home directory. How do I get a Python gdbm module installed that works with anydbm? Google isn't helping...


回答1:


I downloaded Python 2.5.1 and compiled it from the source. I made sure my gdbm libraries were in the appropriate paths and used the altinstall into my home directory. I can now run cvs2svn with my private copy of python.




回答2:


Set the $PYTHONPATH environment variable to point to the location where you installed gdbm. Then when you run cvs2svn, the anybdm module should find gdbm successfully.




回答3:


To install gdbm for Python, try:

pip install gdbm

If pip is not present, install it via: easy_install pip.

On OSX, you may try (if brew is installed):

brew install gdbm


来源:https://stackoverflow.com/questions/922750/installing-configuring-gdbm-python-module-for-cvs2svn

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!