INstalled GEMS not running
I'm having a problem installing GEM's in my environment.
I have been using SSH to do this work.
[userna05@server ~]$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 2.0.14.1
- RUBY VERSION: 2.0.0 (2015-12-16 patchlevel 648) [x86_64-linux]
- INSTALLATION DIRECTORY: /home/userna05/ruby/gems
- RUBY EXECUTABLE: /usr/bin/ruby
- EXECUTABLE DIRECTORY: /home/userna05/ruby/gems/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /home/userna05/ruby/gems
-
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- "gem" => "--remote --no-rdoc --run-tests"
- "gemhome" => "/home/userna05/ruby/gems"
- "gempath" => [""]
- "rdoc" => "--inline-source --line-numbers"
- REMOTE SOURCES:
- https://rubygems.org/
[userna05@server ~]$ gem list --local
*** LOCAL GEMS ***
addressable (2.5.1)
colorator (1.1.0)
ffi (1.9.18)
forwardable-extended (2.6.0)
jekyll-asciidoc (2.0.1)
jekyll-sass-converter (1.5.0)
jekyll-watch (1.5.0)
liquid (3.0.6)
mercenary (0.3.6)
pathutil (0.14.0)
public_suffix (2.0.5)
rb-fsevent (0.9.8)
rb-inotify (0.9.8)
rouge (2.0.7, 1.11.1)
rubygems-update (2.6.11)
[userna05@server ~]$
Then I proceed with ASCIIDOCTOR GEM I need.
[userna05@server ~]$ gem install asciidoctor
Fetching: asciidoctor-1.5.5.gem (100%)
Successfully installed asciidoctor-1.5.5
ERROR: While executing gem ... (Gem::DocumentError)
RDoc is not installed: cannot load such file -- rdoc/rdoc
[userna05@server ~]$
I'll fix the RRDoc later if needed.
Then I do another list of the local Gems
[userna05@server ~]$ gem list --local
*** LOCAL GEMS ***
addressable (2.5.1)
asciidoctor (1.5.5) <---- looks like it's been installed
colorator (1.1.0)
ffi (1.9.18)
forwardable-extended (2.6.0)
jekyll-asciidoc (2.0.1)
jekyll-sass-converter (1.5.0)
jekyll-watch (1.5.0)
liquid (3.0.6)
mercenary (0.3.6)
pathutil (0.14.0)
public_suffix (2.0.5)
rb-fsevent (0.9.8)
rb-inotify (0.9.8)
rouge (2.0.7, 1.11.1)
rubygems-update (2.6.11)
I attempt to run it and I get
[userna05@server ~]$ asciidoctor
-bash: asciidoctor: command not found
I changed to the directory where the BIN is located.
[userna05@server ~]$ cd /home/userna05/ruby/gems/bin
[userna05@server bin]$ ls
./ ../ asciidoctor* asciidoctor-safe* rougify* update_rubygems* <--- Look like it in there
[userna05@server bin]$
Try to run it from this location
[userna05@server bin]$ ./asciidoctor
/usr/share/rubygems/rubygems/dependency.rb:296:in `to_specs': Could not find 'asciidoctor' (>= 0) among 5 total gem(s) (Gem::LoadError)
from /usr/share/rubygems/rubygems/dependency.rb:307:in `to_spec'
from /usr/share/rubygems/rubygems/core_ext/kernel_gem.rb:47:in `gem'
from ./asciidoctor:22:in `'
[userna05@server bin]$
Which is confusing because it looks like it was installed but, it's not??
Thank you for your question about the 'asciidoctor' Ruby gem. Unfortunately, it appears that 'asciidoctor' may have some additional dependencies that need to be installed outside a directory that you have access to function properly. If this gem is vital to the operation of your site, a VPS or dedicated server would address this issue.
Gratefully,
Casey B.