> From: "John B. Wyatt IV" <[email protected]>
> To: [email protected]
> Sent: Wednesday, April 24, 2013 11:44:14 PM
> Subject: Require error on usage example with deltacloud-1.3.3
> 
> Greetings,
> 
> I get this error from the example on the usage page.
> 
> ....rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
> `require': cannot load such file -- deltacloud (LoadError)
>     from
> .....rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
> `require'
>     from digitalocean.rb:4:in `<main>'
> 
> To install deltacloud I used
> gem install deltacloud-client
> 
> I'm trying to learn how to use deltacloud to manage a Digital Ocean account.
> 
> Here's the source
> #require 'rubygems'
> require 'deltacloud'
> 
> # this intializes a mock server
> api_url      = 'http://localhost:3001/api'
> api_name     = 'mockuser'
> api_password = 'mockpassword'
> 
> client = DeltaCloud.new( api_name, api_password, api_url )
> --
> John Wyatt
> 
 Hi John,

Did you also install the server gem - deltacloud-core? for release 1.1.3?
What does 'gem query |grep deltacloud' return?

Please see the two gems shown for download:
http://deltacloud.apache.org/download.html

Also, if you are trying to connect to your Digital Ocean account, you will need 
to start a Deltacloud server like:
deltacloudd -i digitalocean

Then, (from a separate terminal on the same machine), try:
client = DeltaCloud.new( <Digital Ocean Client key>, <Digital Ocean API Key>, 
'http://localhost:3001/api' )

>From there, you should be able to access vms, images etc. from your Digital 
>Ocean accout.

Thanks,
Ronelle

Reply via email to