Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
execution problem
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
tejo  
View profile  
 More options Jan 1 2009, 1:14 pm
From: tejo <m.pa...@gmail.com>
Date: Thu, 1 Jan 2009 10:14:12 -0800 (PST)
Local: Thurs, Jan 1 2009 1:14 pm
Subject: execution problem
Hi
I can't execute rails apps with rinari-console etc.
I get a "Missing the Rails  gem." error.

I have all the gems installed, rails works, I think the problem is
related to paths.
I define gems and ruby path in my .bash_profile, how I define paths in
rinari....or emacs?

Thanks

Teo


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
tejo  
View profile  
 More options Jan 1 2009, 1:32 pm
From: tejo <m.pa...@gmail.com>
Date: Thu, 1 Jan 2009 10:32:40 -0800 (PST)
Local: Thurs, Jan 1 2009 1:32 pm
Subject: Re: execution problem
I get it working with setenv PATH.
I need a way for autoload my PATH from .bash_profile.
BTW I use carbon emacs.

On Jan 1, 7:14 pm, tejo <m.pa...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Phil Hagelberg  
View profile  
 More options Jan 1 2009, 1:33 pm
From: Phil Hagelberg <p...@hagelb.org>
Date: Thu, 01 Jan 2009 10:33:22 -0800
Local: Thurs, Jan 1 2009 1:33 pm
Subject: Re: [rails-on-emacs] execution problem

tejo <m.pa...@gmail.com> writes:
> I have all the gems installed, rails works, I think the problem is
> related to paths.
> I define gems and ruby path in my .bash_profile, how I define paths in
> rinari....or emacs?

Your .bash_profile will only take effect within bash and programs that
are started from it. It's a bad idea to put anything in there that isn't
directly related to bash. Use ~/.profile instead. You will have to log
out and log back in for your changes to take effect.

Things are a little different on OS X; someone was telling me there's
really no good way to add to your path without editing some crazy plist
XML file somewhere. I don't use OS X, but if that is the problem then
I'm sure someone else on the list can elaborate.

-Phil


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael D. Ivey  
View profile  
 More options Jan 1 2009, 2:37 pm
From: "Michael D. Ivey" <michael.i...@gmail.com>
Date: Thu, 1 Jan 2009 13:37:39 -0600
Local: Thurs, Jan 1 2009 2:37 pm
Subject: Re: [rails-on-emacs] Re: execution problem
On Jan 1, 2009, at 12:33 PM, Phil Hagelberg wrote:

> Things are a little different on OS X; someone was telling me there's
> really no good way to add to your path without editing some crazy  
> plist
> XML file somewhere. I don't use OS X, but if that is the problem then
> I'm sure someone else on the list can elaborate.

Carbon Emacs appears to load .profile, but the newest HEAD builds of  
NS Emacs do not. I finally got this and other env vars working with  
the following:

(if window-system
     (progn
       (ns-grabenv "/bin/bash" '("source ~/.profile" "printenv"))
       ...
       ...))


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Purcell  
View profile  
 More options Jan 1 2009, 2:41 pm
From: Steve Purcell <st...@sanityinc.com>
Date: Thu, 1 Jan 2009 20:41:42 +0100
Local: Thurs, Jan 1 2009 2:41 pm
Subject: Re: [rails-on-emacs] Re: execution problem
Indeed -- here's the trick I use on my Mac, though I think the code  
would have the desired effect on any platform:

   (dolist (dir (mapcar 'expand-file-name '("/usr/local/bin" "/opt/
local/bin"
                                            "/opt/local/lib/
postgresql83/bin" "~/bin")))
     (setenv "PATH" (concat dir ":" (getenv "PATH")))
     (setq exec-path (append (list dir) exec-path)))

See http://github.com/purcell/emacs.d/tree/master for the full context.

Michael's trick looks neat too, at the cost of being NextStep/Cocoa-
specific.

-Steve

On 1 Jan 2009, at 19:33, Phil Hagelberg wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
tejo  
View profile  
 More options Jan 1 2009, 4:03 pm
From: tejo <m.pa...@gmail.com>
Date: Thu, 1 Jan 2009 13:03:52 -0800 (PST)
Local: Thurs, Jan 1 2009 4:03 pm
Subject: Re: execution problem
Hi, I think I correctly set env path.
Now rinari-console works, even script/server works from a shell
buffer, but if I try rinari-web-server
I get the same error: "Missing the Rails  gem. Please `gem install -v=
rails` ......"

any ideas?

On Jan 1, 8:41 pm, Steve Purcell <st...@sanityinc.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric Schulte  
View profile  
 More options Jan 5 2009, 10:29 pm
From: "Eric Schulte" <schulte.e...@gmail.com>
Date: Mon, 05 Jan 2009 19:29:15 -0800
Local: Mon, Jan 5 2009 10:29 pm
Subject: Re: [rails-on-emacs] Re: execution problem

tejo <m.pa...@gmail.com> writes:
> Hi, I think I correctly set env path.
> Now rinari-console works, even script/server works from a shell
> buffer, but if I try rinari-web-server
> I get the same error: "Missing the Rails  gem. Please `gem install -v=
> rails` ......"

Do you have the RUBYOPT environment variable set to rubygems?  You can
check this by executing (environment) from your *scratch* buffer and
then looking at the list in your *messages* buffer.

You can set this by putting

  (setenv "RUBYOPT" "rubygems")

in your init file.

If that doesn't fix it I don't know what the issue could be. -- Eric


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
tejo  
View profile  
 More options Jan 7 2009, 8:25 am
From: tejo <m.pa...@gmail.com>
Date: Wed, 7 Jan 2009 05:25:34 -0800 (PST)
Local: Wed, Jan 7 2009 8:25 am
Subject: Re: execution problem
Thanks for your reply eric.
I set the env var with (setenv "RUBYOPT" "rubygems") in my init file,
and it's correctly set, I've checked it with M-x getenv.

But I have the same problem =(

"Missing the Rails  gem. Please `gem install -v= rails`, update your
RAILS_GEM_VERSION setting in config/environment.rb for the Rails
version you do have installed, or comment out RAILS_GEM_VERSION to use
the latest version installed."

maybe this is an issue with carbon emacs

On Jan 6, 4:29 am, "Eric Schulte" <schulte.e...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »