Chaos Project

RPG Maker => RPG Maker Scripts => Topic started by: edwardthefma on November 25, 2009, 12:36:13 pm

Title: [xp]RMX-OS mysql.so file for linux
Post by: edwardthefma on November 25, 2009, 12:36:13 pm
<RMX-OS mysql.so>
Authors: edwardthefma

Type: linux

Introduction
ok 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




Screenshots
na


Demo
http://www.mediafire.com/?mn5mwm0wn4m


Script
NA 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 Notes
you 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
Title: Re: [xp]RMX-OS mysql.so file for linux
Post by: Ryex on November 25, 2009, 12:55:32 pm
that's interesting, the Linux library used in RMX-OS works inn windows but causes problems in Linux? weird.
Title: Re: [xp]RMX-OS mysql.so file for linux
Post by: edwardthefma on November 25, 2009, 03:07:45 pm
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
Title: Re: [xp]RMX-OS mysql.so file for linux
Post by: Blizzard on November 25, 2009, 04:12:16 pm
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.
Title: Re: [xp]RMX-OS mysql.so file for linux
Post by: edwardthefma on December 02, 2009, 08:04:55 pm
XD this is awsome
Title: Re: [xp]RMX-OS mysql.so file for linux
Post by: nirahiel on December 25, 2009, 05:41:40 pm
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 ?
Title: Re: [xp]RMX-OS mysql.so file for linux
Post by: 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
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
Title: Re: [xp]RMX-OS mysql.so file for linux
Post by: nirahiel on December 26, 2009, 04:48:35 pm
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
Title: Re: [xp]RMX-OS mysql.so file for linux
Post by: fugibo on December 26, 2009, 04:56:38 pm
From terminal:
sudo apt-get install build-essential
Title: Re: [xp]RMX-OS mysql.so file for linux
Post by: 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
Title: Re: [xp]RMX-OS mysql.so file for linux
Post by: fugibo 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.
Title: Re: [xp]RMX-OS mysql.so file for linux
Post by: nirahiel on December 27, 2009, 06:20:13 pm
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 :(
Title: Re: [xp]RMX-OS mysql.so file for linux
Post by: fugibo on December 27, 2009, 06:23:37 pm
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.
Title: Re: [xp]RMX-OS mysql.so file for linux
Post by: edwardthefma on December 28, 2009, 10:07:04 am
well wen i compild it in ruby 1.9.1 it did not work so i tryed the older ver of ruby
Title: Re: [xp]RMX-OS mysql.so file for linux
Post by: Noob on January 19, 2011, 10:17:52 pm
Is there a 64 bit version?? The file is designed for a 32 bit machine, but I need one fo ra 64 bit.