comby-tools/comby

Installer failing on Debian 11.2, solved installing libev-dev

sdepablos opened this issue · 4 comments

Describe the bug
Executing the installer complains about libev.so.4, but installing libpcr3-dev does not solve the issue on Debian 11.2

Reproducing

Here I'm install libpcre3-dev before executing the install and still complains:

sudo apt-get install libpcre3-dev && bash <(curl -sL get.comby.dev)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libpcre3-dev is already the newest version (2:8.39-13).
libpcre3-dev set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[+] Downloading comby 1.7.0
[+] Download complete.
[+] Installing comby to /usr/local/bin
/usr/local/bin/comby: error while loading shared libraries: libev.so.4: cannot open shared object file: No such file or directory
[-] comby did not install correctly.
[-] My guess is that you need to install the pcre library on your system. Try:
[*] sudo apt-get install libpcre3-dev && bash <(curl -sL get.comby.dev)

Expected behavior

The expected behavior is for the installer to work.

Additional context

Installing libev previous to install comby does solve the issue

sudo apt-get install libev-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libev4
The following NEW packages will be installed:
  libev-dev libev4
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 180 kB of archives.
After this operation, 358 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.debian.org/debian bullseye/main amd64 libev4 amd64 1:4.33-1 [43.2 kB]
Get:2 http://deb.debian.org/debian bullseye/main amd64 libev-dev amd64 1:4.33-1 [137 kB]
Fetched 180 kB in 0s (598 kB/s)   
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libev4:amd64.
(Reading database ... 68212 files and directories currently installed.)
Preparing to unpack .../libev4_1%3a4.33-1_amd64.deb ...
Unpacking libev4:amd64 (1:4.33-1) ...
Selecting previously unselected package libev-dev:amd64.
Preparing to unpack .../libev-dev_1%3a4.33-1_amd64.deb ...
Unpacking libev-dev:amd64 (1:4.33-1) ...
Setting up libev4:amd64 (1:4.33-1) ...
Setting up libev-dev:amd64 (1:4.33-1) ...
Processing triggers for libc-bin (2.31-13+deb11u2) ...


bash <(curl -sL get.comby.dev)
[+] Downloading comby 1.7.0
[+] Download complete.
[+] Installing comby to /usr/local/bin
[+] comby is installed!
[+] The licenses for this distribution are included in this script. Licenses are also available at https://github.com/comby-tools/comby/tree/master/docs/third-party-licenses
[+] Running example command:
------------------------------------------------------------
comby 'printf(":[1] :[2]!")' 'printf("comby, :[1]!")' .c -stdin << EOF
int main(void) {
  printf("hello world!");
}
EOF
------------------------------------------------------------
[+] Output:
------------------------------------------------------------
------ /dev/null
++++++ /dev/null
@|-1,3 +1,3 ============================================================
 |int main(void) {
-|  printf("hello world!");
+|  printf("comby, hello!");
 |}
------------------------------------------------------------

I get the same error on Ubuntu 20.04

I've updated the install script to hint at installing libev:

[-] My guess is that you need to install the pcre and/or libev libraries on your system. Try:
[*] sudo apt-get install libpcre3-dev libev4 && bash <(curl -sL get.comby.dev)

Also please now also use:

bash <(curl -sL get-comby.netlify.app)

instead of previous bash <(curl -sL get.comby.dev)

Very cool! Thank you! Why netlify?

I was running into an SSL cert issue using curl, might be my machine, might be an issue with the cert (the cert seems fine in the browser though). I'll need some more time to investigate, in the meantime the site is hosted on netlify which doesn't give curl this cert issue