User Tools

Site Tools


wiki:software:ruby

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
wiki:software:ruby [2023/03/17 12:49] – removed - external edit (Unknown date) 127.0.0.1wiki:software:ruby [2023/03/17 12:49] (current) – created keistc
Line 1: Line 1:
 +====== Installing Ruby From Source ======
 +To install Ruby you will first need to install the libyaml from [[https://launchpad.net/ubuntu/+source/libyaml|source]] \\
 +To install libyaml do the following:
 +1. change into the source directory
 +  cd libyaml-0.2.5
 +2. Run the bootstrap script
 +  ./bootstrap
 +3. Run configure script with prefix set to /home/.hub_local
 +  /configure --prefix=/home/.hub_local
 +  make
 +  make install
  
 +That it for the libyaml prereq. Next need to download the source code for Ruby [[https://www.ruby-lang.org/en/downloads/| here]] \\
 +To compile first need to set the following environment variables
 +  export CPPFLAGS="-I/home/.hub_local/include"
 +  export LDFLAGS=-L/home/.hub_local/lib
 +Then change the directory into the Ruby source folder and run the configure script
 +  ./configure --prefix=/home/.hub_local
 +  make
 +  make install
 +That should be it.

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki