Open Mister-X- opened 11 years ago
You need to remove the gemfile.lock and the /vender/cache and bundle install again.
Let me know if this doesn't work.
No it doesn't. And there is no vendor/cache directory.
Here is the error I get:
The --deployment flag requires a Gemfile.lock. Please make sure you have checked your Gemfile.lock into version control before deploying.
I'm not familiar with Ruby and I wonder how do you explain the first error I got (You are trying to install in deployment mode after changing your Gemfile)? And why does Ruby cares so much about version control?
I get the same error. I'm trying to install it over Ubuntu 13.10. I show you the output. It happends when I execute the command "bundle install":
user@snort:/var/www/snorby# bundle install
You are trying to install in deployment mode after changing
your Gemfile. Run bundle install
elsewhere and add the
updated Gemfile.lock to version control.
If this is a development machine, remove the Gemfile freeze
by running bundle install --no-deployment
.
You have added to the Gemfile:
You have deleted from the Gemfile:
You have changed in the Gemfile:
https://github.com/Snorby/snorby_cas_authenticatable.git (at master)
to no specified source
https://github.com/mephux/ezprint.git (at rails3)
to no specified source
https://github.com/Snorby/delayed_job_data_mapper.git (at master)
to no specified source
Can you help us please?
Thank you very much!
Any update on the issue? If you don't have time to fix it, do you have any pointer to explain how I can fix it so that I can submit a patch?
While I can't guarantee this work for everyone, I managed to get bundler to work, after someone reported this same issue in a small project of mine that automates snorby installation. Here are the steps I followed:
To Mephux/Snorby crew: 1) is there a difference between the production gems and no production gem setup? 2) Why is this error occurring, and why does running bundle install --no-product followed by --production seem to fix it? 3) What other data can I provide to resolve this problem?
My system: Ubuntu 12.04 LTS with ruby 1.9.3-p484 passenger 4.0.36 Apache 2
On Debian Wheezy the above works for me. I just had to change --no-production, --production to --no-deployment, --deployment.
I kinda figured out the issue. On snorby.org, it tells to do "git clone http://github.com/Snorby/snorby.git" and that's when the issue happens. If you replace the http by https, everything works fine.
Hi,
bundle install fails with the latest source and reverting latest commit, 7bc97f3bdd, fixes the issue. Here is the error I'm getting with latest revision:
The only files I modified were the database and snorby configuration file. The rest of them were left untouched. And I got the sources using git clone.