<RMX-OS mysql.so>Authors: edwardthefmaType: linuxIntroductionok if you have ever tryed to run Rmx-os on a linux shell or a linux pc
you might have noticed that you get a mysql.so error well hear is a file that will fix that
Features
- the abillaty to use rmx-os with a deban linux shell with ruby1.9.1 and my sql
Screenshotsna
Demohttp://www.mediafire.com/?mn5mwm0wn4m
ScriptNA it is in the demo
Instructions
to fix this is easy you replace the mysql.so with my preconfigerd
mysql.so file
now this has bean tested with debian and it work i cant say it will work for all linux distros
you if it dosent work you will need to follow my foot steps you need to compile a new so using this ruby guide
http://www.tmtm.org/en/mysql/ruby/ but insted of compileing it with ruby 1.9.1 you will compile it using 1.8.7 i think this is due to the fact that wen blizzard started rmx-os with ruby 1.8.7
Credits and Thanks
- blizzard for helping me to find out how to fix the error
- riotz for helping me with linux
Author's Notesyou might find that using a Linux shell would be easy to host your game but i will remind you that
some free shells might not like you running it cause it might go over their limited usage limit
that's interesting, the Linux library used in RMX-OS works inn windows but causes problems in Linux? weird.
yes i beleave the way mysql works in linux is diffrent
also due to the fact that blizzard compiled the mysql.so
using windows insted of linux caus he didint have acess to a linux pc
It's either because of being compiled on Windows or (which is more probable) because mysql.so compiled for Ruby 1.8.x doesn't work with Ruby 1.9.x and vice versa. I wouldn't be surprised if this mysql.so works fine with Windows and Ruby 1.8.x.
XD this is awsome
Hi, i tried the file, bug i got this error :
==========================================================================
RMX-OS Server v1.01
==========================================================================
Loading extensions...
No extensions found.
--------------------------------------------------------------------------
> Starting TCP Server...
> Connecting to MySQL database...
ruby: symbol lookup error: ./mysql.so: undefined symbol: rb_tainted_str_new_cstr
So i tried to compile it myself, and then :
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:1
Do I have to run the server as a root ?
Or what's wrong ?
try just downloading the demo file and replacing it with the old mysql.so
that should work
if you are compiling it your self do it under ruby 1.8.7 instead of ruby 1.9.1
it should work if you are under deban
Quote from: edwardthefma on December 25, 2009, 05:57:18 pm
try just downloading the demo file and replacing it with the old mysql.so
that should work
Thats what I did to get the 1st error
Quote from: edwardthefma on December 25, 2009, 05:57:18 pmif you are compiling it your self do it under ruby 1.8.7 instead of ruby 1.9.1
it should work if you are under deban
Im on Ubuntu v9.04 and ruby is 1.8.7
From terminal:
sudo apt-get install build-essential
well http://www.tmtm.org/en/mysql/ruby/ i used this guide under ruby 1.8.7
after you com pile it you find the mysql.so with the compiled files
Quote from: edwardthefma on December 26, 2009, 05:09:55 pm
well http://www.tmtm.org/en/mysql/ruby/ i used this guide under ruby 1.8.7
after you com pile it you find the mysql.so with the compiled files
You have to use the command I gave for it to work on Linux. You'll also need to install Ruby, but I take it he's already done that.
Quote from: Longfellow on December 26, 2009, 05:16:37 pm
Quote from: edwardthefma on December 26, 2009, 05:09:55 pm
well http://www.tmtm.org/en/mysql/ruby/ i used this guide under ruby 1.8.7
after you com pile it you find the mysql.so with the compiled files
You have to use the command I gave for it to work on Linux. You'll also need to install Ruby, but I take it he's already done that.
Build essentials already installed :(
Ah, I see. Well, your error would indicate that your MySQL was built against either a) a different version of Ruby or b) an extra module. Sorry, but I can't help anymore than telling you to try installing ruby-dev (or whatever the package is called) or trying a newer/older version of Ruby.
well wen i compild it in ruby 1.9.1 it did not work so i tryed the older ver of ruby
Is there a 64 bit version?? The file is designed for a 32 bit machine, but I need one fo ra 64 bit.