Hi, I have installed ruby 1.9.2, rails 3.0.0, mysql 5.1, Aptana Radrails, Java, On creating a new application using the below command line-- C:\ruby\bin\newproj>rails new newproj -d mysql I''m getting these: create create README create Rakefile create config.ru create .gitignore create Gemfile create app create app/controllers/application_controller.rb create app/helpers/application_helper.rb create app/views/layouts/application.html.erb create app/mailers create app/models create config create config/routes.rb create config/application.rb create config/environment.rb create config/environments create config/environments/development.rb create config/environments/production.rb create config/environments/test.rb create config/initializers create config/initializers/backtrace_silencers.rb create config/initializers/inflections.rb create config/initializers/mime_types.rb create config/initializers/secret_token.rb create config/initializers/session_store.rb create config/locales create config/locales/en.yml create config/boot.rb create config/database.yml create db create db/seeds.rb create doc create doc/README_FOR_APP create lib create lib/tasks create lib/tasks/.gitkeep create log create log/server.log create log/production.log create log/development.log create log/test.log create public create public/404.html create public/422.html create public/500.html create public/favicon.ico create public/index.html create public/robots.txt create public/images create public/images/rails.png create public/stylesheets create public/stylesheets/.gitkeep create public/javascripts create public/javascripts/application.js create public/javascripts/controls.js create public/javascripts/dragdrop.js create public/javascripts/effects.js create public/javascripts/prototype.js create public/javascripts/rails.js create script create script/rails create test create test/performance/browsing_test.rb create test/test_helper.rb create test/fixtures create test/functional create test/integration create test/unit create tmp create tmp/sessions create tmp/sockets create tmp/cache create tmp/pids create vendor/plugins create vendor/plugins/.gitkeep But when i want to start the server using : C:\ruby\bin\newproj>ruby script/server output is: ruby: No such file or directory -- script/server (LoadError) C:\ruby\bin\newproj>ruby script\server output is : ruby: No such file or directory -- script/server (LoadError) Is it because create script/server does not feature in the above list?? I''m helpless....Plz help me start RoR.... -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
run "rails s" You are on rails 3 man please read the latest Docs On Fri, Oct 8, 2010 at 12:47 PM, Premanshu Mishra <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>wrote:> Hi, > I have installed ruby 1.9.2, rails 3.0.0, mysql 5.1, Aptana Radrails, > Java, > On creating a new application using the below command line-- > C:\ruby\bin\newproj>rails new newproj -d mysql > > I''m getting these: > create > create README > create Rakefile > create config.ru > create .gitignore > create Gemfile > create app > create app/controllers/application_controller.rb > create app/helpers/application_helper.rb > create app/views/layouts/application.html.erb > create app/mailers > create app/models > create config > create config/routes.rb > create config/application.rb > create config/environment.rb > create config/environments > create config/environments/development.rb > create config/environments/production.rb > create config/environments/test.rb > create config/initializers > create config/initializers/backtrace_silencers.rb > create config/initializers/inflections.rb > create config/initializers/mime_types.rb > create config/initializers/secret_token.rb > create config/initializers/session_store.rb > create config/locales > create config/locales/en.yml > create config/boot.rb > create config/database.yml > create db > create db/seeds.rb > create doc > create doc/README_FOR_APP > create lib > create lib/tasks > create lib/tasks/.gitkeep > create log > create log/server.log > create log/production.log > create log/development.log > create log/test.log > create public > create public/404.html > create public/422.html > create public/500.html > create public/favicon.ico > create public/index.html > create public/robots.txt > create public/images > create public/images/rails.png > create public/stylesheets > create public/stylesheets/.gitkeep > create public/javascripts > create public/javascripts/application.js > create public/javascripts/controls.js > create public/javascripts/dragdrop.js > create public/javascripts/effects.js > create public/javascripts/prototype.js > create public/javascripts/rails.js > create script > create script/rails > create test > create test/performance/browsing_test.rb > create test/test_helper.rb > create test/fixtures > create test/functional > create test/integration > create test/unit > create tmp > create tmp/sessions > create tmp/sockets > create tmp/cache > create tmp/pids > create vendor/plugins > create vendor/plugins/.gitkeep > > But when i want to start the server using : > > C:\ruby\bin\newproj>ruby script/server > output is: ruby: No such file or directory -- script/server (LoadError) > > C:\ruby\bin\newproj>ruby script\server > output is : ruby: No such file or directory -- script/server (LoadError) > > Is it because create script/server does not feature in the above list?? > I''m helpless....Plz help me start RoR.... > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- Thanks: Rajeev sharma -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Am 08.10.2010 09:17, schrieb Premanshu Mishra:> C:\ruby\bin\newproj>ruby script/server > output is: ruby: No such file or directory -- script/server (LoadError) > > C:\ruby\bin\newproj>ruby script\server > output is : ruby: No such file or directory -- script/server (LoadError) > > Is it because create script/server does not feature in the above list?? > I''m helpless....Plz help me start RoR....Hi, in Rails 3 there is no more script/server. You can start your server with ''ruby rails server'' oder just ''ruby rails s''. Good luck, Max. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thanks Rajeev and Max. But how do i know if the server has started?? The output says a lot of things but not if the server has started May you guys pls send me links to the latest docs for Rails 3.0?/ I''m totally new to RoR.. I tried with the Head first books but cudn''t get thru!!! Thanks, Premanshu -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Google "rails" http://guides.rubyonrails.org/ REad this http://guides.rubyonrails.org/getting_started.html On Fri, Oct 8, 2010 at 1:22 PM, Premanshu Mishra <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>wrote:> Thanks Rajeev and Max. > > But how do i know if the server has started?? > The output says a lot of things but not if the server has started > > May you guys pls send me links to the latest docs for Rails 3.0?/ > I''m totally new to RoR.. > > I tried with the Head first books but cudn''t get thru!!! > > Thanks, > Premanshu > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- Thanks: Rajeev sharma -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On bundle install i m getting these errors: Installing mysql2 (0.2.4) with native extensions C:/ruby/lib/ruby/1.9.1/rubygems /installer.rb:483:in `rescue in block in build_extensions'': ERROR: Failed to bui ld gem native extension. (Gem::Installer::ExtensionBuildError) C:/ruby/bin/ruby.exe extconf.rb checking for rb_thread_blocking_region()... *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. If then i run C:\ruby\bin\project1>gem install mysql2 The following is the output Building native extensions. This could take a while... ERROR: Error installing mysql2: ERROR: Failed to build gem native extension. C:/ruby/bin/ruby.exe extconf.rb checking for rb_thread_blocking_region()... *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=C:/ruby/bin/ruby C:/ruby/lib/ruby/1.9.1/mkmf.rb:368:in `try_do'': The complier failed to generate an executable file. (RuntimeError) You have to install development tools first. from C:/ruby/lib/ruby/1.9.1/mkmf.rb:435:in `try_link0'' from C:/ruby/lib/ruby/1.9.1/mkmf.rb:440:in `try_link'' from C:/ruby/lib/ruby/1.9.1/mkmf.rb:552:in `try_func'' from C:/ruby/lib/ruby/1.9.1/mkmf.rb:797:in `block in have_func'' from C:/ruby/lib/ruby/1.9.1/mkmf.rb:693:in `block in checking_for'' from C:/ruby/lib/ruby/1.9.1/mkmf.rb:280:in `block (2 levels) in postpone '' from C:/ruby/lib/ruby/1.9.1/mkmf.rb:254:in `open'' from C:/ruby/lib/ruby/1.9.1/mkmf.rb:280:in `block in postpone'' from C:/ruby/lib/ruby/1.9.1/mkmf.rb:254:in `open'' from C:/ruby/lib/ruby/1.9.1/mkmf.rb:276:in `postpone'' from C:/ruby/lib/ruby/1.9.1/mkmf.rb:692:in `checking_for'' from C:/ruby/lib/ruby/1.9.1/mkmf.rb:796:in `have_func'' from extconf.rb:9:in `<main>'' Gem files will remain installed in C:/ruby/lib/ruby/gems/1.9.1/gems/mysql2-0.2.4 for inspection. Results logged to C:/ruby/lib/ruby/gems/1.9.1/gems/mysql2-0.2.4/ext/mysql2/gem_m ake.out Mysql 5.1 is installed in my system. Thanks, Premanshu -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 08 Oct 2010, at 11:19, Premanshu Mishra wrote:> On bundle install i m getting these errors: > > Installing mysql2 (0.2.4) with native extensions > C:/ruby/lib/ruby/1.9.1/rubygems > /installer.rb:483:in `rescue in block in build_extensions'': ERROR: > Failed to bui > ld gem native extension. (Gem::Installer::ExtensionBuildError) > > C:/ruby/bin/ruby.exe extconf.rb > checking for rb_thread_blocking_region()... *** extconf.rb failed *** > Could not create Makefile due to some reason, probably lack of > necessary libraries and/or headers. Check the mkmf.log file for more > details. You may need configuration options. > > If then i run > C:\ruby\bin\project1>gem install mysql2 > The following is the outputhttp://stackoverflow.com/questions/3655923/ruby-gem-mysql2-install-error http://stackoverflow.com/questions/3001243/ruby-rails-mysql2-gem-does-somebody-use-this-gem-is-it-stable http://ytspar.tumblr.com/post/1187378695/installing-mysql2-0-2-4-gem-on-windows But since you''re just starting off with Rails, I would advise you to simply run a Ubuntu Linux virtual machine (or even completely switch to Linux right away) instead of frustrating yourself with Windows problems and avoid even more issues with native library gems in the future. Best regards Peter De Berdt -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
> > But since you''re just starting off with Rails, I would advise you to > simply run a Ubuntu Linux virtual machine (or even completely switch > to Linux right away) instead of frustrating yourself with Windows > problems and avoid even more issues with native library gems in the > future. >Hi Peter, I m running Java VM on my system. Is there any luck with WIndows that i can expect of.....??? I need to deliver a few projects pity quick and thats why i thought RoR would come handy.... Pls put your helping hands together... Premanshu -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Peter De Berdt
2010-Oct-08 11:01 UTC
Re: Re: Re: Re: not able to start my first RoR project
On 08 Oct 2010, at 12:08, Premanshu Mishra wrote:> I m running Java VM on my system. Is there any luck with WIndows > that i > can expect of.....??? > > I need to deliver a few projects pity quick and thats why i thought > RoR > would come handy.... > Pls put your helping hands together...You could run your Rails app under JRuby if you like, but that would mean using the Java MySQL drivers instead. Java VM and a VMWare virtual machine are two different things though. You should start researching those things yourself though, since running through a whole Rails stack is out of the scope of this mailing list. Google is your friend. Best regards Peter De Berdt -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Oct 8, 6:08 am, Premanshu Mishra <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I m running Java VM on my system. Is there any luck with WIndows that i > can expect of.....???Yes, in fact JRuby is a good option on Windows. Download the latest version of NetBeans, which comes with JRuby, and you should be able to get a Rails app up and running fairly quickly. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Mark Thomas wrote:> On Oct 8, 6:08�am, Premanshu Mishra <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >> I m running Java VM on my system. Is there any luck with WIndows that i >> can expect of.....??? > > Yes, in fact JRuby is a good option on Windows. Download the latest > version of NetBeans, which comes with JRuby, and you should be able to > get a Rails app up and running fairly quickly.Oh, for goodness'' sakes, not NetBeans! Don''t get the poor guy used to using an IDE for Rails -- it doesn''t need one. Just download JRuby and have done with it. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org Sent from my iPhone -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
@Peter, Mark, Marnem: Thanks guys for the posts I have kick started my first project.But on windows and that on a sqlite3 db. I tried hard to get mysql but somehow its not willing to dance with the rails on Windows platform. But still I would try out my luck with JRuby on windows and later on if i can survive RoR i will shift to Linux.... But if any body pokes in the direction of how to make MySQL work with Rails on windows would be like an angel... hope to get further guidance from Railers. Many thanks, Premanshu -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
A number of Ruby gems like the mysql2 gem are built with extensions written in C, which means they need a properly configured compiler and tool chain on the computer they''re being installed on; without it the build process fails and the gem doesn''t install correctly. These things are standard on Linux installations of course, but not in Windows. However the guys at the RubyInstaller project have put together a development kit for Windows so that gems with native extensions will compile. Go here: http://rubyinstaller.org/add-ons/devkit/ for the project page and here: http://github.com/oneclick/rubyinstaller/wiki/Development-Kit for the installation instructions. Once you have the DevKit installed, re-run "bundle install" and hopefully the mysql2 gem should now install properly. Mark On 9 October 2010 14:24, Premanshu Mishra <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> @Peter, Mark, Marnem: Thanks guys for the posts > I have kick started my first project.But on windows and that on a > sqlite3 db. I tried hard to get mysql but somehow its not willing to > dance with the rails on Windows platform. But still I would try out my > luck with JRuby on windows and later on if i can survive RoR i will > shift to Linux.... > > But if any body pokes in the direction of how to make MySQL work with > Rails on windows would be like an angel... > > hope to get further guidance from Railers. > > Many thanks, > Premanshu > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.