我试图将 Squeak/Pharo 安装到 Ubuntu 服务器机器中。
./squeak -vm-display-null ./Pharo-1.2.2-12353/Pharo-1.2.image
它执行了,但没有命令行。没有GUI就无法使用?
我试图将 Squeak/Pharo 安装到 Ubuntu 服务器机器中。
./squeak -vm-display-null ./Pharo-1.2.2-12353/Pharo-1.2.image
它执行了,但没有命令行。没有GUI就无法使用?
看看 Coral,它为 Pharo 提供了一个脚本接口。不确定在哪里可以找到最新的文档,但在Pharo Build Server上有一个构建。
您可以通过参数将脚本发送到 VM。
./squeak -vm-display-null ./Pharo-1.2.2-12353/Pharo-1.2.image myScript.st
但这就是除了珊瑚之外你能做的所有事情。否则你应该使用 GNUSmalltalk
我相信在当前的 VM 中,您必须使用完整的“file:///” URL,这是不久前做出的一个选择,直到最近才被讨论为想要反转。
I am not sure if I understand your needs correctly, but I guess you could write a few liner read-eval loop, and pass it as script argument at start up.
Other than that most headless usages of smalltalk are for web servers (seaside, aida), in which case there is usually an admin url which lets you to poke around image by sending messages to objects and similar. If you have seaside one click image you could try out:
http://localhost:8080/tools/classbrowser
http://localhost:8080/tools/screenshot
http://localhost:8080/tools/versionuploader
to give you a taste of what can be done.
有 Coral,但您也可以查看一个更轻的 Pharo 版本,称为“Pharo Kernel”:
Pharo Kernel 是一个从 Pharo Core 镜像中剥离出来的小型 Smalltalk 内核。同时,还有一个 3MB 的 Pharo-Kernel-Gofer 映像可用,它具有网络支持和 Gofer(用于加载软件包的 pharo 安装程序)。
查看https://ci.inria.fr/pharo-contribution/view/Pharo-Kernel-2.0/job/PharoKernel2.0/