免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: graflong
打印 上一主题 下一主题

急啊!我在安装MySQL-python-1.2.0时,遇到以下问题 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2006-04-11 18:58 |只看该作者
thank you more,again,I see!

论坛徽章:
0
12 [报告]
发表于 2006-04-11 19:07 |只看该作者
把那个site.cfg改成这样是么“
[options]
embedded = False
threadsafe = True
static = False

# Use the compiler section to add additional options for the extension build.
# In particular, if your platform does not support mysql_config (like
# Windows), you will have to set most of these. Note that each entry is split
# into a list so that each line is one item.

[compiler]
#mysql_root: /usr/local/mysql
#library_dirs: /usr/local/mysql-standard-5.0.19-solaris8-sparc-64bit/lib
#include_dirs: /usr/local/mysql-standard-5.0.19-solaris8-sparc-64bit/include
#libraries: mysqlclient
# zlib
# msvcrt
# libcmt
# wsock32
# advapi32
#extra_compile_args:
#extra_objects:”

论坛徽章:
0
13 [报告]
发表于 2006-04-11 19:14 |只看该作者
原帖由 graflong 于 2006-4-11 19:07 发表
把那个site.cfg改成这样是么“
#mysql_root: /usr/local/mysql
#library_dirs: /usr/local/mysql-standard-5.0.19-solaris8-sparc-64bit/lib
#include_dirs: /usr/local/mysql-standard-5.0.19-solaris8-sparc-64bit/include
#libraries: mysqlclient


my God!
You should remove tne comment symble "#"!!!!

mysql_root: /usr/local/mysql
library_dirs: /usr/local/mysql-standard-5.0.19-solaris8-sparc-64bit/lib
include_dirs: /usr/local/mysql-standard-5.0.19-solaris8-sparc-64bit/include
libraries: mysqlclient


It's really difiicult 4U, ulmer

论坛徽章:
0
14 [报告]
发表于 2006-04-11 19:17 |只看该作者
OK,thank you again! There “threadsafe = True” is need modify?

论坛徽章:
0
15 [报告]
发表于 2006-04-11 19:20 |只看该作者
原帖由 graflong 于 2006-4-11 19:17 发表
OK,thank you again! There “threadsafe = True” is need modify?

This is not important, I guess,

P.S.: if you are successfull, pls put your replay here.

[ 本帖最后由 ulmer 于 2006-4-11 19:22 编辑 ]

论坛徽章:
0
16 [报告]
发表于 2006-04-11 19:21 |只看该作者
Thank you My real friend!

论坛徽章:
0
17 [报告]
发表于 2006-04-11 19:22 |只看该作者
Just This:
[options]
embedded = False
threadsafe = True
static = False

# Use the compiler section to add additional options for the extension build.
# In particular, if your platform does not support mysql_config (like
# Windows), you will have to set most of these. Note that each entry is split
# into a list so that each line is one item.

[compiler]
mysql_root: /usr/local/mysql-standard-5.0.19-solaris8-sparc-64bit
library_dirs: /usr/local/mysql-standard-5.0.19-solaris8-sparc-64bit/lib
include_dirs: /usr/local/mysql-standard-5.0.19-solaris8-sparc-64bit/include
libraries: mysqlclient
# zlib
# msvcrt
# libcmt
# wsock32
# advapi32
#extra_compile_args:
#extra_objects:

论坛徽章:
0
18 [报告]
发表于 2006-04-11 19:34 |只看该作者
I'm sorry ,the same Error!why?

论坛徽章:
0
19 [报告]
发表于 2006-04-11 19:38 |只看该作者
if I modify threadsafe =False ,the error is :
"root@TNC1 # python site.cfg build
  File "site.cfg", line 18
    mysql_root: /usr/local/mysql-standard-5.0.19-solaris8-sparc-64bit
              ^
SyntaxError: invalid syntax
root@TNC1 # more site.cfg
# Options:
#
# embedded: link against the embedded server library
# threadsafe: use the threadsafe client
# static: link against a static library (probably required for embedded)

[options]
embedded = False
threadsafe = False
static = False

# Use the compiler section to add additional options for the extension build.
# In particular, if your platform does not support mysql_config (like
# Windows), you will have to set most of these. Note that each entry is split
# into a list so that each line is one item.

[compiler]
mysql_root: /usr/local/mysql-standard-5.0.19-solaris8-sparc-64bit
library_dirs: /usr/local/mysql-standard-5.0.19-solaris8-sparc-64bit/lib
include_dirs: /usr/local/mysql-standard-5.0.19-solaris8-sparc-64bit/include
libraries: mysqlclient
# zlib"

论坛徽章:
0
20 [报告]
发表于 2006-04-11 19:43 |只看该作者
I change the "mysql_root: /usr/local/mysql-standard-5.0.19-solaris8-sparc-64bit" into "mysql_root: /usr/local/mysql" ,but the error is same as before
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP