Gollum: install from source - cannot load such file -- rdoc/markup/to_html

Created on 28 Oct 2018  Â·  11Comments  Â·  Source: gollum/gollum

I'm not much into ruby but I tried installing gollum from source and ended up with following error:

$ bundle exec bin/gollum
bundler: failed to load command: bin/gollum (bin/gollum)
LoadError: cannot load such file -- rdoc/markup/to_html
  /home/user/.gem/ruby/2.5.0/gems/github-markup-1.7.0/lib/github/markup/rdoc.rb:3:in `require'
  /home/user/.gem/ruby/2.5.0/gems/github-markup-1.7.0/lib/github/markup/rdoc.rb:3:in `<top (required)>'
  /home/user/.gem/ruby/2.5.0/gems/github-markup-1.7.0/lib/github/markups.rb:2:in `require'
  /home/user/.gem/ruby/2.5.0/gems/github-markup-1.7.0/lib/github/markups.rb:2:in `<module:Markup>'
  /home/user/.gem/ruby/2.5.0/gems/github-markup-1.7.0/lib/github/markup.rb:103:in `instance_eval'
  /home/user/.gem/ruby/2.5.0/gems/github-markup-1.7.0/lib/github/markup.rb:103:in `<module:Markup>'
  /home/user/.gem/ruby/2.5.0/gems/github-markup-1.7.0/lib/github/markup.rb:24:in `<module:GitHub>'
  /home/user/.gem/ruby/2.5.0/gems/github-markup-1.7.0/lib/github/markup.rb:10:in `<top (required)>'
  /tmp/gollum/lib/gollum.rb:8:in `require'
  /tmp/gollum/lib/gollum.rb:8:in `<top (required)>'
  bin/gollum:7:in `require'
  bin/gollum:7:in `<top (required)>'

Here's what I did

$ ruby --version             
ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux]
$ rdoc --version
6.0.4
$ export PATH="`ruby -e 'puts Gem.user_dir'`/bin:$PATH"
$ export GEM_HOME=$(ruby -e 'print Gem.user_dir')
$ git clone https://github.com/gollum/gollum.git
$ cd gollum
$ bundle install
...
Bundle complete! 9 Gemfile dependencies, 53 gems now installed.
...
$ bundle exec bin/gollum

I'm on arch linux and installed the following packages: ruby and ruby-rdoc.

What am I missing ?

Most helpful comment

Edit: gem install rdoc fixed this for me.

I'm also on Arch and am experiencing the same issue using ruby 2.6.3. Don't have time to debug but wanted to mention that I suspect this is still a problem.

All 11 comments

Try bundle exec gollum

On Sun, Oct 28, 2018, 6:16 PM deadc0de notifications@github.com wrote:

I'm not much into ruby but I tried installing gollum from source and ended
up with following error:

$ bundle exec bin/gollum
bundler: failed to load command: bin/gollum (bin/gollum)
LoadError: cannot load such file -- rdoc/markup/to_html
/home/user/.gem/ruby/2.5.0/gems/github-markup-1.7.0/lib/github/markup/rdoc.rb:3:in require' /home/user/.gem/ruby/2.5.0/gems/github-markup-1.7.0/lib/github/markup/rdoc.rb:3:inrequire' /home/user/.gem/ruby/2.5.0/gems/github-markup-1.7.0/lib/github/markups.rb:2:in'
/home/user/.gem/ruby/2.5.0/gems/github-markup-1.7.0/lib/github/markup.rb:103:in instance_eval' /home/user/.gem/ruby/2.5.0/gems/github-markup-1.7.0/lib/github/markup.rb:103:in' /home/user/.gem/ruby/2.5.0/gems/github-markup-1.7.0/lib/github/markup.rb:24:in <module:GitHub>' /home/user/.gem/ruby/2.5.0/gems/github-markup-1.7.0/lib/github/markup.rb:10:in /tmp/gollum/lib/gollum.rb:8:in require' /tmp/gollum/lib/gollum.rb:8:ingollum:7:in require' bin/gollum:7:in

Here's what I did

$ ruby --version
ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux]
$ rdoc --version
6.0.4
$ export PATH="ruby -e 'puts Gem.user_dir'/bin:$PATH"
$ export GEM_HOME=$(ruby -e 'print Gem.user_dir')
$ git clone https://github.com/gollum/gollum.git
$ cd gollum
$ bundle install
...
Bundle complete! 9 Gemfile dependencies, 53 gems now installed.
...
$ bundle exec bin/gollum

I'm on arch linux and installed the following packages: ruby and ruby-rdoc
.

What am I missing ?

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/gollum/gollum/issues/1342, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAI-p01HTHUlFvdMtH1UlJOfnRipXrjZks5upeaBgaJpZM4X-E0M
.

thanks :+1:

Today I tried to re-install gollum from source as shown above and both commands bundle exec gollum and bundle exec bin/gollum failed. It does so on the master and on the 5.x branch. Anything I'm doing wrong ?

