RaspberryPi上的Pharo:在启动时找不到模块

问题描述 投票:1回答:1

我正在使用spur32 VM for ARM和Pharo 7图像的raspbian拉伸系统。在Startup我总是得到一个exception: Error - Module not found

这似乎与lgitlibrary有关。我真的无法弄清楚这个错误是什么。有任何想法吗?谢谢,亨里克

enter image description here

raspberry-pi arm raspbian smalltalk pharo
1个回答
2
投票

我知道了。如果你检查#unixModuleName

unixModuleName
    | pluginDir |
    pluginDir := Smalltalk vm binary parent.
    #('libgit2.so' 'libgit2.so.0')
        detect: [ :each | (pluginDir / each) exists ] 
        ifFound: [ :libName | ^ libName ].

    self error: 'Module not found.'

在这里您有错误消息:self error: 'Module not found.'

您可能缺少libgit2.solibgit2.so.0(或依赖项)。你可能会遇到与我类似的问题:Getting error when adding OSSubprocess to my Pharo 6.1 on Centos 7.4x

您应该使用ldd检查依赖项(查看我的问题以获取详细信息)。

编辑由于评论添加信息:

我还没有使用IceBerg(Pharo的git集成)。我的猜测是,“(重新)初始化它”:(Smalltalk at: #LGitLibrary) initialize.

有关更多信息,我建议阅读以下内容:pharo's iceberg和一些Pharo项目使用git,如pharo-contributor和查看博客pharoweekly(有关pharo-contrib的一些信息) - https://pharoweekly.wordpress.com/2018/04/24/pharo-contributor-to-contribute-to-pharo

您可能想要使用一些指南"How to use git and github with Pharo"。这是由Peter Uhnak完成的(你可以在SO上找到他)。


0
投票

我有类似的问题,我需要使用这个instructions从源代码构建libgit2库。基本构建不起作用,因为Pharo无法初始化库。我用参数-DSTDCALL = ON再次编译它,它可以工作。

© www.soinside.com 2019 - 2024. All rights reserved.