【问题标题】:How to run Rebol script on Linux 64-bit如何在 64 位 Linux 上运行 Rebol 脚本
【发布时间】:2019-09-18 14:19:37
【问题描述】:

我无法运行这个示例 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"

我使用来自 Rebol 官方网站的用于 Linux x86-64 的 the latest available build

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

如何运行脚本?

Rebol 在 Linux 上支持 GUI 吗?

我在文档中发现 Rebol 可以在所有主流平台上运行:

REBOL 是跨平台的。 在 Windows 上编写的程序在 Linux、BSD、OS X 和许多其他平台上同样运行良好......无需进行任何更改。

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

但是我尝试了这个脚本以及带有layout 方言的书签示例,但它们都因has no value 错误而失败。

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

【问题讨论】:

    标签: linux x86-64 rebol


    【解决方案1】:

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

    要使用 32 位版本的 Rebol View 运行警报示例,可能需要安装所需的 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
    

    【讨论】:

      猜你喜欢
      • 2020-03-22
      • 1970-01-01
      • 2012-03-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-08-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多