Ruby 1.9.1 ming with mysql on windows successful

Thanks to a lot of people I managed to get Ruby 1.9.1 installed with
rails and mysql 5.0 locally on my Windows Vista machine. I'm also able
to pull remote queries on mysql 5.1 as well. Tested both methods and am
working fine...

Looks like the only way I know of is (assuming ruby 1.9 with devkit)
1) download "mysql 5.0.x windows without installer"
2) unzip, put it in c:\mysql
3) download mysql 2.8.1 binary from tmtmhttp://www.tmtm.org/en/mysql/ruby/
4) edit extconf so that anywhere it says mswin32 it now says
mswin32|mingw
4a) make sure that mysql's bin are *not* in your path
5) run ruby extconf.rb -- --with-mysql-include=c:/mysql/include
--with-mysql-lib=c:/mysql/lib/opt
6) run make, then run make install
7) copy libmysql.dll to your path
8) run ruby -e 'require "mysql"'

------

The question I have now is if I backup my current ruby folder and
installed it later on, would it keep all the settings I've currently
applied? And, could I give the ruby compilation to someone else (if
they needed it to work on windows)?

Advertisements

> The question I have now is if I backup my current ruby folder and
> installed it later on, would it keep all the settings I've currently
> applied? And, could I give the ruby compilation to someone else (if
> they needed it to work on windows)?

Yeah I suppose you could zip up your whole ruby folder and give it to
someone--it should have all your gems and such in it. Saving away
folders should be ok.
GL!
-=r
--
Posted via http://www.ruby-forum.com/.

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!