I'm using rbenv to set the ruby version.
ruby -v
produces the expected 1.9.3
I can do gem install paperclip
without a problem.
However, when I do bundle install
it says:
Installing paperclip (3.1.2)
Gem::InstallError: paperclip requires Ruby version >= 1.9.2.
An error occured while installing paperclip (3.1.2), and Bundler cannot continue.
Make sure that `gem install paperclip -v '3.1.2'` succeeds before bundling.
but, ruby -v says I'm running 1.9.3. Is bundler runnign as sudo? Have anyone addressed this problem?
The problem was permission issues of my rbenv folder. This fixxed it:
sudo chown ubuntu /usr/local/rbenv/rubies -R
I am running ubuntu on AWS.