file-missing "Cannot open load file" "No such file or directory" "ob-sh"

帖子一

来自 https://lists.gnu.org/archive/html/emacs-orgmode/2014-01/msg01003.html

From Thorsten Jolitz

Hi List,

I just updated Org and - with (sh . t) in my Org Babel language list -
get the following error:

,-----------------------------
| Cannot open load file: ob-sh
`-----------------------------

It seems that ‘lang’ is “sh” in the load function

,--------------------------------------------------------------
| (defun org-babel-do-load-languages (sym value)
| "Load the languages defined in org-babel-load-languages'." | [...] | (require (intern (concat "ob-" lang) | [...]--------------------------------------------------------------

but the files have been renamed to ob-shell instead of ob-sh:

,--------------------------------------------------------
| -rw-r–r-- 1 tj users 9399 21. Jan 02:48 ob-shell.el
| -rw-r–r-- 1 tj users 9223 21. Jan 02:48 ob-shell.elc
`--------------------------------------------------------

From Eric Schulte to Thorsten Jolitz

I just updated Org and - with (sh . t) in my Org Babel language list -
get the following error:

Yes, ob-sh has been renamed to ob-shell, the above should be changed to
(shell . t).

From Bastien to Eric Schulte

Hi Eric,

Yes, ob-sh has been renamed to ob-shell, the above should be changed to
(shell . t).

Can you not it in ORG-NEWS as an incompatible change in master?

These things tend to get easily forgotten.

Thanks!

From Eric Schulte to Bastien

Done. Thanks,

帖子二

来自 https://lists.gnu.org/archive/html/emacs-orgmode/2014-04/msg00930.html
这个帖子实际是上个帖子的继续,不过时间跨度太大,因此我当成两个。

From Vikas Rawal

I tried to update my org-mode using make up2 but got an error that looks similar.


install -m 755 -d /tmp/tmp-orgtest
TMPDIR=/tmp/tmp-orgtest emacs -Q -batch --eval ‘(setq vc-handled-backends nil org-startup-folded nil)’ --eval ‘(add-to-list’"’"‘load-path (concat default-directory"lisp"))’ --eval ‘(add-to-list’"’"‘load-path (concat default-directory"testing"))’ -l org-batch-test-init --eval ‘(setq org-batch-test t org-babel-load-languages (quote ( (awk . t) (C . t) (fortran . t) (maxima . t) (lilypond . t) (octave . t) (python . t) (sh . t) (perl . t) (emacs-lisp . t) (shell . t) (org . t))) org-test-select-re “\(org\|ob\)” )’-l org-loaddefs.el -l cl -l testing/org-test.el -l ert -l org -l ox --eval’(org-test-run-batch-tests org-test-select-re)’
flet'is an obsolete macro (as of 24.3); use eithercl-flet’or `cl-letf’.
Cannot open load file: ob-sh
make[1]: *** [test-dirty] Error 255
make: *** [up2] Error 2


Where does it load the list of babel languages from?

From Vikas Rawal

I am running emacs on os-x, if that is relevant.

From Nick Dokos to Vikas Rawal

Where does it load the list of babel languages from?

Check local.mk for BTEST_OB_LANGUAGES: delete sh if present.

From Bastien to Nick Dokos

Or rename sh to shell.

From Vikas Rawal to Bastien

Worked. Thanks.

From Achim Gratz to Bastien

No, delete it. There is no reason to include it there since it is
automatically present when testing.

From Bastien to Nick Dokos

Indeed, thanks for correcting me here,

总结

  1. 将 sh 改为 shell。
  2. 删除这个。

猜你喜欢

转载自blog.csdn.net/sinat_41104353/article/details/84034517