Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use mit-scheme instead of guile for org-mode code block evaluation

I have a code block in org mode:

#+BEGIN_SRC scheme
  (define (even? n)
    (= (remainder n 2) 0))

  (even? 3)
#+END_SRC

When I do C-c C-c to evaluate the code, I get the error '/bin/bash: guile: command not found'

I guess this is because org-babel expects that the scheme implementation installed is guile, but I have mit-scheme which I can run from the command line just by calling 'scheme'.

How do I get org-babel to use mit-scheme instead of trying to use guile?

This similar question doesn't solve my issue as the answer is very specific to racket.

like image 322
user2355213 Avatar asked Jan 20 '26 04:01

user2355213


1 Answers

Try to change the geiser-default-implementation variable - that's used by ob-scheme package to evaluate Scheme code blocks...

like image 174
Alex Ott Avatar answered Jan 22 '26 21:01

Alex Ott



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!