Pharo Fails Due to Missing Libcurl Library

In late July I installed Fedora 30 on a laptop that previously ran Pharo, using the download instructions:

curl -L https://get.pharo.org/64/ | bash

When starting Pharo, it reported a problem with a library:

Error: External module not found
"<cdecl: long 'git_libgit2_init' () module: 'libgit2.so'>"

Checking this library:

[jborden@localhost Pharo]$ ldd ./pharo-vm/lib/pharo/5.0-201901051900/libgit2.so
ldd: warning: you do not have execution permission for `./pharo-vm/lib/pharo/5.0-201901051900/libgit2.so'
      linux-vdso.so.1 (0x00007ffd8c1fd000)
      libcurl-gnutls.so.4 => not found
      libz.so.1 => /lib64/libz.so.1 (0x00007fe7f514e000)

Based on this post I needed to add a link:

sudo ln -s /usr/lib64/libcurl.so.4 /usr/lib64/libcurl-gnutls.so.4

The link looked like:

[jborden@localhost Pharo]$ ls -ld  /usr/lib64/libcurl.so.4 /usr/lib64/libcurl-gnutls.so.4
lrwxrwxrwx. 1 root root 23 Jul 29 06:57 /usr/lib64/libcurl-gnutls.so.4 -> /usr/lib64/libcurl.so.4
lrwxrwxrwx. 1 root root 16 Jul  1 04:14 /usr/lib64/libcurl.so.4 -> libcurl.so.4.5.0

This worked for the locally installed Pharo, but not for pharo-launcher (still working on that).

Posted by John Borden at 4 August 2019, 3:49 pm with tags Pharo link

Comments

Thanks for the hint.

I have the same problem with openSuse leap 15.1, which is not far Fedora. Pharo 7 now works with this workaround, pharo-launcher still not.

Philippe

Posted by philippe at 6 August 2019, 2:13 pm link