Loading a project on a Windows 11 directory from Linux.

huangapple go评论56阅读模式
英文:

Loading a project on a Windows 11 directory from Linux

问题

Running (asdf:load-system "ww-wouldwork-planner") 在 Linux 下产生错误 asdf/find-component:missing-component,组件 "ww-wouldwork-planner" 未找到。我的 init.lisp 文件在 Linux 主目录中包含 (setq *default-pathname-defaults* #p"/media/dave/DATA/Users Data/Dave/SW Library/AI/Planning/Wouldwork Planner/")(push *default-pathname-defaults* asdf:*central-registry*)。已尝试 (asdf:initialize-source-registry) 并验证 asdf:*central-registry* 包含正确的目录,与 *default-pathname-defaults* 中指定的目录相符(在 Windows 11 分区上)。问题是否与从 Linux 访问 Windows 11 目录有关?感谢任何帮助诊断错误。

英文:

I'm trying to move a Common Lisp project over to Linux Mint from Windows 11. The program runs fine under Windows 11 SBCL. However, there is a problem loading the project in SBCL under Linux.

Running (asdf:load-system "ww-wouldwork-planner") produces the error asdf/find-component:missing-component, component "ww-wouldwork-planner" not found.

My init.lisp file in my Linux home directory contains (setq *default-pathname-defaults* #p"/media/dave/DATA/Users Data/Dave/SW Library/AI/Planning/Wouldwork Planner/") and (push *default-pathname-defaults* asdf:*central-registry*).

I've tried (asdf:initialize-source-registry) and verified that asdf:*central-registry* contains the correct directory as specified in *default-pathname-defaults* (on a Windows 11 partition).

Is the problem related to accessing a Windows 11 directory from Linux? Appreciate any help diagnosing the error.

答案1

得分: 1

以下是翻译好的部分:

解决这个问题的一种方法是首先从Linux导航到Windows 11源代码目录,然后在SBCL中运行(asdf:load-system "ww-wouldwork-planner")。 ASDF随后可以轻松在该目录中找到ASD文件。

这个问题可能与Windows和Linux组织各自文件系统的不同方式有关。Linux似乎是基于单个根构建整个文件树,而Windows则构建了多个树,每个驱动分区一个(C:、D:等等)。Windows的驱动器在Linux下都出现在/media目录下,而用户文件位于/home目录下,而ASDF显然期望在项目文件中找到它们。例如,将项目文件移动到/home目录下可以让ASDF找到它们。这在我看来大部分是推测,所以请随时纠正或更新这些临时注释。

英文:

One way to resolve the problem is to first navigate to the Windows 11 source code directory from Linux, and then run (asdf:load-system "ww-wouldwork-planner") in SBCL. ASDF can then readily find the ASD file in that directory.

It's possible this problem may relate to the different ways Windows and Linux organize their respective file systems. Linux appears to build the whole file tree off of a single root, while Windows builds a grove of trees, one for each drive partition (C:, D:, etc). The Windows drives all appear in Linux under /media, while user files are under /home, where ASDF evidently expects to find project files. For example, moving the project files under the /home directory allows ASDF to find them. This is mostly conjecture on my part, so feel free to correct or update these provisional comments.

huangapple
  • 本文由 发表于 2023年4月20日 01:16:59
  • 转载请务必保留本文链接:https://go.coder-hub.com/76057218.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定