Hi, You can try to require 'ruby gems' first:
require 'rubygems' require 'deltacloud' api_url = 'http://localhost:3001/api' api_name = 'mockuser' api_password = 'mockpassword' client = DeltaCloud.new( api_name, api_password, api_url ) -- Michal Fojtik Senior Software Engineer, Red Hat Inc. [email protected] On Thursday, February 2, 2012 at 11:03 AM, rajaguganeswaran karunaivel wrote: > hai, > > I tried this code to access the deltacloud mock server. but it couldn't > load deltacloud. Deltacloud is installed. > > require 'deltacloud' > api_url = 'http://localhost:3001/api' > api_name = 'mockuser' > api_password = 'mockpassword' > client = DeltaCloud.new( api_name, api_password, api_url ) > > > $ ruby test.rb > test.rb:1:in `require': no such file to load -- deltacloud (LoadError) > from test.rb:1 > > why it does not load deltacloud or whether I have run somewhere else?
