gpt4 book ai didi

cocoa - 使用 Mac 端口 Clozure Common Lisp 无法执行 `(require "COCOA")`

转载 作者:行者123 更新时间:2023-12-03 16:58:09 24 4
gpt4 key购买 nike

我已经安装了带有 Mac 端口的 ccl 软件包。现在我想使用 Cocoa 桥。

Welcome to Clozure Common Lisp Version 1.8  (DarwinX8664)!
? (require "COCOA")
> Error: Permission denied : #P"/opt/local/share/ccl/1.8/temp bundle64.app/Contents/252752233492590994.tem"
> While executing: %CREATE-FILE, in process listener(1).
> Type :POP to abort, :R for a list of available restarts.
> Type :? for other options.

如果我使用 sudo 启动 ccl64 ,它就可以正常工作。但我希望能够以普通用户的身份执行此操作。我该怎么做?

最佳答案

svn co http://svn.clozure.com/publicsvn/openmcl/release/1.8/darwinx86/ccl

while in ~ 可能是实现您想要的效果的最直接的方法。

如果您想使用 MacPorts 来管理 ccl(而不是上面的 svn 方法),请运行

sudo chown -R $USER /opt/local/share/ccl

请注意,后一种情况确实让我有点不舒服,因为如果您尝试 sudo port uninstall ccl,MacPorts 不会完全删除 share/ccl 目录,大概是因为 ( require :cocoa) 调用将已编译的二进制文件添加到 Macports 未跟踪的目录中。

要使 MacAppStore 版本正常工作,您可能需要找到埋藏在 ccl.app 目录中的 ccl 二进制文件,然后为 slime 启动它。也许这也是一个不错的选择。

请注意,无论您以何种方式执行此操作,一旦您(require :cocoa),当 slime 运行时,您将弹出一个单独的 cocoa 监听器。打开后我就把它移到一边。如果您找到一种方法在 (require :cocoa) 之后抑制此监听器窗口,我很想知道。

但我推荐第一种(svn)方法。这是我与 slimv 一起使用的那个,也是 Clozure 在其下载页面上推荐的那个。

关于cocoa - 使用 Mac 端口 Clozure Common Lisp 无法执行 `(require "COCOA")`,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14119618/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com