Shopify / ejson

EJSON is a small library to manage encrypted secrets using asymmetric encryption.
MIT License
1.34k stars 62 forks source link

issue installing and running on MacOS 10.12.5 #40

Closed cadethacker closed 3 months ago

cadethacker commented 7 years ago

ejson is functioning after install, but man is failing and it runs with errors.

I'm a java guy, but pretty good at different tooling (python, bash, etc). But totally new to ruby stuff.

On terminal this is what happened. Google and Stackoverflow were not instructive.

Thoughts?

 ~ $ gem install ejson
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.

 ~ $ sudo gem install ejson
Password:
Successfully installed ejson-1.0.2
Parsing documentation for ejson-1.0.2
1 gem installed

 ~ $ man ejson
No manual entry for ejson

 ~ $ ejson
[this showed up in buffer window like vi:]
bundler: command not found: ronn Install missing gem executables with `bundle install`

 ~ $ bundle install
Could not locate Gemfile or .bundle/ directory

 ~ $ sudo bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on
this machine.
Could not locate Gemfile or .bundle/ directory

I did finally get it to work, after I realized that the /opt/ejson/keys directory was only writable by root. After I adjusted that, I could run ejson keygen, ejson encrypt and ejson decrypt but man still doesn't work with the same bundle install error.

Just wanted to pass this along. great tool!!