【问题标题】:Where can I find a Pharo+Seaside3+Magritte image for experimenting with the "An Introduction to Seaside" book?我在哪里可以找到 Pharo+Seaside3+Magritte 图像来试验“海边简介”一书?
【发布时间】:2016-03-15 10:07:43
【问题描述】:

在哪里可以找到运行本书代码的 Pharo 图像: http://www.swa.hpi.uni-potsdam.de/seaside/tutorial

在邮件列表中搜索了一个 Pharo 替代方案,他们应该是 http://www.lukas-renggli.ch/job/Magritte%202/,然后移动了 http://source.lukas-renggli.ch/,但我无法确定它。

印刷版(使用旧的 Seaside 2.8.4)引用了应该在此处可用的 Squeak 图像: http://www.seaside.st/download/squeak#167943699

据我所知,搬到其他地方了吗?找到了可以使用 http://ftp.squeak.org/various_images/seaside/Squeak4.1/ 但无法判断它们是否正确的 Squeak 图像。

谢谢!

【问题讨论】:

    标签: smalltalk pharo squeak seaside


    【解决方案1】:

    本教程在编写时考虑了 Squeak,应该适用于 Seaside 3。

    您可以使用 Squeak 网站 (http://squeak.org/projects/#seaside) 中的安装说明在 Squeak 映像中安装 Seaside。

    可以在 Squeak 的文件服务器 http://ftp.squeak.org/4.4/seaside/ 上找到带有 Seaside 的最新预构建 Squeak 映像(Squeak 4.4 和 Seaside 3.0.8)。

    在撰写本文时,正在准备基于 Squeak 5 和 Seaside 3.2 的更新图像。

    [编辑]

    在 Squeak 4.5、4.6 或 5.0 中执行以下命令以获取当前的 Metacello(取自 https://github.com/dalehenrich/metacello-work):

    "Get the Metacello configuration (for Squeak users)"
    Installer gemsource
        project: 'metacello';
        addPackage: 'ConfigurationOfMetacello';
        install.
    
    "Bootstrap Metacello Preview, using mcz files (#'previewBootstrap' symbolic version"
    ((Smalltalk at: #ConfigurationOfMetacello) project 
      version: #'previewBootstrap') load.
    
    "Load the Preview version of Metacello from GitHub"
    (Smalltalk at: #Metacello) new
      configuration: 'MetacelloPreview';
      version: #stable;
      repository: 'github://dalehenrich/metacello-work:configuration';
      load.
    
    "Now load latest version of Metacello"
    (Smalltalk at: #Metacello) new
      baseline: 'Metacello';
      repository: 'github://dalehenrich/metacello-work:master/repository';
      get.
    (Smalltalk at: #Metacello) new
      baseline: 'Metacello';
      repository: 'github://dalehenrich/metacello-work:master/repository';
      load.
    

    然后,下面会安装Seaside+Magritte

    Metacello new
        configuration: 'Seaside3';
        repository: 'http://www.smalltalkhub.com/mc/Seaside/MetacelloConfigurations/main';
        version: #stable;
        load: 'OneClick'.
    
    Metacello new
        configuration: 'Magritte3';
        repository: 'http://www.smalltalkhub.com/mc/Magritte/Magritte3/main';
        version: #stable;
        load: 'Magritte-Seaside'.
    

    【讨论】:

    • 感谢您的快速响应。链接中的图像不包含 Magritte。它里面有 Magritte3 的配置,但是书中提供的代码运行时没有问题。尝试安装 Magritte3 想要 Zinc 不在图像中......等等
    • 当它需要 Zinc 时,那里没有配置某些东西,抱歉。
    【解决方案2】:

    这里试试这个:https://ci.inria.fr/pharo-contribution/job/PharoWeb/PHARO=50,VERSION=stable,VM=vm/lastSuccessfulBuild/artifact/PharoWeb.zip

    将此图像与 pharo 5.0 vm 一起使用。您可以从 pharo 网站获取它。

    这是 Pharo MOOC 的一部分:http://files.pharo.org/mooc/。我强烈推荐参加这个 MOOC。这对我帮助很大。

    【讨论】:

    • 在 cmets 部分提及链接
    • 好答案!还要添加您将虚拟机与您发布的图像放在哪里。
    【解决方案3】:

    在 Pharo 4 和 5 中,使用 Tobias 答案的最后一部分先加载 Seaside,然后再加载 Magritte。 Pharo 默认加载了 Metacello。

    加载完成后,打开Seaside控制面板添加一个适配器(ZnZincServerAdaptor),然后启动它。

    pharo contributions ci 上,有几个版本已经加载了 Magritte 和 Seaside(如 QCMagritte)

    【讨论】:

      猜你喜欢
      • 2021-01-19
      • 1970-01-01
      • 1970-01-01
      • 2013-11-01
      • 1970-01-01
      • 2015-01-20
      • 1970-01-01
      • 2010-10-27
      • 1970-01-01
      相关资源
      最近更新 更多