From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Cannot open load file: inf-ruby Date: Thu, 02 Sep 2010 09:06:38 -0600 Message-ID: <87pqwwb2wx.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=40245 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrBO4-0005n0-7c for emacs-orgmode@gnu.org; Thu, 02 Sep 2010 11:07:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrBNF-0002ZH-UX for emacs-orgmode@gnu.org; Thu, 02 Sep 2010 11:06:49 -0400 Received: from mail-pz0-f41.google.com ([209.85.210.41]:48887) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrBNF-0002Z4-Jw for emacs-orgmode@gnu.org; Thu, 02 Sep 2010 11:06:45 -0400 Received: by pzk33 with SMTP id 33so227889pzk.0 for ; Thu, 02 Sep 2010 08:06:44 -0700 (PDT) In-Reply-To: (Nathan Neff's message of "Thu, 2 Sep 2010 07:48:34 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nathan Neff Cc: emacs-orgmode Hi Nate, Some languages have requirements on external elisp packages, (e.g. ruby requires inf-ruby, lisp/clojure require slime, etc...). There requirements are listed in the table at [1]. Inf-ruby can be loaded through ELPA [2], or through the link in the languages table below. That said, ruby should only be requiring inf-ruby on :session evaluation, but it was requiring inf-ruby on *every* evaluation. I've fixed this so it should now be possible to run non :session ruby code blocks without having inf-ruby installed. Best -- Eric Nathan Neff writes: > I'm having trouble getting ruby scripts to run in org-babel. > > I'm running Org 7.01 trans. > > With this example, I get the message "Cannot load file: inf-ruby" after > I press C-c C-c with the cursor on the #+begin_src line > > #+begin_src ruby > puts "hello world" > return 1 > #+end_src > > I have ruby installed, and can run it from the command line. > I can run the following Python snippet just fine: > #+begin_src python > "boo" > return 3 > #+end_src python > > I've tried executing this line in my Scratch buffer and in the same buffer > that my ruby-code is in: > > > (org-babel-do-load-languages > 'org-babel-load-languages > '((R . t) > (ditaa . t) > (dot . t) > (emacs-lisp . t) > (gnuplot . t) > (haskell . nil) > (ocaml . nil) > (python . t) > (ruby . t) > (screen . nil) > (sh . t) > (sql . nil) > (sqlite . t))) > > Can someone post a bare-bones setup that can run ruby scripts from > org-babel? > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode Footnotes: [1] http://orgmode.org/worg/org-contrib/babel/languages.php [2] http://tromey.com/elpa/