Jon-MacBook-Pro:rubygems-1.3.7 jon$ sudo gem install rails
Password:
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
SocketError: getaddrinfo: nodename nor servname provided, or not known (http://rubygems.org/gems/activesupport-2.3.8.gem)
...
Just to make one thing clear, it's not completely a programming question but a programmer might know what's wrong:
Messed up my gem installation. If I execute "gem list" or any other gem command, I get
/Library/Ruby/Site/1.8/rubygems.rb:956:in `use_paths': undefined method `join' for #<String:0x101786480> (NoMethodError)
from /Librar...
I am getting following error while reading from a spreadsheet file. I have searched alot on Google. I have seen posts with similar problems but no reply to the problems. Does anyone know how to resolve this error?
C:/Ruby/lib/ruby/gems/1.8/gems/ruby-ole-1.2.8.2/lib/ole/storage/file_system.rb:125:in `dirent_from_path': No such file o...
So I've got thin installed the old fashioned way:
gem install thin
I put an app on the server and installed all of its required gems via bundler:
bundle install
But, when I tried to start the app with thin start, it can't find any of the bundler-installed gems since they're not installed in the default gems directory.
My question...
I'm building a website based on RoR, and using a third-party gem "devise". I have used rake gems:unpack to unpack the "devise" to my "vendor/gems" directory. Now, I found the method "SessionsController.create" provided by "devise" is not fit my requirement, and I want to modify it.
But I don't know what it is best way:
just modify t...
I installed ruby through the windows installer yesterday.
All seemed fine.
Today, I went installing the rmagick win32 gem like so:
c:\ruby187\bin\gem install rmagick-2.7.1-x86-mswin32.gem
in the directory with the gem.
That also seemed to work fine, got the familiar
1 gem installed
Installing ...[all the ri and other docs].
But after...
Hello, I'm pretty new to Ruby/Rails but I was taking a look at bundler and was wondering how it works exactly. Do you install a full set of gems like normal gem install XYZand then use the Gemfile to pull a certain subset of those gems for use with a specific application? Or do you not install gems normally anymore and just include them ...
Hi,
I am trying to run a rails application in Netbeans with JRuby as the underlying Ruby. When I try to run the server, I got an error like this,
Missing these required gems:
libxml-ruby
So I tried installing the libxml-ruby gem, but I cannot install it because its a native version and jruby would not support it. Thats fine.
(in...
I was looking through some code and came across a "require 'etc'" line. Of course, googling for things like "ruby etc gem" has been fruitless. I haven't found any documentation for it (yet) so I thought I'd ask here.
...
Hi,
I am trying to install ruby gems on my MAC (OSX 10.5.1) behind corporate firewall proxy
but i am getting error for connection refuse.
kindly help me out to resolve this problem.
Thanks & regards
Ravi
...
Hi ,
Please provide me solution for the problem of,
1) How to install ruby gems on MAC PC(OSX 10.5.1) which is behind corporate firewall .
Regards,
Sun
...
I have a gem that I'm working on that contains a module that I'd like to be automatically included in my Rails app. For now, I've put the following:
config.after_initialize do
include MyModule
end
I'd like to not have to include this in the instructions for my app. It would be great if someone could install the gem/plugin and have t...
Hello, I haven't used Ruby. I don't what gems are. But I know how to install them and do basic things like that.
I heard of Jekyll and decided to start my own using Heroku. I found Rack-Jekyll that will work on Heroku.
I created my site as per Jekyll instructions and it is running fine on my system. Then I did what I was told to do in ...
Hi,
I want to parse a XML file, change some attributes and write the results in a new XML file.
The given XML file is very huge (approx. 2 GB).
Does anyone have experiences handling such XML files using Ruby and can recommend me a library?
Best regards
...
I was reading the book Ruby Cookbook by O'Reilly, and it has a section on RubyTorrent
But if I do the following on Win 7:
> gem install rubytorrent
> irb
irb(main):001:0> require 'rubytorrent'
LoadError: no such file to load -- rubytorrent
from (irb):6:in `require'
from (irb):6
I looked and found that C:\Ruby\lib\ruby...
It appears this topic has been covered a few times before, but those solutions have only gotten me so far. I now have my sources properly updated and I am able to query for gems without an error but I keep getting empty results for my searches.
I installed rubysspi and copied over the spa.rb file as mentioned in the readme.
The readme...
I am trying to get a decent navigation between my methods in TextMate. I would love to have a list of them in a drawer, but I guess there is no such solution yet, right? Therefore I am trying to set up RubyAMP to work with Ruby 1.9.1-p378 installed via RVM, but have some troubles. RubyAMP needs ruby-debug, and here is what I get if I try...
First let me explain that I've created a million lib directories scouring out all the different responses to this same problem but none of them have really done the trick..
I've tried
sudo mkdir /opt/local/lib/ruby1.9/gems/1.9.1/gems/rails-3.0.0.beta4/lib
sudo mkdir /opt/local/lib/ruby1.9/gems/1.9/gems/rails-3.0.0.beta4/lib
sudo mkdir ...
I get the following error on any call to rake. I am working on a Rails 3 running on JRuby (1.5.1) installed with RVM. I don't think this was always the case, but I'm not sure how to track it down. Am I correct in think this has something to do with the gems I have installed (listing included below)?
$ rake metrics:all
/Users/Eric/.rv...
Hi folks,
I am using the auto_html gem to embedd images and videos in my rails app. But I 've got a small problem. Is there a way to resize the images to a predefined size?
Thanks in advance
lg tabaluga
...