Try this Rafael:
$> sudo gem install bundler (if you haven't done this)
$> edit a Gemfile with this content:
source 'https://rubygems.org'
gem 'awestruct', :git => 'git://github.com/erebor/asciidoctor.git'
gem 'awestruct', '~> 0.4.8'
# if you want HEAD from the git repo and comment out the above line
#gem 'awestruct', :git =>
git://github.com/awestruct/awestruct.git'
gem 'html_truncator' # I don't recall which version here, whatever is latest
in rubygems will be fine
gem 'vpim' # same here
# Use these if you're using awestruct HEAD
#gem 'therubyracer', '~> 0.10.0'
#gem 'tilt', '~> 1.3.3'
#gem 'less', '~> 2.2.2'
$> bundle install --path vendor/bundle
add this to .awestruct_ignore and .gitignore (in case you commit)
vendor
.bundle
$> bundle exec awestruct
That should work just fine then. All of the needed gems will be in vender/bundle. Make
sure you use bundle exec awestruct when you want to invoke awestruct
----- Original Message -----
From: "Rafael Benevides" <benevides(a)redhat.com>
To: "Dan Allen" <dan.j.allen(a)gmail.com>, "Pete Muir"
<pmuir(a)redhat.com>, "jdf-dev" <jdf-dev(a)lists.jboss.org>
Sent: Monday, January 28, 2013 4:35:08 PM
Subject: Re: [jdf-dev] migration feedback for using Asciidoctor
Hi Dan,
I tried at all cost to install asciidoctor (0.0.7/0.0.9/master) to
start this migration.
For 0.0.7 and 0.0.9 (from rubygems) I got the same error:
$ asciidoctor
/usr/lib64/ruby/1.9.1/rubygems/custom_require.rb:36:in `require':
cannot load such file -- asciidoctor/cli (LoadError)
This error also happens when I built from gem build .gemspec / gem
install .gem
From git repo (master branch)
I CAN use 'bundle exec asciidoctor' BUT when I try to use rake
(10.0.3) I got this error:
rake aborted!
undefined method `markup=' for #<RDoc::Task:0x00000000f1bd50>
that is similar to:
https://github.com/erebor/asciidoctor/pull/41#issuecomment-11742889
but I couldn't find the solution.
Jason Porter give me some help but now I'm stuck again, so basically
I want to know if can you contribute with some other help to make
asciidoctor run under my environment?
RHEL 6.3
Ruby 1.9.3
Gem 1.8.11
asciidoctor 0.0.9
rake 10.0.3
rdoc 3.12
Thank you.