首页 > 解决方案 > 无法识别 DLL 文件格式

问题描述

所以我一直在尝试安装 luasql-mysql 模块一段时间,但我一直遇到问题。这次我去安装它给了我这个错误:

luasql-mysql 2.5.0-1 depends on lua >= 5.1 (5.3-1 provided by VM)
mingw32-gcc -O2 -c -o src/luasql.o -IC:\Program Files\lua-5.3.5\src src/luasql.c - 
Ic:/windows/system32/include
mingw32-gcc -O2 -c -o src/ls_mysql.o -IC:\Program Files\lua-5.3.5\src src/ls_mysql.c - 
Ic:/windows/system32/include
mingw32-gcc -shared -o luasql/mysql.dll src/luasql.o src/ls_mysql.o -Lc:/windows/system32 - 
lmysqlclient C:\Program Files\lua-5.3.5\src/lua53.dll -lm
c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: cannot find -lmysqlclient
C:\Program Files\lua-5.3.5\src\lua53.dll: file not recognized: file format not recognized
collect2.exe: error: ld returned 1 exit status

Error: Build error: Failed compiling module luasql/mysql.dll

我将尝试重新安装所有内容并希望它有效,但如果有人知道我为什么会遇到这个问题,那么我将不胜感激。

标签: clinuxwindowslualuasql

解决方案


推荐阅读