I have been testing out a spectrometer called Nano lambda SPR on ubuntu. I simply followed their installation manual to install libusb-1.0.9 and libusb-compat-1.0.4. The link to their installation manual with pictures and explanation of what to install is here. I simply followed the beginning and went straight to the last page to run their python examples. Now I am trying to run one of their example scripts. However, I get the following error and I am not sure what libgsl.so.0 is and where to start looking to resolve this issue.
**********************************************************************
[Python-3] Python Version : 3 . 8 Detected
**********************************************************************
[PythonPrism] CrystalBase Library Loaded Successfully!
[PythonPrism] CrystalCorePath: ../Libs/libCrystalCore.so
Traceback (most recent call last):
File "example_wrapper_python.py", line 32, in <module>
pSpecCore = initialize_core_api("../Libs/libCrystalCore.so")
File "../../../../wrappers/python/wrapper_python3/core/initialize_core_api.py", line 16, in initialize_core_api
pSpecCore = ctypes.CDLL(crystal_core_library_path)
File "/usr/lib/python3.8/ctypes/__init__.py", line 369, in __init__
self._handle = _dlopen(self._name, mode)
OSError: libgsl.so.0: cannot open shared object file: No such file or directory
I also followed the this link and ran the command:
sudo find / -name libgsl.so
and it gave me the following outputs:
/usr/local/lib/libgsl.so
/usr/lib/x86_64-linux-gnu/libgsl.so
So I then set LD_LIBRARY_PATH=/usr/local/lib
and export LD_LIBRARY_PATH
and ran the script with python, but I still get the same error.
I also ran sudo apt install libgsl-dev
and got it installed. But the error is still the same.
I also ran the following command ls -l /usr/local/lib/libgsl*
and got the following output:
-rw-r--r-- 1 root root 23265766 /usr/local/lib/libgsl.a
-rw-r--r-- 1 root root 1893050 /usr/local/lib/libgslcblas.a
-rwxr-xr-x 1 root root 949 /usr/local/lib/libgslcblas.la
lrwxrwxrwx 1 root root 20 /usr/local/lib/libgslcblas.so -> libgslcblas.so.0.0.0
lrwxrwxrwx 1 root root 20 /usr/local/lib/libgslcblas.so.0 -> libgslcblas.so.0.0.0
-rwxr-xr-x 1 root root 1098776 /usr/local/lib/libgslcblas.so.0.0.0
-rwxr-xr-x 1 root root 918 /usr/local/lib/libgsl.la
lrwxrwxrwx 1 root root 16 /usr/local/lib/libgsl.so -> libgsl.so.25.0.0
lrwxrwxrwx 1 root root 16 /usr/local/lib/libgsl.so.25 -> libgsl.so.25.0.0
-rwxr-xr-x 1 root root 13525872 /usr/local/lib/libgsl.so.25.0.0