I had to install this on Ubuntu 22.04 and spent hours looking for the libs. I was getting errors below, and installing these libs fixed the issue.
linking shared-object mathematical/mathematical.so
/usr/bin/ld: cannot find -lwebp: No such file or directory
/usr/bin/ld: cannot find -lzstd: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [Makefile:262: mathematical.so] Error 1
make failed, exit code 2
Gem files will remain installed in /var/lib/gems/3.0.0/gems/mathematical-1.6.14 for inspection.
Results logged to /var/lib/gems/3.0.0/extensions/x86_64-linux/3.0.0/mathematical-1.6.14/gem_make.out
I had to install this on Ubuntu 22.04 and spent hours looking for the libs. I was getting errors below, and installing these libs fixed the issue.