Search code examples
raspberry-piarmraspbiansmalltalkpharo

Pharo on RaspberryPi: Module not found at startup


I am on a raspbian stretch system with the spur32 VM for ARM and a Pharo 7 image. At Startup I always get an exception: Error - Module not found.

It seems to have to do with lgitlibrary. I really cannot figure out what this error is about. Any ideas? Thanks, Henrik

enter image description here


Solution

  • I see. If you check #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.'
    

    Here you have your error message: self error: 'Module not found.'

    You probably have libgit2.so or libgit2.so.0 missing (or dependencies). You may suffer with similar problem as me: Getting error when adding OSSubprocess to my Pharo 6.1 on Centos 7.4x.

    You should check the dependencies with ldd (check my question for details).

    Edit Adding information due to comment:

    I have yet to use IceBerg (the Pharo's git integration). My guess, would be to "(re-)initialize it": (Smalltalk at: #LGitLibrary) initialize.

    For more information, I recommend reading these: pharo's iceberg and some Pharo project that uses git like pharo-contributor and checking blog pharoweekly (for some information about the pharo-contributor) - https://pharoweekly.wordpress.com/2018/04/24/pharo-contributor-to-contribute-to-pharo.

    You may want to use some guide "How to use git and github with Pharo". Which was done by Peter Uhnak (you can find him on SO).