小编Ant*_*ony的帖子

srlua makefile错误lua.h没有这样的文件或目录

我正在尝试将srlua我的lua文件编译为可执行文件,但我遇到了问题.

anthony@anthony-linux:~/Downloads/srlua$ make
gcc -I/tmp/lhf/lua-5.2.0/src -ansi -pedantic -Wall -Wextra -O2    -c -o srlua.o srlua.c
srlua.c:19:17: fatal error: lua.h: No such file or directory
compilation terminated.
make: *** [srlua.o] Error 1

我正在运行linux 64bit(ubuntu)

编辑:我尝试更改我的makefile的设置,但现在我得到了这个

anthony@anthony-linux:~/Downloads/srlua$ sudo make
gcc -I/usr/local/include -ansi -pedantic -Wall -Wextra -O2    -c -o srlua.o srlua.c
srlua.c:19:17: fatal error: lua.h: No such file or directory
compilation terminated.
make: *** [srlua.o] Error 1

linux lua compiler-errors makefile

5
推荐指数
1
解决办法
3万
查看次数

使用 pyodbc 连接到 Db2 for IBM i 时遇到问题

我正在尝试使用 pyodbc 和 ibm db2 odbc 驱动程序通过 db2 连接到 as400。

import pyodbc

connection = pyodbc.connect(
    driver='{IBM DB2 ODBC DRIVER}',
    system='192.168.1.100',
    uid='user',
    pwd='pass')
c1 = connection.cursor()

#this is meaningless sql, i just want the connection
c1.execute('select * from libname.filename')
for row in c1:
    print (row)
Run Code Online (Sandbox Code Playgroud)

运行这个给我这个错误

python pydata.py

Traceback (most recent call last):
  File "C:\Users\tca\Desktop\ScriptingSTuff\pydata.py", line 3, in <module>
    connection = pyodbc.connect(
pyodbc.OperationalError: ('08001', '[08001] [IBM][CLI Driver] SQL1013N  The database alias name or database name "" could not be found.  SQLSTATE=42705\r\n …
Run Code Online (Sandbox Code Playgroud)

python db2 pyodbc ibm-midrange

3
推荐指数
1
解决办法
3633
查看次数

标签 统计

compiler-errors ×1

db2 ×1

ibm-midrange ×1

linux ×1

lua ×1

makefile ×1

pyodbc ×1

python ×1