I have installed cuckoo and all the dependencies and have also created VM using virtual box.
I am getting an error "OSError: /usr/lib/libyara.so: cannot open shared object file: No such file or directory"
whenever i try to run cuckoo.py using python
I have tried searching in all forums and also tested whether yara is installed properly. It seems to be working fine using terminal. Checked that libyara.so is present in /usr/local/lib and python or cuckoo is checking in /usr/lib/
Also tried updating local library using
sudo echo "/usr/local/lib" >> /etc/ld.so.conf
sudo ldconfig
I have installed yara using tar ball. Have also used --enable-cuckoo --enable-magic args too.
Where might have I gone wrong?
Configuration of my system: Ubuntu 16.04; python 2.7; yara 3.4.0
Had a similar issue but mine was stored in /usr/local/lib/python2.7/dist-packages/usr/lib/libyara.so
Creating the soft-link to that Location solved the issue
ln -s /usr/local/lib/python2.7/dist-packages/usr/lib/libyara.so /usr/lib/libyara.so
According to official documentation, It means that the loader is not finding the libyara
library which is located in /usr/local/lib
. In some Linux flavors the loader doesn’t look for libraries in this path by default, we must instruct him to do so by adding /usr/local/lib
to the loader configuration file /etc/ld.so.conf
:
sudo echo "/usr/local/lib" >> /etc/ld.so.conf
sudo ldconfig
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With