org 9.6 如何安装?

我通过package-list-packages安装org 9.6 后,用M+x org-version 显示的版本是

Org mode version 9.5.3 (9.5.3-g69c588 @ /Users/apple/.emacs.d/elpa/org-9.6/)

重启emacs后用M+x org-version 显示的版本又回到9.5.3

Org mode version 9.5.3 (9.5.3-g69c588 @ /Users/apple/.emacs.d/elpa/org-9.5.3/)

在package-list-packages

应该如何安装org 9.6? emacs版本是[email protected], mac。

把默认的 org-mode 路径从 load-path 中先去掉。

直接安装最新的 Emacs 29 就是内置的 org-mode 就是 9.6 了。你要更新下你的 emacs-plus,或者直接安装 emacs 30.0.50

我直接将elpa文件夹下的org-9.5.3文件全部删除,重启emacs后出现如下错误:

Version mismatch is commonly encountered in the following situations:

1. Emacs is loaded using literate Org config and more recent Org
   version is loaded inside the file loaded by ‘org-babel-load-file’.
   ‘org-babel-load-file’ triggers the built-in Org version clashing
   the newer Org version attempt to be loaded later.

   It is recommended to move the Org loading code before the
   ‘org-babel-load-file’ call.

2. New Org version is loaded manually by setting ‘load-path’, but some
   other package depending on Org is loaded before the ‘load-path’ is
   configured.
   This "other package" is triggering built-in Org version, again
   causing the version mismatch.

   It is recommended to set ‘load-path’ as early in the config as
   possible.

3. New Org version is loaded using straight.el package manager and
   other package depending on Org is loaded before straight triggers
   loading of the newer Org version.

   It is recommended to put
    (straight-use-package ’org)
   early in the config.  Ideally, right after the straight.el
   bootstrap.  Moving ‘use-package’ :straight declaration may not be
   sufficient if the corresponding ‘use-package’ statement is
   deferring the loading.

我好像在本站那里看到过说org-mode9.5以后的版本都不会在elpa上发布,我看了package-list,确实没有org-mode,所有你应该是装不了的了,现在不升级emacs似乎就用不了最新的org-mode

ELPA 是有 9.6 的 http://elpa.gnu.org/packages/org.html

感谢指正,我看的是这个页面 Org Emacs lisp Package Archive ,英文不太好

对, Org ELPA 现在不用了,直接用 Emacs 默认的 ELPA 就好了。

是不是有其他的插件依赖的是org9.5.3 而自动将org9.6降级到9.5.3? 但我用package-delete 删除org 9.5.3时不断跳出其是其他包的依赖。

为什么一定要用 org 9.6?

自己编译一个 Emacs 29 或者 Emacs 30 吧。

已经是编译的[email protected]

[email protected] 还没内置 org 9.6??? 那就是 emacs-plus 更新太慢了。

你确定你用的是 [email protected]

我好几天前就是 org 9.6 了

brew install d12frosted/emacs-plus/[email protected] --with-dbus --with-debug --with-mailutils --with-no-frame-refocus --with-xwidgets
GNU Emacs 30.0.50 (build 1, aarch64-apple-darwin22.2.0, NS appkit-2299.30
 Version 13.1 (Build 22C65)) of 2023-01-01
Org mode version 9.6 (release_9.6-61-g63e073f @ /opt/homebrew/Cellar/[email protected]/30.0.50/share/emacs/30.0.50/lisp/org/)
Package org is built-in.

     Status: Built-In.
    Version: 9.6
    Summary: Outline-based notes management and organizer
Required by: org-roam-20221231.2122, org-sticky-header-20201223.143
Other versions: 9.6 (gnu-tsinghua), 9.6 (gnu-ustc), 9.6 (elpa), 9.6.0.20221231.131346 (gnu-devel), 9.6 (gnu), 9.6.0.20221231.131346 (elpa-devel).

可能有点点偏题,但是用 straight.el 不加设置的话就会装最新的 Org

emacs-28 with straight.el

Org mode version 9.6 (9.6-gdff956 @ /Users/xxxx/.config/emacs/straight/build/28.2/org/)

我又重新编译了一下[email protected],如下:

brew install d12frosted/emacs-plus/[email protected] --with-dbus --with-debug --with-mailutils --with-no-frame-refocus --with-xwidgets --with-imagemagick --with-native-comp --with-ctags

但是出现如下问题:

==> ./autogen.sh
==> ./configure --enable-locallisppath=/opt/homebrew/share/emacs/site-lisp --infodir=/opt/homebrew/Cellar/emacs
==> gmake
Last 15 lines from /Users/apple/Library/Logs/Homebrew/[email protected]/03.gmake:
gmake[2]: Leaving directory '/private/tmp/emacs-plusA30-20230102-18177-yqtwo0/lisp'
gmake[1]: *** [Makefile:533: lisp] Error 2
gmake[1]: Leaving directory '/private/tmp/emacs-plusA30-20230102-18177-yqtwo0'
gmake[1]: Entering directory '/private/tmp/emacs-plusA30-20230102-18177-yqtwo0'
***
*** "make all" failed with exit status 2.
***
*** You could try to:
*** - run "make bootstrap", which might fix the problem
*** - run "make V=1", which displays the full commands invoked by make,
***   to further investigate the problem
***
gmake[1]: *** [Makefile:414: advice-on-failure] Error 2
gmake[1]: Leaving directory '/private/tmp/emacs-plusA30-20230102-18177-yqtwo0'
gmake: *** [Makefile:370: all] Error 2

上次用同样的命令是可以编译成功的。这可能是什么原因?

我不知道,我也是菜鸟。

我每次都先 brew uninstall 然后再 brew install,从来没出过问题。

把/Users/apple/Library/Caches/Homebrew/[email protected]–git 路径下的文件全部删除后,重新用命令安装成功了。

更通用的做法是 brew cleanup --prune=all