Dragonslayer Posted June 29, 2016 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 1 Reputation: 0 Joined: 05/02/13 Last Seen: February 6, 2021 Share Posted June 29, 2016 (edited) Pessoal, boa tarde!! Estou criando um servidor para entender mais como funciona o emulador, estou tendo alguns problemas para compilar (Make SQL) Quando vou compilar é apresentada as seguintes mensagens: /usr/bin/ld: i386 architecture of input file `login.o' is incompatible with i386 :x86-64 output /usr/bin/ld: i386 architecture of input file `sql_.o' is incompatible with i386: x86-64 output /usr/bin/ld: i386 architecture of input file `../common/obj/core.o' is incompati ble with i386:x86-64 output /usr/bin/ld: i386 architecture of input file `../common/obj/socket.o' is incompa tible with i386:x86-64 output /usr/bin/ld: i386 architecture of input file `../common/obj/timer.o' is incompat ible with i386:x86-64 output /usr/bin/ld: i386 architecture of input file `../common/obj/db.o' is incompatibl e with i386:x86-64 output /usr/bin/ld: i386 architecture of input file `../common/obj/plugins.o' is incomp atible with i386:x86-64 output /usr/bin/ld: i386 architecture of input file `../common/obj/lock.o' is incompati ble with i386:x86-64 output /usr/bin/ld: i386 architecture of input file `../common/obj/malloc.o' is incompa tible with i386:x86-64 output /usr/bin/ld: i386 architecture of input file `../common/obj/showmsg.o' is incomp atible with i386:x86-64 output /usr/bin/ld: i386 architecture of input file `../common/obj/utils.o' is incompat ible with i386:x86-64 output /usr/bin/ld: i386 architecture of input file `../common/obj/strlib.o' is incompa tible with i386:x86-64 output /usr/bin/ld: i386 architecture of input file `../common/obj/grfio.o' is incompat ible with i386:x86-64 output /usr/bin/ld: i386 architecture of input file `../common/obj/mapindex.o' is incom patible with i386:x86-64 output /usr/bin/ld: i386 architecture of input file `../common/obj/ers.o' is incompatib le with i386:x86-64 output /usr/bin/ld: i386 architecture of input file `../common/obj/md5calc.o' is incomp atible with i386:x86-64 output collect2: error: ld returned 1 exit status make[2]: ** [login-server_sql] Erro 1 make[2]: Saindo do diretório `/emulator/src/login_sql' make[1]: ** [login_sql] Erro 2 make[1]: Saindo do diretório `/emulator' make: ** [sql] Erro 2 Pelo que estou entendendo esse problema é o fato de o compilador não conseguir rodar por ser x64, alguém já teve algum problema parecido? ***NOTA: já tentei compilar utilizando (./configure --enable-64-bit) e (./configure) Informações: S.O = VIRTUALIZADO (VMWare) S.O = CentOS 7 Emulador = rATHENA (OLD TIMES, Hugel last validation (BAIXADO do GITHUB do JULIOCF) [PARTE DE BAIXO RESOLVIDO, VERIFIQUE A SOLUÇÃO NO FINAL] //------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Outro problema que estou tendo é: Quando vou atribuir o arquivos SQL ao banco, é apresentado os erros: [[email protected]<script data-cfhash='f9e31' type="text/javascript">/* */</script> sql-files]# dir convert_engine_innodb.sql convert_passwords.sql item_db.sql mail.sql mob_db2.sql optimize.sql upgrades convert_engine_myisam.sql item_db2.sql logs.sql main.sql mob_db.sql repair.sql //------------------------------------------------------------------------------------------------------------------- [[email protected]<script data-cfhash='f9e31' type="text/javascript">/* */</script> sql-files]# mysql --user=root -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 84 Server version: 5.5.47-MariaDB MariaDB Server Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. //------------------------------------------------------------------------------------------------------------------- //MOSTRAR OS BANCOS CRIADOS (Coloquei essa informação para mostrar que o banco foi criado) MariaDB [(none)]> SHOW DATABASES; +--------------------+ | Database | +--------------------+ | information_schema | | GOLDTIMES_log | | GOLDTIMES_rag | | mysql | | performance_schema | +--------------------+ 5 rows in set (0.00 sec) //------------------------------------------------------------------------------------------------------------------- //COMANDO PARA GARANTIR PERMISSÃO AO USUÁRIO CRIADO MariaDB [(none)]> GRANT SELECT,INSERT,UPDATE,DELETE ON 'GOLDSTIMES\_rag'.* TO 'rag'@'localhost'; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''GOLDSTIMES\_rag'.* TO 'rag'@'localhost'' at line 1 //Quando eu tento atribuir os arquivos SQL junto ao Banco (testei com todos e é apresentada a mesma mensagem) MariaDB [(none)]> GRANT SELECT,INSERT,UPDATE,DELETE ON 'GOLDSTIMES\_rag'.* TO 'rag'@'localhost'; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''GOLDSTIMES\_rag'.* TO 'rag'@'localhost'' at line 1 //------------------------------------------------------------------------------------------------------------------- //Resolução Na última versão do mariaDB (SQL FREE) o comando seria: GRANT SELECT,INSERT,UPDATE,DELETE ON NOMEdoBANCO.* TO 'rag'@'localhost'; * Basta que no banco não coloque ' ', no meu caso ficaria GOLDTIMES_rag. Para atribuir os dados que estão na pasta sql basta seguir a seguinte string: USE NOMEdoBANCO; SOURCE ./LOCALondeBAIXOUoEMULADOR/item_db.sql; * No meu caso ficaria: USE GOLDTIMES_rag; SOURCE ./EMULADOR/SQL-FILES/item_db.sql; //------------------------------------------------------------------------------------------------------------------- Alguém já teve esses problemas ou algo parecido? Peço desculpas caso esteja criando um tópico duplicado, tentei procurar no Google e aqui no forum por algum tempo porém não encontrei nada que me ajuda-se. Atenciosamente, Douglas Flores. Edited June 29, 2016 by Dragonslayer Quote Link to comment Share on other sites More sharing options...
Brainsteal Posted July 5, 2016 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 95 Reputation: 15 Joined: 11/13/11 Last Seen: April 14, 2017 Share Posted July 5, 2016 Hey, Assim de cara não dá pra saber o que você fez ao certo, não sou um "pro" em identificar problemas, mas... Aqui vai um guia: https://rathena.org/wiki/Getting_Started Siga isso passo-a-passo, eu fiz aqui e deu tudo certinho Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.