Error message:
[root@localhost restful]# ruby validedge.rb
validedge.rb:3:in `require': no such file to load -- rest_client (LoadError)
from validedge.rb:3
[root@localhost restful]# cat validedge.rb
#!/usr/bin/env ruby
require 'rest_client'
#require 'rest-client'
RestClient.get 'http://google.com/'
Solution:
Add require 'rubygems'
[root@localhost restful]# cat validedge.rb
#!/usr/bin/env ruby
require 'rubygems'
require 'rest_client'
#require 'rest-client'
RestClient.get 'http://google.com/'
Subscribe to:
Post Comments (Atom)
-
Step 1, New a project rails new demo Step 2, Update Gemfile add paperclip, mysql2 gem, enable JavaScript runtime gem 'mysql2' ...
-
I used 7z to zip this file under Windows, try to unzip it under linux [ang@walker temp]$ gunzip 2011.sdf.zip gunzip: 2011.sdf.zip: unkno...
-
When trying to access transmission from web-browswer i got the message : 403: Forbidden Unauthorized IP Address. Either disable the IP ad...
No comments:
Post a Comment