vinc...@cloutier.co writes: >> and it built fine but when I tried to run it I got this error: >> >> >> ~$ wayback_machine_downloader >> /gnu/store/jaf2s3paa3fswfpzi6amlqjxd3fwiw9x-ruby-2.3.0/lib/ruby/2.3.0/rubygems/dependency.rb:319:in >> >> `to_specs': Could not find 'wayback_machine_downloader' (>= 0.a) among 11 >> total gem(s) (Gem::LoadError) >> Checked in >> 'GEM_PATH=/home/rain/.gem/ruby/2.3.0:/gnu/store/jaf2s3paa3fswfpzi6amlqjxd3fwiw9x-ruby-2.3.0/lib/ruby/gems/2.3.0', >> >> execute `gem env` for more information >> from >> /gnu/store/jaf2s3paa3fswfpzi6amlqjxd3fwiw9x-ruby-2.3.0/lib/ruby/2.3.0/rubygems/dependency.rb:328:in >> >> `to_spec' >> from >> /gnu/store/jaf2s3paa3fswfpzi6amlqjxd3fwiw9x-ruby-2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_gem.rb:65:in >> >> `gem' >> from /home/rain/.guix-profile/bin/wayback_machine_downloader:22:in >> `<main>' >> >> I'm not sure what the fix would be. > > > > > It worked for me when I added `export > GEM_PATH="/home/vincent/.guix-profile/lib/ruby/gems/2.3.0" > ` to my bashrc. I run Guix on top of Debian, so there might be subtle > difference with ruby gems on GuixSD.
In that case the executable should be wrapped with the appropriate GEM_PATH. There are a couple of packages under “gnu/packages/” that have a “wrap-programs” phase doing the same. ~~ Ricardo