Trouble with installation

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Trouble with installation

kagehell
Hi guys. I'm kinda a newbie using linux, and I'm having trouble using the asciidoctor.

I was following the installation guide and I used the commands:

$ gem install asciidoctor

and it went just fine. Problem is that in the guide there is in the section Usage the following code:

$ asciidoctor --version

but then I got the following error.




and as you can see asciidoctor is listed in the local list.
What I'm doing wrong here?
Reply | Threaded
Open this post in threaded view
|

Re: Trouble with installation

mojavelinux
Administrator
This is a classic case of a gem being installed, but the Ruby environment not adding the bin directory to the PATH. Several Linux distributions have this problem out of the box, which affects all gem installations done using the gem command.

My recommendation is to use RVM for managing gems if you aren't going to use a package manager (deb, rpm, etc). That way, the gem installs happen in your home directory and RVM gets you all setup.


You can try it other ways, but in the end, RVM is always a sure thing...and it's what I use.

Cheers,

-Dan

On Fri, Aug 14, 2015 at 5:15 PM, kagehell [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi guys. I'm kinda a newbie using linux, and I'm having trouble using the asciidoctor.

I was following the installation guide and I used the commands:

$ gem install asciidoctor

and it went just fine. Problem is that in the guide there is in the section Usage the following code:

$ asciidoctor --version

but then I got the following error.




and as you can see asciidoctor is listed in the local list.
What I'm doing wrong here?



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Trouble-with-installation-tp3673.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Reply | Threaded
Open this post in threaded view
|

Re: Trouble with installation

kagehell
Worked like a charm, man.
Thank you for your time.
Reply | Threaded
Open this post in threaded view
|

Re: Trouble with installation

mojavelinux
Administrator

👍