gpt4 book ai didi

linux - 如何在 Linux 64 位上运行 Rebol 脚本

转载 作者:太空宇宙 更新时间:2023-11-04 09:58:49 25 4
gpt4 key购买 nike

我无法运行这个示例 Rebol 脚本

REBOL []
alert
"Hello World"

在 Debian 10 Linux 64 位操作系统上。

脚本来自official Rebol tutorial .

我正在尝试从控制台使用此命令运行它:

$ rebol hi

但它失败并显示错误消息

Script: "Untitled" (none)
** Script Error: alert has no value
** Near: alert "Hello World"

我使用 the latest available build适用于官方 Rebol 站点的 Linux x86-64。

REBOL/Core 2.7.8.4.10 (23-Jan-2016)
Copyright 2016 REBOL Technologies

如何运行脚本?

Rebol 是否支持 Linux 上的 GUI?

我在 Rebol 在所有主流平台上运行的文档中找到:

REBOL is cross-platform. A program written on Windows runs equally well on Linux, BSD, OS X, and many other platforms... with no changes necessary.

来源:http://www.rebol.com/what-rebol.html

但是我尝试了这个脚本以及一个使用 layout 方言的 Bookmarks 示例,但它们都失败了,并出现了 has no value 错误。

我还尝试在脚本中添加 .r 扩展名,但似乎没关系。

最佳答案

问题是 Rebol 有两个版本:核心和 view .而且核心版没有图形支持。但是查看版本现在不直接支持64位Linux。不存在 64 位版本,但有 32 位版本。

要使用 Rebol View 的 32 位版本运行警报示例,可能需要安装所需的 32 位库(如果我没记错的话,首先以某种方式在 64 位 Linux 上启用 32 位架构支持):

在我的 Debian 10 机器上,我需要 libx11.so.6 和一些其他 X11 相关的库:

$ sudo apt install libx11-6:i386 libxext6:i386 libxt6:i386 libxaw7:i386 libfreetype6:i386

现在脚本可以通过如下命令运行:

$ rebol hi.r

关于linux - 如何在 Linux 64 位上运行 Rebol 脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57994977/

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