Ubuntu Linux:MySQL安装指南(转贴)
时间:2010-10-08
来源:互联网
小弟我在ubuntu上安装了db29.7的server企业版,选择典型安装。实例创建等都没有问题,服务器启动正常。
之后我写了一个hello.sqc程序,启动服务器连接数据库后,执行db2 prep hello.sqc bindfile提示0错误0警告,
生成hello.c和hello.bnd文件,db2 bind hello.bnd成功,
之后我gcc hello.c程序,报错如下
"hello.c", line 14.10: 1506-296 (S) #include file "sqladef.h" not found.
"hello.c", line 16.15: 1506-007 (S) "struct sqla_runtime_info" is undefined.
"hello.c", line 17.43: 1506-045 (S) Undeclared identifier wchar_t.
"hello.c", line 20.37: 1506-221 (S) Initializer must be a valid constant expression.
"hello.c", line 21.37: 1506-221 (S) Initializer must be a valid constant expression.
"/usr/include/sys/inttypes.h", line 98.25: 1506-865 (E) The typedef definition of wchar_t is incompatible with the option wchar_t_size
"/usr/include/sys/inttypes.h", line 101.41: 1506-275 (S) Unexpected text '*' encountered.
"/usr/include/sys/inttypes.h", line 101.57: 1506-046 (S) Syntax error.
"/usr/include/sys/inttypes.h", line 102.42: 1506-275 (S) Unexpected text '*' encountered.
"/usr/include/sys/inttypes.h", line 102.58: 1506-046 (S) Syntax error.
"hello.sqc", line 9.10: 1506-296 (S) #include file "sqlca.h" not found.
"hello.sqc", line 10.10: 1506-296 (S) #include file "sqlda.h" not found.
"hello.sqc", line 10.32: 1506-194 (S) Incomplete type is not allowed.
"hello.sqc", line 10.1: 1506-505 (S) Type "struct sqlca" of identifier "sqlca" was incomplete at the end of its scope.
请问各位大侠,我的操作以及安装哪里存在问题呢,是gcc编译器哪里少装了东西,还是数据库少装了东西?
需要怎么解决呢?
在线等!谢谢!
之后我写了一个hello.sqc程序,启动服务器连接数据库后,执行db2 prep hello.sqc bindfile提示0错误0警告,
生成hello.c和hello.bnd文件,db2 bind hello.bnd成功,
之后我gcc hello.c程序,报错如下
"hello.c", line 14.10: 1506-296 (S) #include file "sqladef.h" not found.
"hello.c", line 16.15: 1506-007 (S) "struct sqla_runtime_info" is undefined.
"hello.c", line 17.43: 1506-045 (S) Undeclared identifier wchar_t.
"hello.c", line 20.37: 1506-221 (S) Initializer must be a valid constant expression.
"hello.c", line 21.37: 1506-221 (S) Initializer must be a valid constant expression.
"/usr/include/sys/inttypes.h", line 98.25: 1506-865 (E) The typedef definition of wchar_t is incompatible with the option wchar_t_size
"/usr/include/sys/inttypes.h", line 101.41: 1506-275 (S) Unexpected text '*' encountered.
"/usr/include/sys/inttypes.h", line 101.57: 1506-046 (S) Syntax error.
"/usr/include/sys/inttypes.h", line 102.42: 1506-275 (S) Unexpected text '*' encountered.
"/usr/include/sys/inttypes.h", line 102.58: 1506-046 (S) Syntax error.
"hello.sqc", line 9.10: 1506-296 (S) #include file "sqlca.h" not found.
"hello.sqc", line 10.10: 1506-296 (S) #include file "sqlda.h" not found.
"hello.sqc", line 10.32: 1506-194 (S) Incomplete type is not allowed.
"hello.sqc", line 10.1: 1506-505 (S) Type "struct sqlca" of identifier "sqlca" was incomplete at the end of its scope.
请问各位大侠,我的操作以及安装哪里存在问题呢,是gcc编译器哪里少装了东西,还是数据库少装了东西?
需要怎么解决呢?
在线等!谢谢!
作者: changlianggao 发布时间: 2010-10-08

