Ruby management on Trisquel
- Anmelden oder Registrieren um Kommentare zu schreiben
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
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
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
with these steps completed, I was able to install Ruby version 2.4.0-dev
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
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
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
How about writing a manual? https://trisquel.info/en/wiki/all-manuals
that's a great idea, I do intend to
thank you, magic banana
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
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
- Anmelden oder Registrieren um Kommentare zu schreiben