Ошибка при установке модуля luasql - mysql - PullRequest
0 голосов
/ 27 марта 2020

Я пытался установить luasql - mysql на windows так долго, и я продолжаю сталкиваться с ошибками после ошибок. Я думаю, что если я не смогу выяснить это в течение следующего дня или около того, я просто буду использовать виртуальную машину с unix или что-то еще, потому что я уверен, что это в 100 раз проще. Вот последняя ошибка, которую я не знаю, как исправить:

PS C:\Users\Me\Desktop\botman-master\mudlet\profiles\newbot\scripts> luarocks install luasql-mysql 
MYSQL_DIR='C:\Program Files\MySQL\MySQL Server 8.0' MYSQL_INCDIR='C:\Program Files\MySQL\MySQL Server 
8.0\include' MYSQL_LIBDIR='C:\Program Files\MySQL\MySQL Server 8.0\lib' 
LUA_INCDIR='C:\Users\Public\Lua\5.3\include' --lua-dir C:\Users\Public\Lua\5.3\bin

Installing https://luarocks.org/luasql-mysql-2.5.0-1.rockspec
Cloning into 'luasql'...
remote: Enumerating objects: 142, done.
remote: Counting objects: 100% (142/142), done.
remote: Compressing objects: 100% (99/99), done.
Receiving objects: delta 64), reused 68 (delta 29), pack-reused 0 eceiving objects:  84% (120/142)
Receiving objects: 100% (142/142), 102.51 KiB | 383.00 KiB/s, done.
Resolving deltas: 100% (64/64), done.
Note: switching to '5496d60185db0c4578e8abe0c74343e99b799311'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

git switch -c <new-branch-name>

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false


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:\Users\Public\Lua\5.3\include src/luasql.c -IC:\Program 
Files\MySQL\MySQL Server 8.0\include
mingw32-gcc -O2 -c -o src/ls_mysql.o -IC:\Users\Public\Lua\5.3\include src/ls_mysql.c -IC:\Program 
Files\MySQL\MySQL Server 8.0\include
mingw32-gcc -shared -o luasql/mysql.dll src/luasql.o src/ls_mysql.o -LC:\Program Files\MySQL\MySQL 
Server 8.0\lib -lmysqlclient C:\Users\Public\Lua\5.3\bin/lua53.dll -lm
c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: C:\Program Files\MySQL\MySQL 
Server 8.0\lib/mysqlclient.lib(libssl-1_1-x64.dll): recognised but unhandled machine type (0x8664) in 
Import Library Format archive
c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: src/ls_mysql.o:ls_mysql.c: 
(.text+0x98): undefined reference to `mysql_free_result@4'
c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: src/ls_mysql.o:ls_mysql.c: 
(.text+0x156): undefined reference to `mysql_fetch_fields@4'
c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: src/ls_mysql.o:ls_mysql.c: 
(.text+0x438): undefined reference to `mysql_ping@4'
c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: src/ls_mysql.o:ls_mysql.c: 
(.text+0x44a): undefined reference to `mysql_errno@4'
c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: src/ls_mysql.o:ls_mysql.c: 
(.text+0x45f): undefined reference to `mysql_error@4'
c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: src/ls_mysql.o:ls_mysql.c: 
(.text+0x53e): undefined reference to `mysql_close@4'
c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: src/ls_mysql.o:ls_mysql.c: 
(.text+0x57e): undefined reference to `mysql_server_end@0'
c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: src/ls_mysql.o:ls_mysql.c: 
(.text+0x6a1): undefined reference to `mysql_data_seek@12'
c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: src/ls_mysql.o:ls_mysql.c: 
(.text+0x6c6): undefined reference to `mysql_num_rows@4'
c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: src/ls_mysql.o:ls_mysql.c: 
(.text+0x79b): undefined reference to `mysql_fetch_row@4'
c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: src/ls_mysql.o:ls_mysql.c: 
(.text+0x7b0): undefined reference to `mysql_fetch_lengths@4'
c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: src/ls_mysql.o:ls_mysql.c: 
(.text+0xac6): undefined reference to `mysql_insert_id@4'
c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: src/ls_mysql.o:ls_mysql.c: 
(.text+0xb25): undefined reference to `mysql_autocommit@8'
c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: src/ls_mysql.o:ls_mysql.c: 
(.text+0xb5f): undefined reference to `mysql_autocommit@8'
c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: src/ls_mysql.o:ls_mysql.c: 
(.text+0xb86): undefined reference to `mysql_rollback@4'
c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: src/ls_mysql.o:ls_mysql.c: 
(.text+0xbc6): undefined reference to `mysql_commit@4'
c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: src/ls_mysql.o:ls_mysql.c: 
(.text+0xc4d): undefined reference to `mysql_real_escape_string@16'
c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: src/ls_mysql.o:ls_mysql.c: 
(.text+0xe55): undefined reference to `mysql_init@4'
c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: src/ls_mysql.o:ls_mysql.c: 
(.text+0xe9a): undefined reference to `mysql_real_connect@32'
c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: src/ls_mysql.o:ls_mysql.c: 
(.text+0xf74): undefined reference to `mysql_error@4'
c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: src/ls_mysql.o:ls_mysql.c: 
(.text+0xf97): undefined reference to `mysql_close@4'
c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: src/ls_mysql.o:ls_mysql.c: 
(.text+0xfff): undefined reference to `mysql_real_query@12'
c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: src/ls_mysql.o:ls_mysql.c: 
(.text+0x1015): undefined reference to `mysql_store_result@4'
c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: src/ls_mysql.o:ls_mysql.c: 
(.text+0x1025): undefined reference to `mysql_field_count@4'
c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: src/ls_mysql.o:ls_mysql.c: 
(.text+0x1041): undefined reference to `mysql_affected_rows@4'
c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: src/ls_mysql.o:ls_mysql.c: 
(.text+0x10e1): undefined reference to `mysql_error@4'
c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: src/ls_mysql.o:ls_mysql.c: 
(.text+0x1109): undefined reference to `mysql_error@4'
collect2.exe: error: ld returned 1 exit status

Error: Build error: Failed compiling module luasql/mysql.dll
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...