Hello, I''ve been trying to install rails remotely on a Windows machine and linecache19 fails in that it fails to build the native extensions (linecache19-0.5.12). This is probably because DevKit is not installed properly and may have to do with getting the right version of it. We downloaded DevKit-tdm-32-4.5-2-20110712-1620-sfx and, to keep it matched with the original code I''m trying to have everything work with Rails 3.0.9. Do I need to uninstall DevKit and get another version of it? If so, which one? Thanks, Barney -- 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.
For a Windows machine, try installing using railsinstaller.org Regards, iG Sent from an Asteroid in Space™ On 2011-10-06, at 4:46 PM, Barney <bsperlin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello, > I''ve been trying to install rails remotely on a Windows machine > and linecache19 fails in that it fails to build the native extensions > (linecache19-0.5.12). This is probably because DevKit is not > installed properly and may have to do with getting the right version > of it. We downloaded DevKit-tdm-32-4.5-2-20110712-1620-sfx and, to > keep it matched with the original code I''m trying to have everything > work with Rails 3.0.9. Do I need to uninstall DevKit and get another > version of it? If so, which one? > Thanks, > Barney > > -- > 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. >-- 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.
Thanks iG, but I think that Rails is working. I went back to the C: drive and typed the usual: rails new blog and it made the proper structure, then went to c:\blog\ and typed "rails server" which started up WEBRick. I then verified that it was running by opening a browser to "http://localhost:3000" and got the welcome message. So, something is going wrong in my main application. What might be the problem (rails server doesn''t run in it and gives the linecache19 error, and using "gem install linecache19" I get the error about building with native extensions. Barney On Oct 6, 11:54 am, iGbanam <xigba...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> For a Windows machine, try installing using railsinstaller.org > > Regards, > iG > > Sent from an Asteroid in Space™ > > On 2011-10-06, at 4:46 PM, Barney <bsper...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > > Hello, > > I''ve been trying to install rails remotely on a Windows machine > > and linecache19 fails in that it fails to build the native extensions > > (linecache19-0.5.12). This is probably because DevKit is not > > installed properly and may have to do with getting the right version > > of it. We downloaded DevKit-tdm-32-4.5-2-20110712-1620-sfx and, to > > keep it matched with the original code I''m trying to have everything > > work with Rails 3.0.9. Do I need to uninstall DevKit and get another > > version of it? If so, which one? > > Thanks, > > Barney > > > -- > > 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 athttp://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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Adding another detail, when I take the basic "blog" project (see above) and uncomment the "gem ruby-debug19'', :require => ruby-debug" and then do a "bundle install" it gives me the error about the native extensions. This still sounds like a DevKit problem but I''d like a suggestion from someone who is pretty sure. Thanks, Barney On Oct 6, 12:16 pm, Barney <bsper...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Thanks iG, but I think that Rails is working. I went back to the C: > drive and typed the usual: rails new blog and it made the proper > structure, then went to c:\blog\ and typed "rails server" which > started up WEBRick. I then verified that it was running by opening a > browser to "http://localhost:3000" and got the welcome message. So, > something is going wrong in my main application. What might be the > problem (rails server doesn''t run in it and gives the linecache19 > error, and using "gem install linecache19" I get the error about > building with native extensions. > Barney > > On Oct 6, 11:54 am, iGbanam <xigba...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > > For a Windows machine, try installing using railsinstaller.org > > > Regards, > > iG > > > Sent from an Asteroid in Space™ > > > On 2011-10-06, at 4:46 PM, Barney <bsper...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Hello, > > > I''ve been trying to install rails remotely on a Windows machine > > > and linecache19 fails in that it fails to build the native extensions > > > (linecache19-0.5.12). This is probably because DevKit is not > > > installed properly and may have to do with getting the right version > > > of it. We downloaded DevKit-tdm-32-4.5-2-20110712-1620-sfx and, to > > > keep it matched with the original code I''m trying to have everything > > > work with Rails 3.0.9. Do I need to uninstall DevKit and get another > > > version of it? If so, which one? > > > Thanks, > > > Barney > > > > -- > > > 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-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm. > > > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > > For more options, visit this group athttp://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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Oct 6, 12:46 pm, Barney <bsper...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello,Hello,> I''ve been trying to install rails remotely on a Windows machine > and linecache19 fails in that it fails to build the native extensions > (linecache19-0.5.12). This is probably because DevKit is not > installed properly and may have to do with getting the right version > of it. We downloaded DevKit-tdm-32-4.5-2-20110712-1620-sfx and, to > keep it matched with the original code I''m trying to have everything > work with Rails 3.0.9. Do I need to uninstall DevKit and get another > version of it? If so, which one?For Ruby 1.9.2 you need the latest DevKit published on RubyInstaller page, which is tdm-32-4.5.2, so that is good. Now, have you followed the installation instructions from the wiki? https://github.com/oneclick/rubyinstaller/wiki/Development-Kit Please note that linecache19 will require an active internet connection to download the source package of Ruby to be able to compile it''s extension (that is done by the ruby_core_source gem) To our bad, there is no progress on what is going on to determine if the download worked or not, but there are high chances it failed, aborted and caused the gem installation to fail. Other than keep trying, there is no other alternative. If you have more issues with this, please post to RubyInstaller group, where other Windows developers will try to help you: http://groups.google.com/group/rubyinstaller/ -- Luis Lavena -- 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.
Thank you Luis, I believe that my problems stem for a bad installation of the DevKit which gave me an [INFO] and a [WARN] during the install. Checking the install of rdiscount it gave me an error: Failed to build gem native extension. I''ll go to the Installer group that you suggested and continue my questioning there. Thanks again, Barney On Oct 6, 2:19 pm, Luis Lavena <luislav...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Oct 6, 12:46 pm, Barney <bsper...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hello, > > Hello, > > > I''ve been trying to install rails remotely on a Windows machine > > and linecache19 fails in that it fails to build the native extensions > > (linecache19-0.5.12). This is probably because DevKit is not > > installed properly and may have to do with getting the right version > > of it. We downloaded DevKit-tdm-32-4.5-2-20110712-1620-sfx and, to > > keep it matched with the original code I''m trying to have everything > > work with Rails 3.0.9. Do I need to uninstall DevKit and get another > > version of it? If so, which one? > > For Ruby 1.9.2 you need the latest DevKit published on RubyInstaller > page, which is tdm-32-4.5.2, so that is good. > > Now, have you followed the installation instructions from the wiki? > > https://github.com/oneclick/rubyinstaller/wiki/Development-Kit > > Please note that linecache19 will require an active internet > connection to download the source package of Ruby to be able to > compile it''s extension (that is done by the ruby_core_source gem) > > To our bad, there is no progress on what is going on to determine if > the download worked or not, but there are high chances it failed, > aborted and caused the gem installation to fail. > > Other than keep trying, there is no other alternative. > > If you have more issues with this, please post to RubyInstaller group, > where other Windows developers will try to help you: > > http://groups.google.com/group/rubyinstaller/ > > -- > Luis Lavena-- 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.
Hi Barney, The installation is already OK, but you just need to do the following steps: - Open your command shell and navigate to the DevKit installation folder (example: *C:\>DevKit*) - Next enter and run the following commands:* ruby dk.rb init ruby dk.rb install* That''s it, now you test by installing the gem. Use the following command: *gem install linecache19* Let me know if you stil have trouble. -- 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.
I''ve done the init and install before. When I run: gem install linecache19 I still get the ERROR: Failed to build gem native extension. Any ideas about where I might look for the problem? Thanks, Barney On Oct 6, 3:57 pm, Roy Situmorang <roy.situmor...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi Barney, > > The installation is already OK, but you just need to do the following steps: > - Open your command shell and navigate to the DevKit installation folder > (example: *C:\>DevKit*) > - Next enter and run the following commands:* > ruby dk.rb init > ruby dk.rb install* > > That''s it, now you test by installing the gem. Use the following command: > *gem install linecache19* > > Let me know if you stil have trouble.-- 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.
I''m not sure if the following step can help but I suggest you to try. Open your command shell and navigate to the DevKit installation folder. Enter and run the following command: * devkitvars* Then install the gem: *gem install linecache19* -- 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 6, 4:46 pm, Roy Situmorang <roy.situmor...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''m not sure if the following step can help but I suggest you to try. > > Open your command shell and navigate to the DevKit installation folder. > Enter and run the following command: > * devkitvars* > > Then install the gem: > *gem install linecache19*Thank you, I''ll try those 2 lines on Monday when I can get access to the machines. Barney -- 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.
On Oct 7, 4:44 pm, Barney <bsper...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Oct 6, 4:46 pm, Roy Situmorang <roy.situmor...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > I''m not sure if the following step can help but I suggest you to try. > > > Open your command shell and navigate to the DevKit installation folder. > > Enter and run the following command: > > * devkitvars* > > > Then install the gem: > > *gem install linecache19* > > Thank you, I''ll try those 2 lines on Monday when I can get access to > the machines. > BarneyThank you, the suggestions helped, I did the above, reinstalled ruby and gems to a directory without spaces in its name and the app worked, so thanks to all who helped! -- 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.