Ruby management on Trisquel

10 replies [Last post]
Ellil
Offline
Joined: 09/20/2016

This thread is intended to be a unifying thread for installation of Ruby on Trisquel

I've been examining a few options and have landed on rbenv with ruby-build as the package manager / installation program
I'm currently experiencing an issue with "configure: error: cannot run /bin/bash tool/config.sub" when attempting to install ruby version 2.0.0-dev

I was hoping others might share their personal experiences so that we could navigate some of the kinks in this process and come together in a unified way

Ellil
Offline
Joined: 09/20/2016

note, the above error was corrected by installing a base ruby installation from the Trisquel Synaptic package manager
I'm going through the steps to upgrade the ruby versions beyond the standard Trisquel installations as version limitations on rbenv and the underlying infrastructure prevent an obvious upgrade beyond Ruby 2.0.0-dev
does any Trisquel user know where the package installations are stored, so that they can be accessed through the standard repository?
I intend to check but haven't yet

Ellil
Offline
Joined: 09/20/2016

ended up using rbenv from the Synaptic package manager for the sake of stability, and connection to the operating system but created a git repo in the .rbenv root directory located in the home directory for the sake of easier upgrades

Ellil
Offline
Joined: 09/20/2016

with these steps completed, I was able to install Ruby version 2.4.0-dev

Ellil
Offline
Joined: 09/20/2016

current situation
installed Ruby version 2.2.2 for use with Rails version 5, however, the 'ruby -v' command shows the original system version installed (ruby 1.9.3p484) while 'rbenv versions' shows 2.2.2 as the active version
attempt to install rails 5 fails, with a reference to the requirement to use Ruby version 2.2.2 or higher, leading to the conclusion that the rails installation script is not identifying the active Ruby version, specified by rbenv
this seems to be the last piece of the installation process

Ellil
Offline
Joined: 09/20/2016

hopefully drilling down into the details
there is a .gem file hidden in the home directory
this may be where the system is looking for the default Ruby version, overriding rbenv
I need to check PATH and 'gem' env variables

Ellil
Offline
Joined: 09/20/2016

success
final tweak to the .bashrc file and things connected
I now have rails 5.0.1 on Trisquel

will finish with one final post regarding the specific changes to the .bashrc file

Magic Banana

I am a member!

I am a translator!

Offline
Joined: 07/24/2010

How about writing a manual? https://trisquel.info/en/wiki/all-manuals

Ellil
Offline
Joined: 09/20/2016

that's a great idea, I do intend to
thank you, magic banana

Ellil
Offline
Joined: 09/20/2016

a caveat to this, I have just begun exploring Spacemacs, and it seems to have options to use built-in Ruby version managers, so it may be possible to bypass all of the above steps
my self-assigned task for today is to explore this and check

Ellil
Offline
Joined: 09/20/2016

Ruby authoring

with the Ruby management layer all set up
I'm moving into editing of Ruby files
I have noticed that an older version of Emacs is available on Trisquel through the Debian repository
but neither Textmate nor Aptana are available for Ruby editing

I am wondering
of the Ruby devs we have here
who uses which editor, and what are the recommendations

Thanks