How do I know if the GMP library is installed in my machine - gmp

I am on Ubuntu 22.04 and I am trying to figure out if I have installed the GMP library.
I have tried locate libgmp.a, but nothing shows up. But if I run locate libgmp.so I get the following output:
/snap/code/107/usr/lib/x86_64-linux-gnu/libgmp.so.10
/snap/code/107/usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
/snap/code/108/usr/lib/x86_64-linux-gnu/libgmp.so.10
/snap/code/108/usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
/snap/core/13425/usr/lib/x86_64-linux-gnu/libgmp.so.10
/snap/core/13425/usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
/snap/core/13425/usr/lib/x86_64-linux-gnu/openssl-1.0.0/engines/libgmp.so
/snap/core/13741/usr/lib/x86_64-linux-gnu/libgmp.so.10
/snap/core/13741/usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
/snap/core/13741/usr/lib/x86_64-linux-gnu/openssl-1.0.0/engines/libgmp.so
/snap/core18/2560/usr/lib/x86_64-linux-gnu/libgmp.so.10
/snap/core18/2560/usr/lib/x86_64-linux-gnu/libgmp.so.10.3.2
/snap/core18/2560/usr/lib/x86_64-linux-gnu/openssl-1.0.0/engines/libgmp.so
/snap/core18/2566/usr/lib/x86_64-linux-gnu/libgmp.so.10
/snap/core18/2566/usr/lib/x86_64-linux-gnu/libgmp.so.10.3.2
/snap/core18/2566/usr/lib/x86_64-linux-gnu/openssl-1.0.0/engines/libgmp.so
/snap/core20/1611/usr/lib/x86_64-linux-gnu/libgmp.so.10
/snap/core20/1611/usr/lib/x86_64-linux-gnu/libgmp.so.10.4.0
/snap/core20/1623/usr/lib/x86_64-linux-gnu/libgmp.so.10
/snap/core20/1623/usr/lib/x86_64-linux-gnu/libgmp.so.10.4.0
/snap/gnome-3-34-1804/77/usr/lib/x86_64-linux-gnu/libgmp.so.10
/snap/gnome-3-34-1804/77/usr/lib/x86_64-linux-gnu/libgmp.so.10.3.2
/snap/gnome-3-38-2004/112/usr/lib/x86_64-linux-gnu/libgmp.so
/snap/gnome-3-38-2004/112/usr/lib/x86_64-linux-gnu/libgmp.so.10
/snap/gnome-3-38-2004/112/usr/lib/x86_64-linux-gnu/libgmp.so.10.4.0
/snap/gnome-3-38-2004/115/usr/lib/x86_64-linux-gnu/libgmp.so
/snap/gnome-3-38-2004/115/usr/lib/x86_64-linux-gnu/libgmp.so.10
/snap/gnome-3-38-2004/115/usr/lib/x86_64-linux-gnu/libgmp.so.10.4.0
/usr/lib/x86_64-linux-gnu/libgmp.so.10
/usr/lib/x86_64-linux-gnu/libgmp.so.10.4.1
Does this mean that I have it installed and can use it? Please any help is appreciated.

Related

Library not loaded: #rpath/libtbb.dylib in Prophet / Python

I'm on a Mac X1, Monterey.
I've installed prophet and run into this issue when trying to fit a model.
RuntimeError: Error during optimization: console log output:
dyld[90668]: Library not loaded: #rpath/libtbb.dylib
Referenced from: /Users/{username}/opt/anaconda3/lib/python3.9/site-packages/prophet/stan_model/prophet_model.bin
Reason: tried: '/private/var/folders/cd/dfrqgp4s4ll55cwb7rtgccbw0000gq/T/pip-install-rjpuj450/prophet_d7e4cce10e414c89a572fe3605ae9269/build/lib.macosx-11.1-arm64-cpython-39/prophet/stan_model/cmdstan-2.26.1/stan/lib/stan_math/lib/tbb/libtbb.dylib' (no such file), '/private/var/folders/cd/dfrqgp4s4ll55cwb7rtgccbw0000gq/T/pip-install-rjpuj450/prophet_d7e4cce10e414c89a572fe3605ae9269/build/lib.macosx-11.1-arm64-cpython-39/prophet/stan_model/cmdstan-2.26.1/stan/lib/stan_math/lib/tbb/libtbb.dylib' (no such file), '/usr/local/lib/libtbb.dylib' (no such file), '/usr/lib/libtbb.dylib' (no such file)
I know this has to do with the wrong paths being searched. I can find the dylib in
/Users/{user}/opt/anaconda3/lib/python3.9/site-packages/prophet/stan_model/cmdstan-2.26.1/stan/lib/stan_math/lib/tbb/
But, it seems prophet doesn't know to look there. I'm curious how I can update/fix either the rpath variable or find another solution?
I tried to create a symbolic link with sudo ln -s, but don't have permissions on the laptop.
TIA!
I got it to work on Apple Silicon (M1 Max in my case) by installing older versions of both pystan and prophet:
pip install pystan==2.19.1.1
pip install prophet==1.0
The other important piece of the puzzle is that you should use Python 3.8 to get it working.
Installing older versions of the libraries and using Python 3.8 are both talked about in issue #2002 on Github, but there's not really an explanation of the libtbb.dylib error message.

