cannot load such file -- foreman/cli (LoadError) - ruby

I got one error message while running following command.I use Proxy.is this a problem with proxy?please help me.Thanks in advance.
C:\Users\rajitha\java-getting-started>foreman
C:/Heroku/ruby-1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `
require': cannot load such file -- foreman/cli (LoadError)
from C:/Heroku/ruby-1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_requi
re.rb:36:in `require'
from C:/Heroku/bin/foreman:8:in `<main>'

use heroku local instead. It's the replacement for foreman.

Related

I have an error while running ruby server (RMX-OS)

i have this error when i launch RMX-OS.rb
root#Pokemon-Paradiz:~/RMX-OS# ruby RMX-OS.rb
/usr/local/rvm/rubies/ruby-2.0.0-p648/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:54:in require': /root/RMX-OS/bin/2.0/mysql_api.so: invalid ELF header - /root/RMX-OS/bin/2.0/mysql_api.so (LoadError) from /usr/local/rvm/rubies/ruby-2.0.0-p648/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:54:in require'
from RMX-OS.rb:72:in `'
please help me ,
Thanks

Ruby won't let me import the BigDecimal library

I tried using require 'bigdecimal', but I got an error saying that it can't load the file.
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- bigdecimal (LoadError)
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
What's going on here?
ruby-bigdecimal is a separate package in Cygwin. You'll need to install that.

Create a Deployment Manifest failed on OSX for Cloud Foundry on BOSH-Lite

I am following this doc to deploy Cloud Foundry on my OSX on VirtualBox - http://docs.cloudfoundry.org/deploying/boshlite/create_a_manifest.html
When executing
./scripts/generate-bosh-lite-dev-manifest
I got the following prints in console:
WangYudeMacBook-Pro:workspace wangyu$ cd cf-release/
WangYudeMacBook-Pro:cf-release wangyu$ ./scripts/generate-bosh-lite-dev-manifest
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- bundler/setup (LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- bundler/setup (LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
Can only target Bosh Lite Director. Please use 'bosh target' before running this script.
Anyone knows what happened? run the script with sudo did not change the result.
Thanks much for the help!
Please make sure about this pre-requisite mentioned in the docs:
"It assumes you have already setup BOSH-Lite and targeted the Director."
In order to install bosh lite and target the director, please refer to:
https://github.com/cloudfoundry/bosh-lite
I hope that helps.

Trouble running p1pp - GLI.run no longer works for GLI-2

I am new to ruby, wanted to try out the ProcessOne's Push Platform (p1pp)
I've downloaded the source for p1pp (from https://github.com/processone/p1pp), tried running it in Ubuntu 12.04.
$./bin/p1.rb
Got the error:
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- gli (LoadError)
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from ./bin/p1.rb:16
installed gli using the command
gem install gli
This time I got
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- blather/client/dsl (LoadError)
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /home/krishna/PubSub/p1pp-master/lib/p1pp/p1_publisher.rb:2
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from ./bin/p1.rb:18
Installed blather:
gem install blather
Now I am stuck here:
You should include GLI::App instead
GLI.run no longer works for GLI-2, you must just call `run(ARGV)' instead
either fix your app, or use the latest GLI in the 1.x family
Any help would be appreciated. Thanks!
Found the solution myself!
include GLI::App instead of GLI and change "exit GLI.run(ARGV)" in the last line to "exit run(ARGV)
Found this info here:
[1] http://forums.pragprog.com/forums/200/topics/10975
[2] https://github.com/bencevans/hnews/issues/3

Trying to Run Ruby script in terminal but get ERROR

I am trying to run a ruby script to rename some files but I get the following error:
Eccleshall$ ruby rename.rb
<internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- ftools (LoadError)
from <internal:lib/rubygems/custom_require>:29:in `require'
from rename.rb:45:in `<main>'
Thanks for the help.
Change to script to say:
require "fileutils"
instead of
require "ftools"
ftools has been deprecated.

Resources