<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div><div class="markdown">
<p dir="auto">Maxim:</p>

<p dir="auto">in this instance I’d suggest <code>rbenv</code> and <code>rbenv install</code> (best installed directly) here: <a href="https://github.com/rbenv/rbenv">https://github.com/rbenv/rbenv</a>.</p>

<p dir="auto">if you want to stick with macports’ ruby, <code>sudo port select ruby</code> will switch versions systemwide. <code>rbenv</code>, however, can use different rubies per folder and will manage the gems etc in the <code>~/.rbenv</code> folder (or wherever you install it).</p>

<p dir="auto">You can also switch to just setting some variables in your shell configuration and specifying where you want ruby to install things. Scroll down to the ruby section here: <a href="https://wiki.archlinux.org/title/XDG_Base_Directory#Supported">https://wiki.archlinux.org/title/XDG_Base_Directory#Supported</a>.</p>

<p dir="auto">best,</p>

<p dir="auto">ak</p>

<p dir="auto">On 2022-12-16 (KW 50) at 05:29:42 (-0600) Maxim Abalenkov wrote:</p>

</div>
<div class="plaintext"></div>
<blockquote class="embedded"><div id="75B3D925-8774-4DE0-8152-EDD07E99B7F7"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Dear all,<div class=""><br class=""></div><div class="">How are you? I hope all is well with you. I need help please. Can you please guide me, on how to use and manage multiple Ruby installations with MacPorts? I use Ruby primarily for static website generation with Jekyll. But every time a new Ruby version comes it, it is a little bit of a guesswork to make Jekyll work again. I thought I would ask the experts here.</div><div class=""><br class=""></div><div class="">Issuing the `port search ruby` command I see `chruby, ruby31, ruby_select, rb-bundler` which should all be helpful for me. But how do I use them in an elegant way, switching between existing Ruby versions?</div><div class=""><br class=""></div><div class="">I remember following the official Jekyll installation guide: <a href="https://jekyllrb.com/docs/installation/macos/" class="">https://jekyllrb.com/docs/installation/macos/</a> But I don’t like, that `ruby-install` installs everything, Ruby and gems, into my home directory. This is not the place for installation files.</div><div class=""><br class=""></div><div class="">Thank you for your help and have a wonderful day ahead!</div><div class=""><br class=""></div><div class="">—</div><div class="">Best wishes,</div><div class="">Maxim</div><div class=""><br class=""><div class=""><div class="">
<meta charset="UTF-8" class=""><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div>Maxim Abalenkov \\ <a href="mailto:maxim.abalenkov@gmail.com" class="">maxim.abalenkov@gmail.com</a><br class="">+44 7 486 486 505 \\ <a href="http://www.maxim.abalenkov.uk" class="">www.maxim.abalenkov.uk</a></div></div></div></div></div></div></div></div></blockquote>
<div class="markdown">
<blockquote>
</blockquote></div>
<div class="markdown">
</div>
</div>
</body>
</html>