Configure of CGAL

I've installed cgal-4.13 on my computer(win 8.1, vs 2017) following the instruction (https://www.cgal.org/download/windows.html). But when I try to use cmake to build the example, it always give me the error:
CMake Error at D:/dev/CGAL-4.13-beta1/CGALConfig.cmake:6 (include):
include could not find load file:
D:/dev/CGAL-4.13-beta1/lib/cmake/CGAL/CGALConfig.cmake
and could not go on configuring. I searched a lot but still could not find the answer. Could someone please tell me what should I do? Thank you!
There was indeed an issue in the Windows installer for CGAL-4.13-beta1. That is why I have published CGAL-4.13-beta2. Could you give it a try, and then confirm the bug is solved?

cygwin: diff.exe: error while loading shared libraries: cygsigsegv-2.dll

I installed the latest cygwin x86-64. I added diffutils to get the basic diff(1) linux command. When I now run it, I get:
diff.exe: error while loading shared libraries: cygsigsegv-2.dll
I did a search for the dll here, but there are zero matches, not found.
I then re-ran the installer and did a search in the installer search box on this dll, and nothing came up.
Can you please advise?
cygsigsegv-2.dll is part of package libsigsegv2, which is required by
diffutils:
# diffutils
sdesc: "A GNU collection of diff utilities"
category: Utils
requires: cygwin libiconv2 libintl8 libsigsegv2
Installing that package should fix the problem.

FDT5 Haxe Compilation Error "Uncaught exception - module.c(124) : Builtin not found : fasthash"

I am a user of FDT5 and getting this very strange Haxe compiler error when using v2.09 of Haxe and v1.8.2 of NekoVM.
"Uncaught exception - module.c(124) : Builtin not found : fasthash"
Can anyone help me resolve this error as can't compile my FDT5 project, as if I compile it directly in Mac OSX Lion. Terminal it does not report any issues.
Any help would be most appreciated.
You may need to setup the path to your Neko installation
FDT 5.5 ships with Neko, but the path to it is not set by default. Because it's not, you may get errors as you mentioned:
To fix this, go to Preferences>Haxe>Neko VM and point to a Neko installation directory.
Custom Installation Directory
You can point to a custom installation. Perhaps if you used the standalone installer from the Haxe website.
Using FDT's Neko Installation
For windows you can just point to FDT5>haxe>neko-1.8.2-osx
For OSX, because FDT is a self contained package, you can't naviagate to Neko via the OSX GUI. Instead type in this path, or copy and paste the path from where your Haxe location is set and paste it into the Neko location. Then just change the last directory name to the name of the Neko folder: haxe-2.09-osx -> neko-1.8.2-osx.

Not getting TBB to compile test examples

I am not getting TBB to work. I am following the steps in the "Getting started" document.
I am doing the following steps:
downloading the linux files + the sources files.
extracting them in 1 directory
calling make
going to tbb.../bin calling source tbbvars.sh intel64
going to examples/Getting_started/sub_string_finder
calling make
I then get the error:
sub_string_finder.cpp:32:30: fatal error: tbb/parallel_for.h: No such file or directory
I really googled a lot but can't find any related stuff.
I did also try to add some -I statement but it didnt help
I assume it is kind of a including/linking problem but I dont know how to fix.
This is all done on fedora 16 64bit. (kernel 3.1.4) // TBB version 4.0
The solution was to install tbb-devel package.