sinatra: Unable to require 'sinatra/custom_logger' after install sinatra-contrib
Apology if this is not the right place to ask a question here. Please let me know if it’s not appropriate.
I read the document http://sinatrarb.com/contrib/custom_logger
Follow the instructions install gem with
gem install sinatra-contrib
After installation
$ gem list --local | grep contrib
sinatra-contrib (2.1.0)
And in my source, just require them
require 'sinatra/base' require 'sinatra/custom_logger' require 'logger'
when I executed it, it still show LoadError
require': cannot load such file -- sinatra/custom_logger (LoadError)
None of the extensions can be loaded, but sinatra/base can be loaded. Do I miss something?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 17 (9 by maintainers)
Ah! many thanks. It is! After correcting the typo, it works now. Thank you all for my silly question. I am terribly sorry for the simple typo problem bothering me so long, I just didn’t catch it…😭 Thank you all for your kindly help.
@doublechiang in the last error trace I see the following:
sinatra/custom_loggingis not correct, should besinatra/custom_loggercould you review it?Yes, I am about to, sorry for the delay, extremely busy recently. Just allow me few days.
@doublechiang Could you provide us with a sample application? Also the information that @froderik requested could come handy too