Has Anyone Tried Installing Ruby & Rubygems from Source on Ubuntu (Preferably Ubuntu 9)

has anyone tried installing ruby & rubygems from source on Ubuntu (preferably Ubuntu 9)?

I don't see what your problem is. You say that require 'zlib' returns false. But that means that it did work! If there were an error, you would get a LoadError exception.

Compiling Ruby 1.9.2 under Linux (Ubuntu) and Rubygems

I found the thread again!

Has anyone tried installing ruby & rubygems from source on ubuntu

In the 3rd answer of Evgeny you find exactly what I was searching for!

Properly installing Ruby enviroment for Ubuntu 12.04?

I did follow what this answer suggested.

I had already installed the mentioned packages first so I didn't have to re make anything.

It worked like charm, hope it helps in future.

Local installation of ruby / rubygems with no root access

Closing this now.

I had to ask someone with root access to install zlib-devel and openssl-devel (I'm on RHEL). Couldn't make it otherwise.

I'm guessing there's probably a way of using the stuff inside said packages without installing them as root, but I couldn't do it.

Prerequisites required for compiling Ruby 1.9.2 on Linux?

I HIGHLY recommend using 'RVM' to install all your rubies, especially if you're doing it just for your own use. RVM will do all the compilation for you, puts everything in ~/.rvm including the gems, and makes it easy to install multiple versions of Ruby and gems for testing.

Installation and using gems will get you running. RVM's Gemsets are powerful, and RVM's ruby command makes it nice for performing some action across all the installed Rubies RVM manages.

RVM also supports system-wide installations offering RVM's flexibility if you need it, but it's a bit more complicated and is unnecessary if you're on a single-user machine.

Ubuntu rails install fails on zlib

If you come across this question trying to install Ruby using Ruby Version Manager (RVM) on Ubuntu 10.04 then there are instructions on installing zlib on the rvm web site http://rvm.beginrescueend.com/packages/zlib/

The steps are:

rvm pkg install zlib

(or
rvm package install zlib
if you get "ERROR: Unrecognized command line argument: 'pkg'" - older versions of rvm used the verb 'package' instead)

then

rvm remove 1.9.1
rvm install 1.9.1

How to install ruby 1.9.2 on debian lenny?

Stop. Go back. Install whatever version of Ruby Debian has, probably 1.8.7 or 1.8.7. Then install RVM. I have some directions for using RVM with Ubuntu (sorry, not Debian, but it's close). Seriously, RVM makes installing any version of Ruby easy. Then, use RVM to install Ruby 1.9.2, you don't want 1.9.1.

This will work depending on what you want to use Ruby for. For development purposes, using RVM works really well. For server purposes, I suppose it can be used, but you might have some problems. I think RVM gives you some scripts you can use to run Ruby scripts with init scripts and cron jobs.

Or, you can just install from source. It's not hard, and it's not the debian way, but it'll get the job done. This may be preferable to installing some third party packages, where you may have no idea what they did during compile time, and how to get speedy updates in the case of a security vulnerability. Using RVM or installing manually from source, you can update whenever it's needed.

Installing Ruby 1.9.1 on Ubuntu?

Save yourself the headache and use RVM (Ruby Version Manager)

Keep in mind, Rails 3 works best with Ruby 1.9.2. Ruby 1.9.2 fixes up quite a few bugs in 1.9.1 and is preferable to running 1.9.1.

With RVM installing 1.9.2 is a breeze.

On Apple Silicon: ruby-build: definition not found: 3.0.0

ASDF users, try asdf plugin update ruby then asdf install ruby the_ruby_version_here



Related Topics



Leave a reply



Submit