1

'Haunt'('make' 步骤)的构建失败并显示以下内容:

GEN      haunt/config.go
./pre-inst-env: line 31: exec: compile: not found

“编译:未找到”?

Guile 在版本 2.0.14,Haunt 0.2.4,版本 8 的母舰 CentOS 中。存在 guile-devel 包。有任何想法吗?

~~附言。理论上是否可以在另一台 x86_64 机器上“制作”它,传输文件并在目标环境内“制作安装”?~~

4

1 回答 1

1

我在 Lubuntu 18.04 上遇到了同样的问题。这是一个对我有用的hack。

一些谷歌搜索让我重新检查输出configure

$ ./configure 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
configure: checking for guile 2.2
configure: found guile 2.2
checking for guile-2.2... /usr/bin/guile-2.2
checking for Guile version >= 2.2... 2.2.3
checking for guild-2.2... no
checking for guile-config-2.2... no
checking for guile-tools-2.2... no
checking if (system reader) is available... no
checking if (commonmark) is available... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating example/Makefile
config.status: creating website/Makefile
config.status: creating haunt/config.scm
config.status: creating pre-inst-env
config.status: creating test-env
config.status: creating scripts/haunt

输出的no第 14--16 行似乎是一个问题:无论出于何种原因,这些包都没有被configure. 但是,我可以手动设置使用的变量Makefile(在使用dpkg来定位东西之后):

$ export GUILD=/usr/bin/guild
$ export GUILE_CONFIG=/usr/bin
$ ./configure
(...)
checking for guild-2.2... /usr/bin/guild
checking for guile-config-2.2... /usr/bin
(...)

Nowmake和 一样有效make install,尽管后者sudo在我的情况下是必需的。无论如何,我对解决方案还不满意,因为网站上的示例(特别是haunt build)还不能正常工作。

编辑:在 Lubuntu 20.04 LTS 上,虽然安装也需要sudo. 但是,该haunt build示例仍然失败。当我知道更多时,我会更新。

于 2020-11-15T18:38:12.763 回答