作者: changlianggao 发布时间: 2010-10-08
小弟我在ubuntu上安装了db29.7的server企业版,选择典型安装。实例创建等都没有问题,服务器启动正常。
之后我写了一个hello.sqc程序,启动服务器连接数据库后,执行db2 prep hello.sqc bindfile提示0错误0警告,
生成hello.c和hello.bnd文件,db2 bind hello.bnd成功,
之后我gcc hello.c程序,报错如下
"hello.c", line 14.10: 1506-296 (S) #include file "sqladef.h" not found.
"hello.c", line 16.15: 1506-007 (S) "struct sqla_runtime_info" is undefined.
"hello.c", line 17.43: 1506-045 (S) Undeclared identifier wchar_t.
"hello.c", line 20.37: 1506-221 (S) Initializer must be a valid constant expression.
"hello.c", line 21.37: 1506-221 (S) Initializer must be a valid constant expression.
"/usr/include/sys/inttypes.h", line 98.25: 1506-865 (E) The typedef definition of wchar_t is incompatible with the option wchar_t_size
"/usr/include/sys/inttypes.h", line 101.41: 1506-275 (S) Unexpected text '*' encountered.
"/usr/include/sys/inttypes.h", line 101.57: 1506-046 (S) Syntax error.
"/usr/include/sys/inttypes.h", line 102.42: 1506-275 (S) Unexpected text '*' encountered.
"/usr/include/sys/inttypes.h", line 102.58: 1506-046 (S) Syntax error.
"hello.sqc", line 9.10: 1506-296 (S) #include file "sqlca.h" not found.
"hello.sqc", line 10.10: 1506-296 (S) #include file "sqlda.h" not found.
"hello.sqc", line 10.32: 1506-194 (S) Incomplete type is not allowed.
"hello.sqc", line 10.1: 1506-505 (S) Type "struct sqlca" of identifier "sqlca" was incomplete at the end of its scope.
请问各位大侠,我的操作以及安装哪里存在问题呢,是gcc编译器哪里少装了东西,还是数据库少装了东西?
需要怎么解决呢?
在线等!谢谢!
之后我写了一个hello.sqc程序,启动服务器连接数据库后,执行db2 prep hello.sqc bindfile提示0错误0警告,
生成hello.c和hello.bnd文件,db2 bind hello.bnd成功,
之后我gcc hello.c程序,报错如下
"hello.c", line 14.10: 1506-296 (S) #include file "sqladef.h" not found.
"hello.c", line 16.15: 1506-007 (S) "struct sqla_runtime_info" is undefined.
"hello.c", line 17.43: 1506-045 (S) Undeclared identifier wchar_t.
"hello.c", line 20.37: 1506-221 (S) Initializer must be a valid constant expression.
"hello.c", line 21.37: 1506-221 (S) Initializer must be a valid constant expression.
"/usr/include/sys/inttypes.h", line 98.25: 1506-865 (E) The typedef definition of wchar_t is incompatible with the option wchar_t_size
"/usr/include/sys/inttypes.h", line 101.41: 1506-275 (S) Unexpected text '*' encountered.
"/usr/include/sys/inttypes.h", line 101.57: 1506-046 (S) Syntax error.
"/usr/include/sys/inttypes.h", line 102.42: 1506-275 (S) Unexpected text '*' encountered.
"/usr/include/sys/inttypes.h", line 102.58: 1506-046 (S) Syntax error.
"hello.sqc", line 9.10: 1506-296 (S) #include file "sqlca.h" not found.
"hello.sqc", line 10.10: 1506-296 (S) #include file "sqlda.h" not found.
"hello.sqc", line 10.32: 1506-194 (S) Incomplete type is not allowed.
"hello.sqc", line 10.1: 1506-505 (S) Type "struct sqlca" of identifier "sqlca" was incomplete at the end of its scope.
请问各位大侠,我的操作以及安装哪里存在问题呢,是gcc编译器哪里少装了东西,还是数据库少装了东西?
需要怎么解决呢?
在线等!谢谢!
作者: changlianggao 发布时间: 2010-10-08

作者: changlianggao 发布时间: 2010-10-08
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28