Spork-rails, rails 3.2 and "no such file to load"

I'm having problems with Rails 3.2 + Spork. When I run bundle exec spork , I get an error:

 /usr/local/rvm/gems/ ruby-1.9.2-p290@rails-3.2.1 /bin/spork:19:in `load': no such file to load -- /usr/local/rvm/gems/ ruby-1.9.2-p290@rails-3.2.1 /gems/spork-1.0.0rc2/bin/spork (LoadError) from /usr/local/rvm/gems/ ruby-1.9.2-p290@rails-3.2.1 /bin/spork:19:in `<main>' 

As you may have noticed, I use RVM to manage my gems. Several times I tried to reinstall all my gems in a new gemset. I was not lucky. Anyone else come across this?

I created a Gist for my Gemfile: https://gist.github.com/1921929

Gist for my package: https://gist.github.com/1925661

+4
source share
1 answer

I understood that. These were permissions. Running bundle exec spork will give me the error that was above. It occurred to me that I might need to run it as a sudo bundle exec spork , and when I did this, I got another error.

I just ran the command as rvmsudo or rvmsudo bundle exec spork since I use RVM and everything works fine. Turns out it had nothing to do with Spork having any problems. Thanks to everyone for watching.

+7
source

Source: https://habr.com/ru/post/1398550/


All Articles