免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3542 | 回复: 1
打印 上一主题 下一主题

mysql_python, ImportError: ld.so.1: python2.3: fatal: relocation error: [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-03-21 23:32 |只看该作者 |倒序浏览
有那位大侠伸伸手,实在搞不定了。哎
root@Pandora # python
Python 2.3.3 (#1, Dec 15 2004, 14:04:32) [C] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import MySQLdb
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "build/bdist.solaris-2.10-sun4u/egg/MySQLdb/__init__.py", line 19, in ?
  File "build/bdist.solaris-2.10-sun4u/egg/_mysql.py", line 7, in ?
  File "build/bdist.solaris-2.10-sun4u/egg/_mysql.py", line 6, in __bootstrap__
ImportError: ld.so.1: python2.3: fatal: relocation error: file /.python-eggs/MySQL_python-1.2.2-py2.3-solaris-2.10-sun4u.egg-tmp/_mysql.so: symbol mysql_autocommit: referenced symbol not found
是什么原因?还没安装完全?我在site-packages目录下看到这些,但没有看到mysql_python的目录

root@Pandora # pwd
/usr/sfw/lib/python2.3/site-packages
root@Pandora # ls
MySQL_python-1.2.2-py2.3-solaris-2.10-sun4u.egg  pexpect.pyc
README                                           setuptools-0.6c5-py2.3.egg
easy-install.pth                                 setuptools.pth
pexpect.py

论坛徽章:
0
2 [报告]
发表于 2007-06-08 16:43 |只看该作者

I'm not sure

The problem is that Sun's ld  does not automatically add libgcc to the link step.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP