Re: Gem paths craziness on cygwin

Posted by wolandscat on
URL: https://discuss.asciidoctor.org/Gem-paths-craziness-on-cygwin-tp3425p3428.html

Your explanation on the asciidoctor Github is very clear. It's very odd  for me seeing things install into ~/; but I realise I am used to thinking in terms of servers, not single user machines (even though my cygwin laptop is of course just that, I still see no point in having anything installed in ~/).

I now have rvm on the machine correctly installed as far as I can tell. Since I already have a 'system' ruby, I told it to use that (rvm use system). I also set GEM_HOME to /usr/local in ~/.bash_profile.

Then I opened a new bash, just to make sure everything is source'd properly; removed old compass / sass install from /usr/local and reran the 'bundle install' command in a git checkout of
http://github.com/asciidoctor/asciidoctor-stylesheet-factory, as per this page.

I'm not sure that rvm is doing anything interesting here as such, but the new gems went into /usr/local/gems, and 'compass compile' now seems to work.

So the environment seems healthier. It might be worth adding a few helpful tips somewhere in the install documentation to say either to set GEM_HOME or else to include ~/bin in the PATH, since most newcomers won't know to do the first, and if they don't do it, and also don't have ~/bin in the path (also very common), nothing's going to work.

Anyway - thanks for the help, now to try and get PDFs working!