在 Solaris 上为 jython 2.5 编译 Mysqldb

发布于 2024-08-21 06:32:57 字数 601 浏览 2 评论 0原文

我在 Windows 上使用了 python2.6 + MySQL,并且有可用的二进制文件。

我想让整个事情在 Solaris 上工作,

因此从

我必须安装安装工具,这已经完成了。 爆炸了 MySQL-python-1.2.3c1

当我这样做时, /jython2.5.1/jython setup.py build

错误 -

`File "/opt/somepath/MySQL-python-1.2.3c1/setup_windows.py", line 2, in get_config
import os, sys, _winreg
ImportError: No module named _winreg`

我不明白为什么它需要 windows.py。要么我使用了错误的代码,要么我没有传递正确的标志。或者我要在其他地方切线 8-)

抱歉,这是我第一次在 Solaris 上编译类似驱动程序的东西。 任何建议表示赞赏。

Jython:2.5.1
索拉里斯:5.9
MySQL-5.1.42

I have used python2.6 + MySQL on Windows and there are binaries available.

I wanted to get the whole thing working on Solaris

Hence got the Mysql-Python package from here

I had to get the setuptools installed which is done.
Exploded the MySQL-python-1.2.3c1

When I this
/jython2.5.1/jython setup.py build

Error -

`File "/opt/somepath/MySQL-python-1.2.3c1/setup_windows.py", line 2, in get_config
import os, sys, _winreg
ImportError: No module named _winreg`

I don't understand why it would require windows.py. Either I'm using the incorrect code or I'm not passing the correct flags. Or I'm going on a tangent somewhere else 8-)

Sorry, this is the first time I'm compiling something like a driver on Solaris.
Any suggestions are appreciated.

Jython : 2.5.1
Solaris : 5.9
MySQL - 5.1.42

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

南七夏 2024-08-28 06:32:57

您应该使用 zxJDBC 和 JDBC而不是外部 DB-API 适配器。

You should be using zxJDBC and JDBC instead of an external DB-API adapter.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文