tgstation / BSQL

Asynchronous SQL support for BYOND
MIT License
5 stars 12 forks source link

Can't get linux version of BSQL to work #15

Open ghost opened 5 years ago

ghost commented 5 years ago

I can't get SQL to work on the docker version of tgstation. I get the error: [10:50:35] Runtime in library.dm,4: Unable to load library /root/.byond/bin/libBSQL.so

Here's the log for the round: https://gist.github.com/HiddenKn/8cb994b83be35c20497aa333b28b2d38

MariaDB version: Server version: 10.2.20-MariaDB-1:10.2.20+maria~bionic-log mariadb.org binary distribution

ldd output: /tgstation/libBSQL.so: /usr/lib/i386-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /tgstation/libBSQL.so) linux-gate.so.1 => (0xf77b7000) libmariadb.so.2 => not found libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xf75eb000) libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf75ce000) libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf7418000) libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf73c3000) /lib/ld-linux.so.2 (0xf77b8000)

I tried compiling it manually as well on my ubuntu server but ran into the same issue.

I can connect to the mysql server manually using the mysql command.

Gh0sT2242 commented 4 years ago

@HiddenKn Im REALLY ate on a response to this, but there's a dependency not listed, gcc++ and c++ libraries are necessary to get the libraries functional on linux, try these commands: sudo apt-get install build-essential sudo apt-get install gcc-multilib sudo apt-get install g++-multilib sudo apt-get install gcc-4.8-multilib sudo apt-get install g++-4.8-multilib

AliceDTRH commented 4 years ago

Thanks for letting me know! (This is my new / temporary account)