similar to: Unable to gem install rails

Displaying 20 results from an estimated 5000 matches similar to: "Unable to gem install rails"

2011 Jan 08
6
Need help in Installing Rails 3.0.3
This is my gem env RubyGems Environment: - RUBYGEMS VERSION: 1.3.7 - RUBY VERSION: 1.9.2 (2010-12-25 patchlevel 136) [i686-linux] - INSTALLATION DIRECTORY: /home/arjunkishore/.rvm/gems/ruby-1.9.2-p136 - RUBY EXECUTABLE: /home/arjunkishore/.rvm/rubies/ruby-1.9.2-p136/bin/ruby - EXECUTABLE DIRECTORY: /home/arjunkishore/.rvm/gems/ruby-1.9.2-p136/bin - RUBYGEMS PLATFORMS: - ruby -
2010 Feb 02
0
How to set RUBY EXECUTABLE path in Ruby Gems Environment
I have ruby 2 version in my Mac which are 1.8.6 and 1.8.7. I would like to set Rubygems environment to point to Ruby 1.8.7. Anyone know this issure???? ubyGems Environment: - RUBYGEMS VERSION: 1.3.5 - RUBY VERSION: 1.8.6 (2008-08-11 patchlevel 287) [universal- darwin9.0] - INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8 - RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/
2009 Jul 28
2
Rails on OS X problem
Hi All, So far I have been unable to get rails working on a 10.5.6 OS X installation. Every ''rails'' command ends with the following error: /Library/Ruby/Site/1.8/rubygems.rb:827:in `report_activate_error'': RubyGem version error: ruby-openid(2.1.7 not ~> 2.0.0) (Gem::LoadError) I tried uninstalling and then re-installing ruby-openid, but that doesn''t help.
2008 Jul 05
0
Undefined Method Angst After Rails / Ruby / Gem Updates
I have what appears to be a problem accessing methods from within an application. I can access them from irb, but not from within the app. In other words: irb(main):001:0> require ''rubygems'' => true irb(main):002:0> require ''haml'' => true irb(main):003:0> Haml.respond_to?(''init_rails'') => true
2011 Jul 21
5
Freezing one gem in Rails 3
Hi, I''m working on an app for a colleague. He has written his own pagination class, but it is buggy and not very DRY. Therefore I replaced it with the well-known "will_paginate" gem, and that works just great. The only problem is, that although this works on my machine, my colleague (for whatever reason) refuses to install any additional gems on his machine (I guess this is
2009 Oct 13
9
Nokogiri: to_s WITHOUT html surrounding's tags?
Hi all n = Nokogiri::HTML("<h1>H1</h1>") n.to_s # => <!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\" \"http://www.w3.org/TR/REC-html40/loose.dtd\">\n<html><body><h1>H1</h1></body></html> Is there a method that only outputs the stuff I''ve read, and not the whole valid XHTML stuff?
2013 May 01
3
PG gem behaves strange. It requires live DB connection to only generate a model. How to turn it off?
I used MySQL as a backend before. Now I had to move to PG since Heroku doesn''t have MySQL and forces everyone to use their Heroku-PG database. But PG virsion of Rails works diffidently. I cannot generate a model without PG server running: >> C:\ruby\Heroku\App>rails generate model Products >> >> C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activerecord-
2013 May 12
15
Advice needed --- Best way to get mysql2 gem installed to interact with Mysql Database?
Hi Group, I''ve got mysql database installed and the server running on a Mac Pro with latest mountain lion setup 10.8.3. I''m able to use mysql tools like mysql, mysqladmin to converse with it. :} I use RVM''s scripts to fetch gems. I''ve visited RVM''s website but their advise to get "mysql gem loaded" does the same thing as below aborted
2009 Oct 12
15
We're sorry, but something went wrong on Tomcat
I am using JRuby and I have to deploy on Tomcat. My web app is working fine in the dev envirmonment, with Mongel, but when I deploy on Tomcat I get "We''re sorry, but something went wrong on Tomcat". The problem is that production.log only shows: # Logfile created on Mon Oct 12 12:54:36 +0100 2009-bash-3.00 The file permission and directory are 777. Any idea how I can
2010 Aug 14
10
Redirecting after logging in
Hey everybody, I''m trying to make an example of a small networking site, and when I log in a user, it should redirect and show his profile, but I get the following error: NoMethodError in User#index Showing app/views/user/index.html.erb where line #5 raised: undefined method `screen_name'' for nil:NilClass Extracted source (around line #5): 2: Your basic information 3:
2009 Oct 20
3
gem installation failed
i got this error message while installing mysql gem..... kindly help me to solve this issue.... JRuby limited openssl loaded. gem install jruby-openssl for full support. http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL Building native extensions. This could take a while... ERROR: Error installing mysql: ERROR: Failed to build gem native extension. C:/Program Files/NetBeans
2010 Mar 07
8
Parsing XML file with no style info with Hpricot
Hello, I''ve been trying for hours to parse an XML using Hpricot. Usually it''s not a problem. Here''s my simple code: #This works and outputs the proper xml data @url1 = ''http://www.sportingnews.com/stories/sportingnews/MLB/rss.xml'' @page1 = Hpricot(open(@url1)) <%= @page 1 %> #This does not work, and I''m scratching my head @url1 =
2010 Sep 16
6
acts_as_solr plugin fate?
Just wanted to see if I was using the latest acts_as_solr plugin, but the URL <http://acts_as_solr.railsfreaks.com/> takes me to a GoDaddy domain parking page. Anyone know what''s happened to railsfreaks, and more particularly this plugin? -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan -- You received this
2010 Nov 22
3
gem install puppet-2.6.3 problem
All, Trying to install puppet-2.6.3 on CentOS 5.4 and I get the following. [root@stsdev-pri ~]# gem install puppet-2.6.3 ERROR: http://rubygems.org/ does not appear to be a repository ERROR: Error installing puppet-2.6.3: puppet requires facter (>= 1.5.1, runtime) Facter is installed: [root@stsdev-pri ~]# facter -v 1.5.8 Ruby is installed: [root@stsdev-pri ~]# ruby --version ruby
2012 Jul 07
18
Problem processing text file after uploading
I''ve got a web-app currently partially working. The user uploads a .txt, .docx or .doc file to the server. Currently the model handles those files, saves some metadata (the extention and orig filename) then saves the file to the hard drive. Next it converts the doc and docx files to plain text and saves the output to a txt file. My problem is I want to copy the plain text contents of
2009 Oct 23
10
Rspec Tutorial
Hi Everybody, Greetings!! I want to use rspec for my applications. Please guide me with the Rspec tutorial. I want a good example to start with. Please help me by providing good tutorials on Rspec to start with. I actually followed the example from http://rspec.info Please guide me on more examples. Waiting for your reply. --~--~---------~--~----~------------~-------~--~----~ You received
2009 Apr 05
5
Use a value from a different model
Hello, I cannot find the issue and it drives me crazy :( let''s simplify. I have 2 models: saving and purchase_type a *saving* corresponds to a *purchase_type* e.g. new sourcing or renegotiation a saving has exactly one purchase_type and a purchase_type has many savings. when I try to display the list of savings and their purchase type (name, not Id), i get the dreaded "You have a
2012 Sep 04
5
Associations and Math between Models
I''ve setup two models, 1 and 2, that are associated by has_and_belongs_to_many. I''m trying to get an attribute from model_1 to use in a method in model_2. When I use the code below, I get an error saying ''undefined method model_1_id''. What am I missing? Thanks! Model_2.rb Class Model_2 < ActiveRecord::Base ... has_and_belongs_to_many :model_1 def
2008 Jun 22
1
gem install rails
May be it is a question of rem or ruby,but I need your help. When I use gem install rails,it fails.But I use the same command,it passed in another computer. OK. I use hector@hector-laptop:~$ sudo gem install rails --no-rdoc --no-ri The result: source gems.rubyonrails.org not present in cache But I try to use wget to get gems.rubyonrails.org. Anything is okay. Here is my environment: gem
2011 Jan 25
0
win7,ruby1.9.2p136. gem install rails not working.
Hello! I cannot install rails. `gem install rails` returns: ERROR: While executing gem ... (TypeError) incompatible marshal file format (can''t be read) format version 4.8 required; 0.0 given Interpreter is installed from http://rubyinstaller.org/ . Fresh installation, `gem list --local` returns: *** LOCAL GEMS *** minitest (1.6.0) rake (0.8.7) rdoc (2.5.8) `gem env`