I tried to solve my error by using relative_require
, but this also does not seem to work. When I use the word require
to run the following code:
APP_ROOT = File.dirname(__FILE__)
require File.join(APP_ROOT, 'lib')
require 'guide'
guide = Guide.new('restaurants.txt')
guide.launch!
I get this error:
/Users/catherinealvarado/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- ./lib (LoadError)
from /Users/catherinealvarado/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from init.rb:11:in `<main>'
I tried to solve this error by doing gem install netrc && gem install heroku-api
shown in the link below, but I get an error stating that I should install libyaml and reinstall ruby.
https://github.com/gregburek/heroku-buildpack-toolbelt/issues/5
I then tried to install libyaml and reinstall ruby, but I get more errors. I followed the instructions on the link below:
Please install libyaml and reinstall your ruby
I am new to ruby and I have been stuck on this bug for quite some time. I don't think I have any syntax errors in the file I am trying to load. Any help is greatly appreciated.