Reputation: 2296
I am trying to use source2swagger on OSX 10.7.5
It depends on "json" so I am installing that, then trying to run as below.
machine:source2swagger jpbeuc1$ sudo gem install json
Password:
Building native extensions. This could take a while...
Successfully installed json-1.7.7
1 gem installed
Installing ri documentation for json-1.7.7...
Installing RDoc documentation for json-1.7.7...
machine:source2swagger jpbeuc1$ bin/source2swagger
bin/source2swagger:4:in `require': no such file to load -- json (LoadError)
from bin/source2swagger:4
Can anyone tell me what's not working here and how to make source2swagger see "json"?
Upvotes: 1
Views: 135
Reputation: 10147
You have source2swagger
installed in your local
and gems
are installed in root
. So your source2swagger
which needs json
can't access those gem which are installed in root
. So I recommend to gems in local
always and avoid using sudo
for installing gems. To manage gems in local I suggest to use RVM.
Upvotes: 2