$ gem install docker-sync
ERROR: While executing gem ... (Errno::EACCES) Permission denied @ rb_sysopen - /usr/local/lib/ruby/gems/2.5.0/gems/docker-sync-0.5.9/Thorfile
$ sudo gem install docker-sync
Successfully installed docker-sync-0.5.9
Parsing documentation for docker-sync-0.5.9
Done installing documentation for docker-sync after 0 seconds
1 gem installed
$ docker-sync
-bash: docker-sync: command not found
d4m
native_osx
### your docker-sync.yml
-
OSX 10.14.2
rehash or whatever you have in your shell, the usual binary cache, not ds related
$ gem install docker-sync
Fetching: thor-0.20.3.gem (100%)
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory.
$ sudo gem install docker-sync
Password:
Fetching: thor-0.20.3.gem (100%)
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/bin directory.
$ gem install docker-sync --user-install
WARNING: You don't have /Users/[MY_USER]/.gem/ruby/2.3.0/bin in your PATH,
gem executables will not run.
Successfully installed thor-0.20.3
Fetching: gem_update_checker-0.2.0.gem (100%)
Successfully installed gem_update_checker-0.2.0
Fetching: backticks-1.0.2.gem (100%)
...
restarted shell
$ docker-sync
-bash: docker-sync: command not found
what gives? :S
High Sierra
works if I do:
echo 'export PATH="/Users/[MY_USER]/.gem/ruby/2.3.0/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
if you are on a mac dont use sudo, instead add --user-install
gem install docker-sync --user-install
It worked for me
sudo gem install docker-sync -n /usr/local/bin
It worked for me
sudo gem install docker-sync -n /usr/local/bin
work for me too
Most helpful comment
works if I do: