Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] ruby/gems: rio-0.4.2 fails to install
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Mirot
n00b
n00b


Joined: 02 Sep 2010
Posts: 4

PostPosted: Thu Sep 02, 2010 10:41 pm    Post subject: [solved] ruby/gems: rio-0.4.2 fails to install Reply with quote

Hi,

i had to execute some ruby scripts which use the "rio" gem package. I've never used ruby before. So first i emerged ruby:
ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]
and gem installed
rdoc (2.5.11)
rdoc-data (2.5.3)
which worked fine.
When i tried to gem install rio i got the following error:

Code:
  # gem install rio
  Successfully installed rio-0.4.2
  1 gem installed
  Installing ri documentation for rio-0.4.2...
  Installing RDoc documentation for rio-0.4.2...
  ERROR:  While generating documentation for rio-0.4.2
  ... MESSAGE:   could not find template "doc/generators/template/html/rio.rb"
  ... RDOC args: lib
  (continuing with the rest of the installation)
  #


"gem list" shows:

*** LOCAL GEMS ***

rdoc (2.5.11)
rdoc-data (2.5.3)
rio (0.4.2)

However when i try to execute the intended script the "require 'rio'" fails:
Code:
  gene.rb:1:in `require': no such file to load -- rio (LoadError)
      from gene.rb:1

here is the relevant strace from the "gem install rio":
Code:
  munmap(0x7fa02387a000, 4096)            = 0
  getcwd("/usr/lib64/ruby/gems/1.8/gems/rio-0.4.2", 200) = 40
  stat("/usr/lib64/ruby/gems/1.8/gems/rdoc-2.5.11/bin/rdoc/generator/template/doc/generators/template/html/rio.rb", 0x7fff237dd2a0) = -1 ENOTDIR (Not a directory)
  stat("/usr/lib64/ruby/gems/1.8/gems/rdoc-2.5.11/lib/rdoc/generator/template/doc/generators/template/html/rio.rb", 0x7fff237dd2a0) = -1 ENOENT (No such file or directory)
  stat("/usr/lib64/ruby/site_ruby/1.8/rdoc/generator/template/doc/generators/template/html/rio.rb", 0x7fff237dd2a0) = -1 ENOENT (No such file or directory)
  stat("/usr/lib64/ruby/site_ruby/1.8/x86_64-linux/rdoc/generator/template/doc/generators/template/html/rio.rb", 0x7fff237dd2a0) = -1 ENOENT (No such file or directory)
  stat("/usr/lib64/ruby/site_ruby/rdoc/generator/template/doc/generators/template/html/rio.rb", 0x7fff237dd2a0) = -1 ENOENT (No such file or directory)
  stat("/usr/lib64/ruby/vendor_ruby/1.8/rdoc/generator/template/doc/generators/template/html/rio.rb", 0x7fff237dd2a0) = -1 ENOENT (No such file or directory)
  stat("/usr/lib64/ruby/vendor_ruby/1.8/x86_64-linux/rdoc/generator/template/doc/generators/template/html/rio.rb", 0x7fff237dd2a0) = -1 ENOENT (No such file or directory)
  stat("/usr/lib64/ruby/vendor_ruby/rdoc/generator/template/doc/generators/template/html/rio.rb", 0x7fff237dd2a0) = -1 ENOENT (No such file or directory)
  stat("/usr/lib64/ruby/1.8/rdoc/generator/template/doc/generators/template/html/rio.rb", 0x7fff237dd2a0) = -1 ENOENT (No such file or directory)
  stat("/usr/lib64/ruby/1.8/x86_64-linux/rdoc/generator/template/doc/generators/template/html/rio.rb", 0x7fff237dd2a0) = -1 ENOENT (No such file or directory)
  stat("/usr/lib64/ruby/gems/1.8/gems/rio-0.4.2/rdoc/generator/template/doc/generators/template/html/rio.rb", 0x7fff237dd2a0) = -1 ENOENT (No such file or directory)
  rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
  write(2, "ERROR:  While generating documen"..., 52ERROR:  While generating documentation for rio-0.4.2) = 52
  write(2, "\n", 1
  )                       = 1
  write(2, "... MESSAGE:   could not find te"..., 76... MESSAGE:   could not find template "doc/generators/template/html/rio.rb") = 76

looks like it can't find rio.rb during some generation step. Is there some further setup for ruby required? Any other dependency missing?

Any idea?

BR,
Mirot


Last edited by Mirot on Mon Sep 06, 2010 11:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
Mirot
n00b
n00b


Joined: 02 Sep 2010
Posts: 4

PostPosted: Mon Sep 06, 2010 10:48 am    Post subject: still not solved; anybody using ruby/gems/rio? Reply with quote

Hi,

any ruby user here? Did the rio package ever work for you under gentoo?

Btw: rio.rb which is needed by the "gem install rio" does exist and could be found here:
Code:
/usr/lib64/ruby/gems/1.8/gems/rio-0.4.2/doc/generators/template/html/rio.rb

here again the strace snipet where the installation fails to find the rio.rb:
Code:

  munmap(0x7fa02387a000, 4096)            = 0
  getcwd("/usr/lib64/ruby/gems/1.8/gems/rio-0.4.2", 200) = 40
  stat("/usr/lib64/ruby/gems/1.8/gems/rdoc-2.5.11/bin/rdoc/generator/template/doc/generators/template/html/rio.rb", 0x7fff237dd2a0) = -1 ENOTDIR (Not a directory)
  stat("/usr/lib64/ruby/gems/1.8/gems/rdoc-2.5.11/lib/rdoc/generator/template/doc/generators/template/html/rio.rb", 0x7fff237dd2a0) = -1 ENOENT (No such file or directory)
  stat("/usr/lib64/ruby/site_ruby/1.8/rdoc/generator/template/doc/generators/template/html/rio.rb", 0x7fff237dd2a0) = -1 ENOENT (No such file or directory)
  stat("/usr/lib64/ruby/site_ruby/1.8/x86_64-linux/rdoc/generator/template/doc/generators/template/html/rio.rb", 0x7fff237dd2a0) = -1 ENOENT (No such file or directory)
  stat("/usr/lib64/ruby/site_ruby/rdoc/generator/template/doc/generators/template/html/rio.rb", 0x7fff237dd2a0) = -1 ENOENT (No such file or directory)
  stat("/usr/lib64/ruby/vendor_ruby/1.8/rdoc/generator/template/doc/generators/template/html/rio.rb", 0x7fff237dd2a0) = -1 ENOENT (No such file or directory)
  stat("/usr/lib64/ruby/vendor_ruby/1.8/x86_64-linux/rdoc/generator/template/doc/generators/template/html/rio.rb", 0x7fff237dd2a0) = -1 ENOENT (No such file or directory)
  stat("/usr/lib64/ruby/vendor_ruby/rdoc/generator/template/doc/generators/template/html/rio.rb", 0x7fff237dd2a0) = -1 ENOENT (No such file or directory)
  stat("/usr/lib64/ruby/1.8/rdoc/generator/template/doc/generators/template/html/rio.rb", 0x7fff237dd2a0) = -1 ENOENT (No such file or directory)
  stat("/usr/lib64/ruby/1.8/x86_64-linux/rdoc/generator/template/doc/generators/template/html/rio.rb", 0x7fff237dd2a0) = -1 ENOENT (No such file or directory)
  stat("/usr/lib64/ruby/gems/1.8/gems/rio-0.4.2/rdoc/generator/template/doc/generators/template/html/rio.rb", 0x7fff237dd2a0) = -1 ENOENT (No such file or directory)
  rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
  write(2, "ERROR:  While generating documen"..., 52ERROR:  While generating documentation for rio-0.4.2) = 52
  write(2, "\n", 1
  )                       = 1
  write(2, "... MESSAGE:   could not find te"..., 76... MESSAGE:   could not find template "doc/generators/template/html/rio.rb") = 76

Is there any additional "search path" setup required to make (rio) gems installations succed?
Any hint is welcome.

BR,
Mirot
Back to top
View user's profile Send private message
Mirot
n00b
n00b


Joined: 02 Sep 2010
Posts: 4

PostPosted: Mon Sep 06, 2010 10:49 pm    Post subject: solved Reply with quote

Hi,

finaly i solved the issues by reinstalling the ruby stuff:

Code:
sudo bash
gem uninstall rdoc
gem uninstall rdoc-data
gem uninstall rio
emerge -C rubygems
emerge -C ruby

manually deleted several libs and dir:
Code:
rm -rf /usr/lib64/libruby*
rm -rf /usr/lib64/ruby

reinstalled the stuff
Code:
emerge ruby
emerge rubygems
gem install rio


What initially caused the installation troubles is not known though. It was a fresh installed gentoo from a synced tree.

BR,
Mirot
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum