still cannot install rails on windows

if i follow the instructions on:

http://agilo.us/2009/03/15/rails-on-windows/

the command

gem install sqlite3-ruby

will give

I use Instant Rails all the time and love it.

http://instantrails.rubyforge.org/wiki/wiki.pl http://rubyforge.org/projects/instantrails/

It may have troubles, but it could be worth looking into.

About libmysql.dll, you can download MySQL Windows Version and copy
the libmysql.dll to C:\Windows\System32 And, I think you can download InstantRails to learn how to develop
rails application on Windows if you are a newbie. Good luck.

在 2009/4/22 上午 1:20 時, SpringFlowers AutumnMoon 寫到:

HeChian wrote:

About libmysql.dll, you can download MySQL Windows Version and copy the libmysql.dll to C:\Windows\System32 And, I think you can download InstantRails to learn how to develop rails application on Windows if you are a newbie. Good luck.

i thought Rails 2 use SQLite as the default database engine? how come it is looking for LibMySQL.dll? thanks.

if i follow the instructions on:

http://agilo.us/2009/03/15/rails-on-windows/

the command

gem install sqlite3-ruby

If I recall you have to ask for version 1.2.3 of the gem (because there is no windows build for 1.2.4)

Fred

Frederick Cheung wrote:

if i follow the instructions on:

http://agilo.us/2009/03/15/rails-on-windows/

the command

gem install sqlite3-ruby

If I recall you have to ask for version 1.2.3 of the gem (because there is no windows build for 1.2.4)

Fred

great, thanks, this works... although the Javascript popup still says about libmysql.dll is missing. how come it is looking for mysql stuff? i thought sqlite is the default?

C:\rails\third>gem install -v=1.2.3 sqlite3-ruby Successfully installed sqlite3-ruby-1.2.3-x86-mswin32 1 gem installed Installing ri documentation for sqlite3-ruby-1.2.3-x86-mswin32... Installing RDoc documentation for sqlite3-ruby-1.2.3-x86-mswin32...

great, thanks, this works... although the Javascript popup still says about libmysql.dll is missing. how come it is looking for mysql stuff? i thought sqlite is the default?

What is your app set to use ?

Fred

Frederick Cheung wrote: > What is your app set to use ?

> Fred

not sure... but since i used

gem install rails

just a few days ago, should it be using sqlite? and how can it be changed? thanks.

The important thing is what you specified when you generated the application, or what you have since set it to use. those settings live in your_app/config/database.yml

SpringFlowers AutumnMoon wrote: [...]

when generating the app, i just use

rails fourth

so is it default to sqlite if i am using the most recent rails? thanks.

Probably -- but don't waste time guessing. Rather, look at the database.yml file. That will let you know exactly what the app expects!

Best,

Marnen Laibow-Koser wrote:

SpringFlowers AutumnMoon wrote: [...]

when generating the app, i just use

rails fourth

so is it default to sqlite if i am using the most recent rails? thanks.

Probably -- but don't waste time guessing. Rather, look at the database.yml file. That will let you know exactly what the app expects!

Best, -- Marnen Laibow-Koser http://www.marnen.org marnen@marnen.org

hm, thanks. everything inside that file says sqlite... so i wonder why the javascript pop up says libmysql.dll

SpringFlowers,

I used InstantRails and it worked quite smoothly, but was very slow. I'm switching to Ubuntu over Sun xVM VirtualBox. You should definitely give it a try!

Cheers, Sazima