mpalmer / lvmsync

Synchronise LVM LVs across a network by sending only snapshotted changes
http://theshed.hezmatt.org/lvmsync
GNU General Public License v3.0
380 stars 61 forks source link

gem_dir missing #46

Open drolfe opened 8 years ago

drolfe commented 8 years ago

[root@enc1-blade02 ~]# ruby -v ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux] [root@enc1-blade02 ~]# gem -v 1.3.7 [root@enc1-blade02 ~]# which vgcfgbackup /sbin/vgcfgbackup [root@enc1-blade02 ~]# cat /etc/redhat-release CentOS release 6.6 (Final) [root@enc1-blade02 ~]#

The error received:

[root@enc1-blade02 ~]# lvmsync /dev/4tb_raid_vg/kvm102-snap 192.168.10.207:/dev/vm_vg/kvm102_img /usr/lib/ruby/site_ruby/1.8/rubygems/specification.rb:538:in method_missing': undefined methodgem_dir' for #Gem::Specification:0x7f451d7aae40 (NoMethodError) from /usr/lib/ruby/gems/1.8/gems/git-version-bump-0.15.1/lib/git-version-bump.rb:265:in caller_gemspec' from /usr/lib/ruby/gems/1.8/gems/git-version-bump-0.15.1/lib/git-version-bump.rb:263:ineach' from /usr/lib/ruby/gems/1.8/gems/git-version-bump-0.15.1/lib/git-version-bump.rb:263:in caller_gemspec' from /usr/lib/ruby/gems/1.8/gems/git-version-bump-0.15.1/lib/git-version-bump.rb:289:ingem_version' from /usr/lib/ruby/gems/1.8/gems/git-version-bump-0.15.1/lib/git-version-bump.rb:37:in version' from /usr/lib/ruby/gems/1.8/gems/git-version-bump-0.15.1/lib/git-version-bump/version.rb:2 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:ingem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in polyglot_original_require' from /usr/lib/ruby/gems/1.8/gems/polyglot-0.3.5/lib/polyglot.rb:65:inrequire' from /usr/lib/ruby/gems/1.8/gems/git-version-bump-0.15.1/lib/git-version-bump.rb:308 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:inpolyglot_original_require' from /usr/lib/ruby/gems/1.8/gems/polyglot-0.3.5/lib/polyglot.rb:65:in require' from /usr/lib/ruby/gems/1.8/gems/lvmsync-3.3.2/bin/lvmsync:22 from /usr/bin/lvmsync:19:inload' from /usr/bin/lvmsync:19 [root@enc1-blade02 ~]#

Seems https://rubygems.org/gems/gem_dir/ is missing as a dependency

Regards, Daniel

mpalmer commented 8 years ago

Phooey. This is actually a bug in git-version-bump, rather than lvmsync itself; I'll leave this issue open, though, until I bump lvmsync's dependencies to avoid the buggy versions of git-version-bump.

drolfe commented 8 years ago

Hi Is there any work around for this issue ?

I need to use lvmsync again and would love it just to work for now ?

Regards, Daniel

john5223 commented 8 years ago

Any fix for this?

-John

m4oc commented 7 years ago

I solved this problem using rvm and ruby 1.9.3

ajones6 commented 6 years ago

m4oc, can you elaborate on how you fixed the problem?