# Anyone running v1.9.2 with Ubuntu 10.04?

**URL:** <https://www.ruby-forum.com/t/anyone-running-v1-9-2-with-ubuntu-10-04/194803>\
**Category:** Ruby\
**Created:** [September 11, 2010, 12:02am UTC](https://www.ruby-forum.com/t/anyone-running-v1-9-2-with-ubuntu-10-04/194803 "2010-09-11T00:02:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sweb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90db22/32.png) [@sweb](https://www.ruby-forum.com/u/sweb)\
**Post date:** [September 11, 2010, 12:02am UTC](https://www.ruby-forum.com/t/anyone-running-v1-9-2-with-ubuntu-10-04/194803/1 "2010-09-11T00:02:03Z")

</div>

I had LoadError problems when my box was running Ruby v1.8.? and v1.9.2.  
Since I didn’t get an answer to a recent post about the issue, I decided  
to uninstall both versions and attempt to get on v1.9.2. But there’s no  
v1.9.2 package available yet for Ubuntu 10.04. So should I attempt to  
build from source? I saw some posts about using RVM but the last thing  
I want is another package managing layer.

---

<div class="post-metadata">

**Author:** ![sweb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90db22/32.png) [@sweb](https://www.ruby-forum.com/u/sweb)\
**Post date:** [September 11, 2010, 1:07am UTC](https://www.ruby-forum.com/t/anyone-running-v1-9-2-with-ubuntu-10-04/194803/2 "2010-09-11T01:07:40Z")

</div>

On Sep 10, 7:02 pm, Sam W.er [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I had LoadError problems when my box was running Ruby v1.8.? and v1.9.2.  
> Since I didn’t get an answer to a recent post about the issue, I decided  
> to uninstall both versions and attempt to get on v1.9.2. But there’s no  
> v1.9.2 package available yet for Ubuntu 10.04. So should I attempt to  
> build from source? I saw some posts about using RVM but the last thing  
> I want is another package managing layer.

Wonder how you installed 1.9.2 and then uninstalled it when there is  
no package manager for it on Ubuntu.

Remember that 1.9.2 removes the “.” directory form the $LOAD\_PATH,  
meaning a.rb and b.rb in the same directory, require ‘b’ inside a.rb  
will fail to find it.

As for RVM, if you still want to use 1.9.2 and still keep your mental  
sanity, should give it a shot, is just a manager for ruby and  
RubyGems, not a full package manager.

---

<div class="post-metadata">

**Author:** ![sweb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90db22/32.png) [@sweb](https://www.ruby-forum.com/u/sweb)\
**Post date:** [September 11, 2010, 2:13am UTC](https://www.ruby-forum.com/t/anyone-running-v1-9-2-with-ubuntu-10-04/194803/3 "2010-09-11T02:13:13Z")

</div>

For testing these things RVM is a strong solution.

I have had similar problems and open up two terms and rvm 1.8.x in one  
and 1.9.x in the other and compare behavior. Stays away from your  
system once your done you exit and the RVM is gone…

RVM is a version manager and keeps its files in a directory structure  
and works out env/paths/gemlibs. I’m not sure your direct meaning  
packamangament layer but take 30 minutes and look into RVM it can SAVE a  
lot a time and fussin about with full install/uninstall on your main  
system…

Read through the start pages I think it would be a nice tool for your  
circumstance.

Take a look here… You might find this helpful :

> **[How to install RVM on Ubuntu 10.04](http://www.christopherirish.com/2010/08/25/how-to-install-rvm-on-ubuntu-10-04/)**
>
> I’ve heard people describe frustrations they had in getting Rails 3 setup on Ubuntu 10.04 with Ruby 1.9.2. I’m going to outline the steps I’ve taken to do this. Let’s get started installing RVM. It should be noted that I

[http://rvm.beginrescueend.com/](http://rvm.beginrescueend.com/)

Here are some followups  
[Captcha Check](http://rubyonrails.dreamwidth.org/1713.html) this to be helpful.

[http://web2linux.com/installing-rails-3-on-ubuntu-10-04-lucid-lynx/](http://web2linux.com/installing-rails-3-on-ubuntu-10-04-lucid-lynx/)

* * *

From: Sam W.er [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Reply-To: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Date: Fri, 10 Sep 2010 17:02:14 -0500  
To: ruby-talk ML [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Anyone running v1.9.2 with Ubuntu 10.04?

I had LoadError problems when my box was running Ruby v1.8.? and v1.9.2.  
Since I didn’t get an answer to a recent post about the issue, I decided  
to uninstall both versions and attempt to get on v1.9.2. But there’s no  
v1.9.2 package available yet for Ubuntu 10.04. So should I attempt to  
build from source? I saw some posts about using RVM but the last thing  
I want is another package managing layer.

---

<div class="post-metadata">

**Author:** ![sweb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90db22/32.png) [@sweb](https://www.ruby-forum.com/u/sweb)\
**Post date:** [September 11, 2010, 9:26pm UTC](https://www.ruby-forum.com/t/anyone-running-v1-9-2-with-ubuntu-10-04/194803/4 "2010-09-11T21:26:42Z")

</div>

I hacked together a 1.9.2 deb source package based on the 1.9.1. As  
root,  
you can build binary packages from a clean chroot as follows:

bash $ /usr/lib/pbuilder/pbuilder-createbuildenv  
bash $ cd /var/tmp && mkdir chroot  
bash $ tar -C /var/tmp/chroot -xzvf /var/cache/pbuilder/base.tgz  
bash $ mount -t mount devpts /dev/pts  
bash $ mount proc -t proc chroot/proc  
bash $ chroot /var/data/tmp/bin/bash  
bash $ . /etc/lsb-release  
bash $ locale-gen en\_US.UTF-8  
bash $ apt-get --allow-unauthenticated update  
bash $ apt-get --allow-unauthenticated -q -y install debhelper  
devscripts fakeroot   
ruby curl fakeroot pbuilder git-core ssh wget  
bash $ cd /var/tmp  
bash $ git clone git://github.com/linterra/ruby1.9.2.git  
bash $ cd rsp && /usr/lib/pbuilder/pbuilder-satisfydepends  
bash $ fakeroot debian/rules clean  
bash $ dpkg-build -b  
bash $ exit  
bash $ umount chroot/dev/pts  
bash $ umount chroot/proc  
bash $ cd chroot/var/tmp/  
bash $ dpkg -i libruby1.9.2\_1.9.2.0-1\_i386.deb  
ruby1.9.2\_1.9.2.0-1\_i386.deb   
libreadline-ruby1.9.2\_1.9.2.0-1\_i386.deb  
irb1.9.2\_1.9.2.0-1\_all.deb … etc.

You need to have pbuilder already installed on your system.

---

<div class="post-metadata">

**Author:** ![sweb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90db22/32.png) [@sweb](https://www.ruby-forum.com/u/sweb)\
**Post date:** [September 11, 2010, 9:27pm UTC](https://www.ruby-forum.com/t/anyone-running-v1-9-2-with-ubuntu-10-04/194803/5 "2010-09-11T21:27:53Z")

</div>

sorry, step 13 should be cd ruby1.9.2:

1. bash $ git clone git://github.com/linterra/ruby1.9.2.git
2. bash $ cd ruby1.9.2 && /usr/lib/pbuilder/pbuilder-satisfydepends

---

<div class="post-metadata">

**Author:** ![sweb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90db22/32.png) [@sweb](https://www.ruby-forum.com/u/sweb)\
**Post date:** [September 11, 2010, 2:20am UTC](https://www.ruby-forum.com/t/anyone-running-v1-9-2-with-ubuntu-10-04/194803/6 "2010-09-11T02:20:50Z")

</div>

On 11.09.2010 01:54, Savard, Joseph wrote:

> For testing these things RVM is a strong solution.

Just want to second that, I’m new to Ruby too and don’t regret every  
trying rvm; some things even with the nice documentation weren’t clear  
from the start (e.g. I never realized “rvm use …” doesn’t  
_permanently_ change the interpreter; you would need an extra parameter  
for that) but I don’t want to go back.

- Markus

---

<div class="post-metadata">

**Author:** ![sweb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90db22/32.png) [@sweb](https://www.ruby-forum.com/u/sweb)\
**Post date:** [September 11, 2010, 10:18pm UTC](https://www.ruby-forum.com/t/anyone-running-v1-9-2-with-ubuntu-10-04/194803/7 "2010-09-11T22:18:48Z")

</div>

On 09/11/2010 12:25 PM, Mike Owens wrote:

> bash $ locale-gen en\_US.UTF-8  
> bash $ umount chroot/dev/pts
> 
> > ## I had LoadError problems when my box was running Ruby v1.8.? and v1.9.2. Since I didn’t get an answer to a recent post about the issue, I decided to uninstall both versions and attempt to get on v1.9.2. But there’s no v1.9.2 package available yet for Ubuntu 10.04. So should I attempt to build from source? I saw some posts about using RVM but the last thing I want is another package managing layer.
> > 
> > Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

If you just want to get a recent ruby running on one ubuntu host, the  
easiest thing is to build from source. Of course, that doesn’t give you  
debs you can copy to other hosts (thanks, Mike, for writing that up).  
I’ve had no major issues with building ruby on various ubuntu hosts,  
except a gcc version problem (does not affect the gcc on 10.04) and some  
issues with tk and ruby 1.8 (does not affect 1.9.

If you want ruby 1.8.7 to work with the ubuntu-packaged Tk, make sure  
you configure ruby with:

./configure --enable-pthread

Then do “make” as usual.

Then, before the ‘make install’ step, go into ext/tk and do

CONFIGURE\_ARGS=‘–with-tcl-include=/usr/include/tcl8.5  
–with-tcllib=tcl8.5 --with-tklib=tk8.5’ ruby extconf.rb && make

Then go into the tkutil subdir and build it the same way (not sure the  
args are needed here, but it seems ok).

Finally, you can make install.

But I guess you don’t need any of this for 1.9.2… just do a generic  
build.

---

<div class="post-metadata">

**Author:** ![sweb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90db22/32.png) [@sweb](https://www.ruby-forum.com/u/sweb)\
**Post date:** [October 3, 2010, 1:16am UTC](https://www.ruby-forum.com/t/anyone-running-v1-9-2-with-ubuntu-10-04/194803/8 "2010-10-03T01:16:05Z")

</div>

RVM turns out to be a very good answer to the question of how to get to  
Ruby v1.9.2 on Ubuntu 10.04. I had some trouble on my desktop machine  
(separate post) but the instructions on [www.christopherirish.com](http://www.christopherirish.com) (see  
link below) work flawlessly on my laptop. Thanks very much to Joseph  
Savard for the incredibly helpful links below.

Savard, Joseph wrote:

> For testing these things RVM is a strong solution.
> 
> I have had similar problems and open up two terms and rvm 1.8.x in one  
> and 1.9.x in the other and compare behavior. Stays away from your  
> system once your done you exit and the RVM is gone…
> 
> RVM is a version manager and keeps its files in a directory structure  
> and works out env/paths/gemlibs. I’m not sure your direct meaning  
> packamangament layer but take 30 minutes and look into RVM it can SAVE a  
> lot a time and fussin about with full install/uninstall on your main  
> system…
> 
> Read through the start pages I think it would be a nice tool for your  
> circumstance.
> 
> Take a look here… You might find this helpful :
> 
> [How to install RVM on Ubuntu 10.04](http://www.christopherirish.com/2010/08/25/how-to-install-rvm-on-ubuntu-10-04/%20)
> 
> [http://rvm.beginrescueend.com/](http://rvm.beginrescueend.com/)
> 
> Here are some followups  
> [Captcha Check](http://rubyonrails.dreamwidth.org/1713.html) this to be helpful.
> 
> [http://web2linux.com/installing-rails-3-on-ubuntu-10-04-lucid-lynx/](http://web2linux.com/installing-rails-3-on-ubuntu-10-04-lucid-lynx/)
> 
> * * *
> 
> From: Sam W.er [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> Reply-To: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> Date: Fri, 10 Sep 2010 17:02:14 -0500  
> To: ruby-talk ML [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> Subject: Anyone running v1.9.2 with Ubuntu 10.04?
> 
> I had LoadError problems when my box was running Ruby v1.8.? and v1.9.2.  
> Since I didn’t get an answer to a recent post about the issue, I decided  
> to uninstall both versions and attempt to get on v1.9.2. But there’s no  
> v1.9.2 package available yet for Ubuntu 10.04. So should I attempt to  
> build from source? I saw some posts about using RVM but the last thing  
> I want is another package managing layer.
