This is very odd, but I've got latest greatest everything -- 26.1; org-mode 9.1.14 9.1.14-9-g131531-elpaplus; maxima-5.42.1 (installed from source) -- and have this in my .emacs:
(add-to-list 'load-path ".../Downloads/maxima-5.42.1/src/")
(setq org-babel-maxima-command ".../Downloads/maxima-5.42.1/src/maxima")
(autoload 'maxima-mode "maxima" "Maxima mode" t)
(autoload 'imaxima "imaxima" "Frontend for maxima with Image support" t)
(autoload 'maxima "maxima" "Maxima interaction" t)
(autoload 'imath-mode "imath" "Imath mode for math formula input" t)
(setq imaxima-use-maxima-mode-flag t)
(add-to-list 'auto-mode-alist '("\\.ma[cx]" . maxima-mode))
And this seems fine for working with the examples in this. However, when I just try to run Maxima by itself (M-x maxima-mode, imaxima, maxima), I get errors:
for maxima or maxima-mode:
Cannot open load file: No such file or directory, maxima-font-lock
for imaxima:
Cannot open load file: No such file or directory, imaxima-autoconf-variables
I have imath.el, maxima.el, and imaxima.el from the Maxima distribution in ~/.emacs.d/maxima with
add-to-list 'load-path "~/.emacs.d/maxima/")
early in my .emacs. What am I missing here? Why does org-mode see Maxima and work, while a regular session doesn't?
maxima-font-lock
by putting a copy ofmaxima-font-lock.el
in my.emacs.d/maxima
. Still have the imaxima error.load-path
. For an instance in my case the right directory forload-path
is/usr/share/maxima/5.41.0/emacs
while themaxima
executable resides in/usr/bin/
. Look for anemacs
directory in themaxima
program folder. If you install a program from source you usually also need to runmake
andmake install
on the source.