1

I'm using Luarocks 2.2.0beta1 to install luafilesystem on windows 7 with lua 5.2 and mingw. I got this error:

>luarocks install luafilesystem
Installing http://rocks.moonscript.org/luafilesystem-1.6.2-2.src.rock...
Using http://rocks.moonscript.org/luafilesystem-1.6.2-2.src.rock... switching to 'build' mode
mingw32-gcc -O2 -c -o src/lfs.o -IC:/lua/include/src/lfs.c
mingw32-gcc -shared -o lfs.dll src/lfs.o C:/lua/bin/lua52.dll -lm
C:\lua\bin\lua52.dll: file not recognized: File format not recognized
collect2.exe: error: Id returned 1 exit status

Error: Build error: Failed compiling module lfs.dll

any idea how to fix this?

note: until now, I have no problem installing other module with luarocks that have no dependency with luafilesystem.

4

1 に答える 1

2

解決しました。実際には、ビルド時に同じ MinGW コンパイラを使用していないため、この問題が発生しlua52.dllます。初めて使用するコンパイラはわかりません。@siffiejoe に感謝

于 2015-01-09T05:00:11.250 に答える