From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Harman Subject: org-babel ruby 1.8 and 1.9 Date: Sun, 18 Sep 2011 20:50:33 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=000e0cd2994403171804ad40bbb9 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59965) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5S4C-0003RR-2r for emacs-orgmode@gnu.org; Sun, 18 Sep 2011 20:50:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R5S4A-0002ib-VW for emacs-orgmode@gnu.org; Sun, 18 Sep 2011 20:50:36 -0400 Received: from mail-gx0-f169.google.com ([209.85.161.169]:39053) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5S4A-0002iW-S8 for emacs-orgmode@gnu.org; Sun, 18 Sep 2011 20:50:34 -0400 Received: by gxk2 with SMTP id 2so240355gxk.0 for ; Sun, 18 Sep 2011 17:50:34 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --000e0cd2994403171804ad40bbb9 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hello, 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=92s default ruby for the current Emacs session (org-babel-do-load-languages 'org-babel-load-languages '( (R . t) (ruby . t) )) Thank you in advance. Have a nice weekend (and week ahead), Steve --000e0cd2994403171804ad40bbb9 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hello,

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

Since I am new to Emacs, I would appreciate your h= elp.
I found org-mode and org-babel extremely helpful in preparing
c= ourse 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.
<= br>(add-to-list 'load-path "/Users/stvharman/.emacs.d/lisp/rvm&quo= t;)
(require 'rvm)
(rvm-use-default) ;; use rvm=92s default ruby = for the current Emacs session

(org-babel-do-load-languages
=A0'org-babel-load-languages
=A0= '(
=A0=A0 (R . t)
=A0=A0 (ruby . t)
=A0=A0=A0 ))

Thank = you in advance.

Have a nice weekend (and week ahead),

Steve --000e0cd2994403171804ad40bbb9--