globocom / GloboDNS

Api to manage Bind Name Server
Apache License 2.0
139 stars 51 forks source link

Install error with rvm. Gemfile and Gemfile.lock are not maching #32

Open planet-winter opened 4 years ago

planet-winter commented 4 years ago

Hi,

Thanks for Globodns! It seems to be one of the only alive projects for DNS management and looks promising.

When installing with rvm I get the follopwing error

root@dns-admin:/var/www/html/globodns# sudo -u globodns bundle install --deployment --without=test,development                                                                                                      
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.

The dependencies in your gemfile changed

You have added to the Gemfile:
* mysql2 (~> 0.3.15)
* select2-rails

I assume this is due to a inconsistency of the two files Gemfile and Gemfile.lock

I haven't used rvm a lot so I am not completely sure it is not an issue on my side. Maybe related to #30 . Trying to install without rvm gives me the same error. Ruby version of Debian 10:

root@dns-admin:/var/www/html/globodns# ruby --version
ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux-gnu]
planet-winter commented 4 years ago

worked around it with bundle install --no-deployment --without=test,development and failed at a later install step

nikfot commented 4 years ago

I was facing the same issue. It fails withbundle install --no-deployment --without=test,development as well.

I tried to run bundle install --no deployment

and I got this error:

Make sure that gem install ffi -v '1.9.21' succeeds before bundling.

I run apt-get install -y libffi-dev and fixed it