if i follow the instructions on: http://agilo.us/2009/03/15/rails-on-windows/ the command gem install sqlite3-ruby will give --------------------------------- Building native extensions. This could take a while... ERROR: Error installing sqlite3-ruby: ERROR: Failed to build gem native extension. c:/ruby/bin/ruby.exe extconf.rb checking for fdatasync() in rt.lib... no checking for sqlite3.h... no nmake ''nmake'' is not recognized as an internal or external command, operable program or batch file. Gem files will remain installed in c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1 .2.4 for inspection. Results logged to c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_ api/gem_make.out --------------------------------- Right now, i installed sqlite and moved the exe into c:\ruby\bin if i start the server and go to http://localhost:3000 and click About your application’s environment a javascript alert box will show up to say libmysql.dll is missing does anyone know how to get Rails set up on windows vista? thanks. -- Posted via http://www.ruby-forum.com/.
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. On Apr 21, 1:20 pm, SpringFlowers AutumnMoon <rails-mailing- l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> if i follow the instructions on: > > http://agilo.us/2009/03/15/rails-on-windows/ > > the command > > gem install sqlite3-ruby > > will give > > --------------------------------- > Building native extensions. This could take a while... > ERROR: Error installing sqlite3-ruby: > ERROR: Failed to build gem native extension. > > c:/ruby/bin/ruby.exe extconf.rb > checking for fdatasync() in rt.lib... no > checking for sqlite3.h... no > > nmake > ''nmake'' is not recognized as an internal or external command, > operable program or batch file. > > Gem files will remain installed in > c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1 > .2.4 for inspection. > Results logged to > c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_ > api/gem_make.out > --------------------------------- > > Right now, i installed sqlite and moved the exe into c:\ruby\bin > > if i start the server and go tohttp://localhost:3000 > and click > About your application’s environment > > a javascript alert box will show up to say > > libmysql.dll is missing > > does anyone know how to get Rails set up on windows vista? thanks. > -- > Posted viahttp://www.ruby-forum.com/.
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 寫到:> > if i follow the instructions on: > > http://agilo.us/2009/03/15/rails-on-windows/ > > the command > > gem install sqlite3-ruby > > will give > > --------------------------------- > Building native extensions. This could take a while... > ERROR: Error installing sqlite3-ruby: > ERROR: Failed to build gem native extension. > > c:/ruby/bin/ruby.exe extconf.rb > checking for fdatasync() in rt.lib... no > checking for sqlite3.h... no > > nmake > ''nmake'' is not recognized as an internal or external command, > operable program or batch file. > > > Gem files will remain installed in > c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1 > .2.4 for inspection. > Results logged to > c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_ > api/gem_make.out > --------------------------------- > > > Right now, i installed sqlite and moved the exe into c:\ruby\bin > > if i start the server and go to http://localhost:3000 > and click > About your application’s environment > > a javascript alert box will show up to say > > libmysql.dll is missing > > > does anyone know how to get Rails set up on windows vista? thanks. > -- > Posted via http://www.ruby-forum.com/. > > >
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. -- Posted via http://www.ruby-forum.com/.
On Apr 21, 6:20 pm, SpringFlowers AutumnMoon <rails-mailing- l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> 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> will give > > --------------------------------- > Building native extensions. This could take a while... > ERROR: Error installing sqlite3-ruby: > ERROR: Failed to build gem native extension. > > c:/ruby/bin/ruby.exe extconf.rb > checking for fdatasync() in rt.lib... no > checking for sqlite3.h... no > > nmake > ''nmake'' is not recognized as an internal or external command, > operable program or batch file. > > Gem files will remain installed in > c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1 > .2.4 for inspection. > Results logged to > c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_ > api/gem_make.out > --------------------------------- > > Right now, i installed sqlite and moved the exe into c:\ruby\bin > > if i start the server and go tohttp://localhost:3000 > and click > About your application’s environment > > a javascript alert box will show up to say > > libmysql.dll is missing > > does anyone know how to get Rails set up on windows vista? thanks. > -- > Posted viahttp://www.ruby-forum.com/.
Frederick Cheung wrote:> On Apr 21, 6:20�pm, SpringFlowers AutumnMoon <rails-mailing- > l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> 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) > > Fredgreat, 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... -- Posted via http://www.ruby-forum.com/.
On Apr 21, 7:24 pm, SpringFlowers AutumnMoon <rails-mailing- l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > 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> > 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... > > -- > Posted viahttp://www.ruby-forum.com/.
Frederick Cheung wrote:> On Apr 21, 7:24�pm, SpringFlowers AutumnMoon <rails-mailing- > l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >> >> 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 ? > > Frednot 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. -- Posted via http://www.ruby-forum.com/.
On Apr 21, 9:34 pm, SpringFlowers AutumnMoon <rails-mailing- l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> 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> -- > Posted viahttp://www.ruby-forum.com/.
Frederick Cheung wrote:> On Apr 21, 9:34�pm, SpringFlowers AutumnMoon <rails-mailing- > l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >> 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.ymlwhen generating the app, i just use rails fourth so is it default to sqlite if i am using the most recent rails? thanks. -- Posted via http://www.ruby-forum.com/.
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-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/.
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-sbuyVjPbboAdnm+yROfE0A@public.gmane.orghm, thanks. everything inside that file says sqlite... so i wonder why the javascript pop up says libmysql.dll -- Posted via http://www.ruby-forum.com/.
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 On Apr 21, 8:39 pm, SpringFlowers AutumnMoon <rails-mailing- l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> 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 > > mar...-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > > hm, thanks. everything inside that file says sqlite... so i wonder why > the javascript pop up says libmysql.dll > -- > Posted viahttp://www.ruby-forum.com/.