$ bundle exec bin/gollum 
bundler: failed to load command: bin/gollum (bin/gollum)
LoadError: cannot load such file -- rdoc/markup/to_html
  /home/user/.gem/ruby/2.5.0/gems/github-markup-1.7.0/lib/github/markup/rdoc.rb:3:in `require'
  /home/user/.gem/ruby/2.5.0/gems/github-markup-1.7.0/lib/github/markup/rdoc.rb:3:in `<top (required)>'
  /home/user/.gem/ruby/2.5.0/gems/github-markup-1.7.0/lib/github/markups.rb:2:in `require'
  /home/user/.gem/ruby/2.5.0/gems/github-markup-1.7.0/lib/github/markups.rb:2:in `<module:Markup>'
  /home/user/.gem/ruby/2.5.0/gems/github-markup-1.7.0/lib/github/markup.rb:103:in `instance_eval'
  /home/user/.gem/ruby/2.5.0/gems/github-markup-1.7.0/lib/github/markup.rb:103:in `<module:Markup>'
  /home/user/.gem/ruby/2.5.0/gems/github-markup-1.7.0/lib/github/markup.rb:24:in `<module:GitHub>'
  /home/user/.gem/ruby/2.5.0/gems/github-markup-1.7.0/lib/github/markup.rb:10:in `<top (required)>'
  /home/user/tools/gollum/lib/gollum.rb:8:in `require'
  /home/user/tools/gollum/lib/gollum.rb:8:in `<top (required)>'                                                                     
  bin/gollum:7:in `require'
  bin/gollum:7:in `<top (required)>'
$ bundle exec gollum
bundler: failed to load command: gollum (/home/user/.gem/ruby/2.5.0/bin/gollum)
LoadError: cannot load such file -- rdoc/markup/to_html
  /home/user/.gem/ruby/2.5.0/gems/github-markup-1.7.0/lib/github/markup/rdoc.rb:3:in `require'
  /home/user/.gem/ruby/2.5.0/gems/github-markup-1.7.0/lib/github/markup/rdoc.rb:3:in `<top (required)>'
  /home/user/.gem/ruby/2.5.0/gems/github-markup-1.7.0/lib/github/markups.rb:2:in `require'
  /home/user/.gem/ruby/2.5.0/gems/github-markup-1.7.0/lib/github/markups.rb:2:in `<module:Markup>'
  /home/user/.gem/ruby/2.5.0/gems/github-markup-1.7.0/lib/github/markup.rb:103:in `instance_eval'
  /home/user/.gem/ruby/2.5.0/gems/github-markup-1.7.0/lib/github/markup.rb:103:in `<module:Markup>'
  /home/user/.gem/ruby/2.5.0/gems/github-markup-1.7.0/lib/github/markup.rb:24:in `<module:GitHub>'
  /home/user/.gem/ruby/2.5.0/gems/github-markup-1.7.0/lib/github/markup.rb:10:in `<top (required)>'
  /home/user/tools/gollum/lib/gollum.rb:8:in `require'
  /home/user/tools/gollum/lib/gollum.rb:8:in `<top (required)>'
  /home/user/tools/gollum/bin/gollum:7:in `require'
  /home/user/tools/gollum/bin/gollum:7:in `<top (required)>'
  /home/user/.gem/ruby/2.5.0/bin/gollum:23:in `load'
  /home/user/.gem/ruby/2.5.0/bin/gollum:23:in `<top (required)>'  

Here are some info:

$ ruby --version                     
ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux]
$ rdoc --version
6.0.4

Just to add my 2cents to this issue:
Inside the file: .gem/ruby/2.5.0/gems/github-markup-1.7.0/lib/github/markup/rdoc.rb
If I remove the require "rdoc/markup/to_html" then gollum start correctly.
Is it an issue with rDoc or with gollum-lib ?
Same with Gollum 4.1.4 and gollum 5.X

Looks like a bug in the github-markup gem in ruby 2.5.

Could someone just try requiring github-markup (latest version) and see if that breaks? If so, please file a bug at github/markup and use gollum with ruby 2.4.x for the time being.

Ok I tested what you just asked and yes it works !
Question, why gollum is not using latest version of gollum-lib ?

ruby version: 2.5.0
gollum-lib version: 4.2.10
github-markup version: 3.0.1

I cannot reproduce this on 5.x, neither on OS X nor on Ubuntu:

$ bundle exec gollum --versions
Gollum 5.0.1b
Running on: x86_64-darwin17 with Ruby version 2.5.3
Using:
gollum-grit_adapter 1.0.1
gollum-lib 5.0.a.4
rugged 0.27.5
gollum-rugged_adapter 0.4.4
With the following renderers:
kramdown 1.17.0

@dummys on what platform are you? And am I right to conclude from what you're saying that upgrading github-markup fixed this?

@deadc0de6 if this persists for you, it may be a problem with rdoc on arch.

@dometto yes you are right, and I'm on Arch linux as well.

Going to close this then since we won't be working on gollum 4.x anymore!

Edit: gem install rdoc fixed this for me.

I'm also on Arch and am experiencing the same issue using ruby 2.6.3. Don't have time to debug but wanted to mention that I suspect this is still a problem.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thorlucas picture thorlucas  Â·  4Comments

James-Firth picture James-Firth  Â·  6Comments

waltharius picture waltharius  Â·  7Comments

alexlenail picture alexlenail  Â·  3Comments

andreabedini picture andreabedini  Â·  13Comments