I want to build and try out this github project https://github.com/cmedley/terraforming
I have installed the package (or gem
? Apology I am not familiar with proper Ruby terminology) to an alternative location by running the setup
script in the github repo:
./script/setup --path ../bin
I can see that the main script terraforming
has been installed under bin
. The path is bin/ruby/2.3.0/bin/terraforming
in this case.
However when I ran it, I got this error:
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems.rb:241:in
bin_path': can't find gem terraforming (>= 0.a) (Gem::GemNotFoundException) from ../bin/ruby/2.3.0/bin/terraforming:22:in
'
What is the proper way to invoke this terraforming
script from the alternative installation location.
You may still need to gem install terraforming
to install the gem.
The script/setup
only installs dependencies -- you can see in its code that it just runs bundle install
, which installs the gems in the included gemfile. This gemfile does not include the terraforming
gem itself as it expects you to do this independently.