Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
I have asciidoctor installed on my linux laptop running the latest Mint linux. The asciidoctor version is showing 0.1.4-1 even after I run sudo gem update asciidoctor. But from what I can see, asciidoctor is now at 1.5 or higher.
I have also started using asciidoctor on a linux machine where I work, and it says the version is 1.5.5. And, I'm seeing some differences in the generated html, depending on which machine (mine or work's) that I ran asciidoctor on. Is asciidoctor for Mint linux, and I assume ubuntu, really that old? If so, how can I update it. The output below is on my Mint laptop. > asciidoctor -V Asciidoctor 0.1.4 [http://asciidoctor.org] > apt-cache policy asciidoctor asciidoctor: Installed: 0.1.4-1 > apt-cache policy ruby ruby: Installed: 1:1.9.3.4 |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
This seems to be an ongoing issue with the Debian package. I've written about the situation extensively in the following issue: I stand by my position that you should never use "sudo" to install a replacement gem. You should either use the version of the gem that is packaged, or use a user-space Ruby version manager (like RVM) to install gems in your home directory. System gems are for the system and should not be modified. ...but if you do want to use the system gem, there's no reason the packaged version shouldn't be the latest version. Cheers, -Dan On Fri, Jun 16, 2017 at 8:57 AM, oakhilltop [via Asciidoctor :: Discussion] <[hidden email]> wrote: I have asciidoctor installed on my linux laptop running the latest Mint linux. The asciidoctor version is showing 0.1.4-1 even after I run sudo gem update asciidoctor. But from what I can see, asciidoctor is now at 1.5 or higher. ... [show rest of quote] Dan Allen | @mojavelinux | https://twitter.com/mojavelinux |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
On Mon, Jun 19, 2017 at 12:07:25AM -0700, mojavelinux [via Asciidoctor :: Discussion] wrote:
> > > This seems to be an ongoing issue with the Debian package. I've written > about the situation extensively in the following issue: > > https://github.com/asciidoctor/asciidoctor/issues/1732 > > I stand by my position that you should never use "sudo" to install a > replacement gem. You should either use the version of the gem that is > packaged, or use a user-space Ruby version manager (like RVM) to install > gems in your home directory. System gems are for the system and should not > be modified. > > ...but if you do want to use the system gem, there's no reason the packaged > version shouldn't be the latest version. > ... [show rest of quote] I understand but doing a: gem update gives: gems Updating term-ansicolor Fetching: term-ansicolor-1.6.0.gem (100%) ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /var/lib/gems/2.3.0 directory. so the next easy step that you are tempted to do (and that I usually do without apparently any problem) is: sudo gem update ... if you think I am asking for troubles, is there a way to revert to the system ruby? How to easily install the updated ruby locally? How to switch from the system one to the local one? Having two versions installed could be the cure that is worst than the illness? -- Marco Ciampa I know a joke about UDP, but you might not get it. ------------------------ GNU/Linux User #78271 FSFE fellow #364 ------------------------ |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
Macro, I don't recommend using gem update or sudo gem update if it's pointing to the system gems. Only apt-get, dnf, etc. > if you think I am asking for troubles, is there a way to revert to the system ruby? I'd just reinstall the Linux packages. rvm use system rvm use 2.4 # my user installation > Having two versions installed could be the cure that is worst than the illness? I have been using RVM for almost 4 years now and I've never had a problem using it. Aside for docker images, I don't use system ruby at all (though there may be some application on my system that uses it...I really don't think about it). Cheers, -Dan On Mon, Jun 19, 2017 at 2:29 AM, ciampix [via Asciidoctor :: Discussion] <[hidden email]> wrote: On Mon, Jun 19, 2017 at 12:07:25AM -0700, mojavelinux [via Asciidoctor :: Discussion] wrote: ... [show rest of quote] Dan Allen | @mojavelinux | https://twitter.com/mojavelinux |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Hi Dan!
On Mon, Jun 19, 2017 at 01:55:08AM -0700, mojavelinux [via Asciidoctor :: Discussion] wrote: > > > Macro, ^^^^^ nice typo! :-) > I don't recommend using gem update or sudo gem update if it's pointing to > the system gems. Only apt-get, dnf, etc. ok followed your advice thanks! > > if you think I am asking for troubles, is there a way to revert to the > system ruby? > > I'd just reinstall the Linux packages. I also deleted all in /usr/local/gems and /usr/local/bin > > How to switch from the system one to the local one? > > I have this as the default for my terminals. I use RVM, but the > alternatives like rbenv are very reliable as well. used rvm, thanks, very easy to use... > rvm use system > > rvm use 2.4 # my user installation > > > Having two versions installed could be the cure that is worst than the > illness? > > I have been using RVM for almost 4 years now and I've never had a problem > using it. Aside for docker images, I don't use system ruby at all (though > there may be some application on my system that uses it...I really don't > think about it). Just one question: this line: NOKOGIRI_USE_SYSTEM_LIBRARIES=1 gem install asciidoctor-epub3 --pre ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ is still useful with the use of rvm? what is it for? TIA -- Marco Ciampa I know a joke about UDP, but you might not get it. ------------------------ GNU/Linux User #78271 FSFE fellow #364 ------------------------ |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
Wow! I have been working way too much on Asciidoctor lately. Sorry about that! ;) -Dan |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
In reply to this post by ciampix
On Mon, Jun 19, 2017 at 4:07 AM, ciampix [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Yes. Despite what the name suggests, this has nothing to do with installing system gems. What it does is tell the gem installer to link against the C libraries that are on the system instead of compiling them from scratch. This speeds up the installation of Nokogiri considerably. But it's certainly not required. Cheers, |
Free forum by Nabble | Edit this page |