Message from discussion
Ruby Enterprise tells me that it needs rails 2.3.4 and that it cannot find it, but it IS installed!!
X-BeenThere: emm-ruby@googlegroups.com
Received: by 10.213.2.77 with SMTP id 13ls1989581ebi.0.p; Mon, 01 Feb 2010
01:09:51 -0800 (PST)
Received: by 10.213.48.144 with SMTP id r16mr387273ebf.12.1265015390978;
Mon, 01 Feb 2010 01:09:50 -0800 (PST)
Received: by 10.213.48.144 with SMTP id r16mr387272ebf.12.1265015390948;
Mon, 01 Feb 2010 01:09:50 -0800 (PST)
Return-Path: <attila.gyor...@gmail.com>
Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.25])
by gmr-mx.google.com with ESMTP id 17si694182ewy.7.2010.02.01.01.09.49;
Mon, 01 Feb 2010 01:09:49 -0800 (PST)
Received-SPF: pass (google.com: domain of attila.gyor...@gmail.com designates 74.125.78.25 as permitted sender) client-ip=74.125.78.25;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of attila.gyor...@gmail.com designates 74.125.78.25 as permitted sender) smtp.mail=attila.gyor...@gmail.com; dkim=pass (test mode) header...@gmail.com
Received: by ey-out-2122.google.com with SMTP id 9so925875eyd.27
for <emm-ruby@googlegroups.com>; Mon, 01 Feb 2010 01:09:49 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=gamma;
h=domainkey-signature:received:received:content-type:mime-version
:subject:from:in-reply-to:date:content-transfer-encoding:message-id
:references:to:x-mailer;
bh=1QkSlBU9+V25YaF7wYJ0QuuXCTtOIJ9KnWTucqn4/0Y=;
b=qyZBBZeAyAll9i47ISmGktmjNrZMUlb4PXVfa80LLbqEBWC5Tn0VuKDFvO3BoPc/RJ
ZZVwBV3+mSROsVhpb0DGbnFKF6NFuDNDld9itZTrP5jbSboyDn16nvTJw1T7Xj2eFzho
QXZhT0d3gbzK1Rltcp79c2Xs+GqimowrBUqgE=
DomainKey-Signature: a=rsa-sha1; c=nofws;
d=gmail.com; s=gamma;
h=content-type:mime-version:subject:from:in-reply-to:date
:content-transfer-encoding:message-id:references:to:x-mailer;
b=h3JusPMhXwGuVdEbMhPD8czqStfM4kiAtwyOxGWaE8cNzJuxCIOvpOuwl69HQE0Kvv
jqOKVvgVxZBNggwysIPoEnJaSdASXKKxdYmsTk70yAMQPAYevhubL6OI3UjvH+R8oOco
E2Ph/pJnE/8JWkKdKdXOE6PMJYhWhfSDa6/Cc=
Received: by 10.213.109.77 with SMTP id i13mr3924982ebp.82.1265015014395;
Mon, 01 Feb 2010 01:03:34 -0800 (PST)
Return-Path: <attila.gyor...@gmail.com>
Received: from fukibookpro.lan (94-194-149-6.zone8.bethere.co.uk [94.194.149.6])
by mx.google.com with ESMTPS id 13sm3502419ewy.13.2010.02.01.01.03.32
(version=TLSv1/SSLv3 cipher=RC4-MD5);
Mon, 01 Feb 2010 01:03:33 -0800 (PST)
Content-Type: text/plain; charset=iso-8859-1
Mime-Version: 1.0 (Apple Message framework v1077)
Subject: Re: Ruby Enterprise tells me that it needs rails 2.3.4 and that it cannot find it, but it IS installed!!
From: =?iso-8859-1?Q?Attila_Gy=F6rffy?= <attila.gyor...@gmail.com>
In-Reply-To: <f7a337e5-2b93-4856-b6c4-bc4a1d465...@v25g2000yqk.googlegroups.com>
Date: Mon, 1 Feb 2010 09:03:30 +0000
Content-Transfer-Encoding: quoted-printable
Message-Id: <055CBB93-7AB7-4B84-BCC8-ACF5BB0CF...@gmail.com>
References: <fd7942cf-fda3-4398-a9f6-c02d62dc0...@d27g2000yqn.googlegroups.com> <705B8133-43AB-490B-A002-346CB0364...@gmail.com> <f7a337e5-2b93-4856-b6c4-bc4a1d465...@v25g2000yqk.googlegroups.com>
To: emm-ruby@googlegroups.com
X-Mailer: Apple Mail (2.1077)
You probably want to ad the REE bin path to your global path. Edit your =
shell's configuration (.bashrc for example) in your home or system =
directory (depends on if you want to have global preference or for just =
your own user.)
Fore example, mine looks like this:
/opt/rubyenterprise/bin:/usr/local/bin ... etc
In this case the REE binaries will take preference over the others so =
rails, gem, rake etc. commands will be the defaults.
Attila Gy=F6rffy
ps: After you edited the shell config you may have to log out and log =
back in for the changes to take effect.
http://attilagyorffy.com
http://liquid.dj
http://www.twitter.com/attilagyorffy
http://www.twitter.com/djliquiduk
On 1 Feb 2010, at 07:59, rubybox wrote:
> Thanks for the replies.
> Havent thought about this
>=20
> [root@neverland ~]# which gem
> /usr/local/bin/gem
>=20
>=20
> [root@neverland bin]# ./gem list
>=20
> *** LOCAL GEMS ***
>=20
> actionmailer (2.3.5)
> actionpack (2.3.5)
> activerecord (2.3.5)
> activeresource (2.3.5)
> activesupport (2.3.5)
> fastthread (1.0.7)
> mysql (2.8.1)
> passenger (2.2.9)
> rack (1.1.0, 1.0.1)
> rails (2.3.5)
> rake (0.8.7)
> [root@neverland bin]#
>=20
>=20
> 2 Confusements:
>=20
> 1) The gems in my /usr/local/bin folder are clearly the ones i
> installed with just typing "gem install" in the terminal. How can I
> "remap" to always use the gem from the /opt/rubyenterprise/bin
> location?
> 2) How could i merge them or make it default so that everything on the
> systems uses the ones inside the rubyenterprise location?
> 3) If i do script/server in any of my projects what gems are used
> then? the ones in usr/local/bin or the ones in rubyenterprise?
>=20
> Thanks for clarifying this i was totally confused by it.
>=20
>=20
>=20
> On Jan 31, 7:21 pm, Attila Gy=F6rffy <attila.gyor...@gmail.com> wrote:
>> I bet you don't have rails 2.3.4 installed under Ruby Enterprise but =
under another version on your system. Each Ruby version has their own =
gems installed. Even if gem list shows 2.3.5 and 2.3.4, make sure that =
the gem library you are using is the one which belongs to Ruby =
Enterprise and not any other version which might have been used =
previously. The gem command should be at the same bin folder as Ruby =
Enterprise.
>>=20
>> ./gem list
>>=20
>> Obviously if it does not list Rails 2.3.4 than you can install it =
using
>> sudo ./gem install rails -v 2.3.4
>>=20
>> Attila
>>=20
>> http://attilagyorffy.comhttp://liquid.dj
>>=20
>> http://www.twitter.com/attilagyorffyhttp://www.twitter.com/djliquiduk
>>=20
>> On 31 Jan 2010, at 15:27, rubybox wrote:
>>=20
>>=20
>>=20
>>=20
>>=20
>>> I have a problem with server on my debian deployserver.
>>=20
>>> Latest version
>>=20
>>> I have set ruby version to 2.3.4
>>=20
>>> My gem list shows rails (2.3.5, 2.3.4)
>>> But it keeps complaining that it cannot find the 2.3.4 !
>>=20
>>> I installed 2.3.4 with sudo, restarted apache, and rebooted the
>>> server.
>>=20
>>> How can i fix this issue?
>>> I really need this fixed, please provide some pointers on how to fix
>>> this
>>=20
>>> Just setting rails version in enviroment.rb and installing the =
wanted
>>> rails versions parallel, should work isent it?
>>=20
>>> Thanks in avanche
>>=20
>>> --
>>> You received this message because you are subscribed to the Google =
Groups "Ruby Enterprise Edition" group.
>>> To post to this group, send email to emm-ruby@googlegroups.com.
>>> To unsubscribe from this group, send email to =
emm-ruby+unsubscribe@googlegroups.com.
>>> For more options, visit this group =
athttp://groups.google.com/group/emm-ruby?hl=3Den.
>=20
> --=20
> You received this message because you are subscribed to the Google =
Groups "Ruby Enterprise Edition" group.
> To post to this group, send email to emm-ruby@googlegroups.com.
> To unsubscribe from this group, send email to =
emm-ruby+unsubscribe@googlegroups.com.
> For more options, visit this group at =
http://groups.google.com/group/emm-ruby?hl=3Den.
>=20