System Ruby 1.8.7 AND system Ruby 1.9.3 on Fedora 16 x86_64 for Rails apps

337 views
Skip to first unread message

Philip Rhoades

unread,
Jun 4, 2012, 12:19:06 PM6/4/12
to rubyversi...@googlegroups.com
People,

On Fedora 16 the standard Ruby is still 1.8.7 - v1.9 will not be officially available till Fedora 17.

I have used RVM in the past to conveniently switch between personal versions of Ruby for my simulation work but now I want to be able to use, on the one server, as SYSTEM versions:

1. Ruby 1.8.7 with Rails apps from v1.1 to 2.3.14 and from v3.0 and above

2. Ruby 1.9.3 with Rails apps from v3.0 and above

I have looked at lots of stuff but nothing seems to address what I want to do simply - I presume it is actually possible?  Can someone point me to a HOWTO somewhere?

Thanks,

Phil.

mpapis

unread,
Jun 4, 2012, 1:43:26 PM6/4/12
to rubyversi...@googlegroups.com
Actually I do not understand what is your problem, have a look on the default flow in a screencast form: http://screencasts.org/episodes/how-to-use-rvm

Maybe you could try to describe your problem differently ?

Philip Rhoades

unread,
Jun 4, 2012, 1:58:48 PM6/4/12
to rubyversi...@googlegroups.com
mpapis,

I DON'T want to have to do a personal install of RVM to get this to
work. I want to have BOTH Ruby v1.8.7 AND v1.9.3 installed on the
system (obviously in different directories). I want to configure my
Rails apps to choose the appropriate version of Ruby to use. I did try
and do a SYSTEM (ie not a single user) install of RVM some time ago but
just got into trouble and was forced to use one or the other version of
Ruby - I couldn't see how to set it up for the use of both . .

I have a system install of v1.8.7 that works for most of the Rails apps
but I don't want to have to do a user install of v1.9.3 for a few of the
others.

Thanks,

Phil.
> --
> Please visit http://rvm.io/ [1] for documentation on rvm.
> Please visit https://www.pivotaltracker.com/projects/26822 [2] to
> see
> what is being worked on currently.
>
> You received this message because you are subscribed to the Google
> Groups "rvm (Ruby Version Manager)" group.
> To post to this group, send email to
> rubyversi...@googlegroups.com
> To unsubscribe from this group, send email to
> rubyversionmana...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/rubyversionmanager?hl=en [3]
>
>
> Links:
> ------
> [1] http://rvm.io/
> [2] https://www.pivotaltracker.com/projects/26822
> [3] http://groups.google.com/group/rubyversionmanager?hl=en

--
Philip Rhoades

GPO Box 3411
Sydney NSW 2001
Australia
E-mail: ph...@pricom.com.au

mpapis

unread,
Jun 4, 2012, 3:00:18 PM6/4/12
to rubyversi...@googlegroups.com, ph...@pricom.com.au
RVM was not intended to be used with system rubies, the `rvm system` options was more as a fallback to not use.

To manage rubies via rvm (rvm 1.x) you need to install those rubies with it!

There is experimental option to allow it `rvm mount /path/to/ruby [-n <name>]` or `rvm automount` to detect all rubies on `$PATH`.

The problem with system installed rubies is they have they own compilation options that might and most likely will make troubles when used in RVM - at least from my experience.

Why is it a problem for you to install rubies with RVM?

Have you considered mixed mode RVM where RVM + rubies are installed in system and gemsets are created per user.

As for selecting rubies / rails versions have a look on project files https://rvm.io/workflow/projects/#ruby-versions

Philip Rhoades

unread,
Jun 4, 2012, 3:55:49 PM6/4/12
to rubyversi...@googlegroups.com
mpapis,


On 2012-06-05 05:00, mpapis wrote:
> RVM was not intended to be used with system rubies, the `rvm system`
> options was more as a fallback to not use.


Right.


> To manage rubies via rvm (rvm 1.x) you need to install those rubies
> with it!


Of course.


> There is experimental option to allow it `rvm mount /path/to/ruby [-n
> <name>]` or `rvm automount` to detect all rubies on `$PATH`.
>
> The problem with system installed rubies is they have they own
> compilation options that might and most likely will make troubles
> when
> used in RVM - at least from my experience.


It was a while ago that I looked at the system install but I remember I
had a lot of troubles too and eventually gave up . .


> Why is it a problem for you to install rubies with RVM?


No problems at all as a user - only for the system.


> Have you considered mixed mode RVM where RVM + rubies are installed
> in
> system and gemsets are created per user.


How would that help what I want to do?


> As for selecting rubies / rails versions have a look on project files
> https://rvm.io/workflow/projects/#ruby-versions


Doesn't seem to help. Passenger v3.2 is supposed to be able to support
multiple Rubies - I have sent Phusion a note about paid support for
using the pre-release version.

mpapis

unread,
Jun 4, 2012, 8:00:03 PM6/4/12
to rubyversi...@googlegroups.com, ph...@pricom.com.au
I still miss what you problem is, you can not install rubies on rvm installed in system ? then please gist commands and outputs you use.

As for mixed mode installation - I have just updated docs with better described process: https://rvm.io/rvm/install/#mixed

alberto rodriguez

unread,
Jun 19, 2012, 11:13:04 AM6/19/12
to rubyversi...@googlegroups.com
When you say system versions, do you mean installed with rvm via multi-user installs?

Philip Rhoades

unread,
Jun 19, 2012, 11:34:10 AM6/19/12
to rubyversi...@googlegroups.com
alberto,

I would prefer NOT with RVM - I tried it with system installs but there
seem to be problems. I have found that the new version of Passenger
(3.2) is supposed to be able to support two versions of installed Ruby
but have yet to investigate it . .

Thanks,

Phil.

mpapis

unread,
Jun 19, 2012, 12:16:16 PM6/19/12
to rubyversi...@googlegroups.com, ph...@pricom.com.au
I think there is to much confusion here, please show the commands you use for installing rvm and rubies.

Philip Rhoades

unread,
Oct 23, 2012, 8:50:05 AM10/23/12
to rubyversi...@googlegroups.com
mpapis,

I eventually gave up with this idea - I am going to move the server
from Fedora 16 to Fedora 17 and Ruby 1.9 ASAP.

Thanks,

Phil.


On 2012-06-20 02:16, mpapis wrote:
> I think there is to much confusion here, please show the commands you
> use for installing rvm and rubies.
>
Reply all
Reply to author
Forward
0 new messages