Apr 16 14:44:55 satellite.example.com[11733]: /usr/share/foreman-proxy/Gemfile.in:12:in `instance_eval': You cannot specify the same gem twice with different version requirements. (Bundler::GemfileError)
Apr 16 14:44:55 satellite.example.com[11733]: You specified: rsec (< 1) and rsec (>= 0)
There are two workarounds to this problem. The first solution is editing the file /usr/share/foreman-proxy/bundler.d/dhcp_remote_isc.rb and add the '<1' to the gem 'rsec' line [root@satellite ~]# vim /usr/share/foreman-proxy/bundler.d/dhcp_remote_isc.rb
group :dhcp_remote_isc do
gem 'rsec', '<1'
end
gem 'smart_proxy_dhcp_remote_isc'
The second solution would be to remove the '<1' from each gem 'rsec' line [root@satellite ~]# vim /usr/share/foreman-proxy/bundler.d/dhcp_isc.rb
group :dhcp_isc_inotify do
gem 'rsec'
if RUBY_VERSION < '2.2'
gem 'rb-inotify', '< 0.10'
else
gem 'rb-inotify'
end
end
group :dhcp_isc_kqueue do
gem 'rsec'
gem 'rb-kqueue'
end
I prefer the first method but both of them should work fine.Feel free to comment and / or suggest a topic.
Comments
Post a Comment