我正在尝试将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
我正在尝试使用 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)