emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Steve Harman <stvharman@gmail.com>
To: emacs-orgmode@gnu.org
Subject: org-babel ruby 1.8 and 1.9
Date: Sun, 18 Sep 2011 20:50:33 -0400	[thread overview]
Message-ID: <CAJ-7bJNp2HGxrNy4dKVYe-hPmw8Em+bW4KMt4vApCGT2DMLTjA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 905 bytes --]


On my mac, I have rvm installed with ruby 1.9.2 being default.
On the terminal, if I execute ruby, it is always 1.9.2 version.
However, the ruby ran by org-babel is 1.8 version.
How can I make the ruby code blocks in my org files
executed by 1.9?

Since I am new to Emacs, I would appreciate your help.
I found org-mode and org-babel extremely helpful in preparing
course notes. That's why, in fact, I switched to Emacs.
In an attempt to solve the above problem, I installed rvm.el
and put it in my init.el right before loading the org-babel languages.

(add-to-list 'load-path "/Users/stvharman/.emacs.d/lisp/rvm")
(require 'rvm)
(rvm-use-default) ;; use rvm’s default ruby for the current Emacs session

   (R . t)
   (ruby . t)

Thank you in advance.

Have a nice weekend (and week ahead),


[-- Attachment #2: Type: text/html, Size: 1008 bytes --]

             reply	other threads:[~2011-09-19  0:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-19  0:50 Steve Harman [this message]
2011-09-19  2:45 ` org-babel ruby 1.8 and 1.9 Eric Schulte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJ-7bJNp2HGxrNy4dKVYe-hPmw8Em+bW4KMt4vApCGT2DMLTjA@mail.gmail.com \
    --to=stvharman@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).