Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issue: “OSError: /usr/lib/libyara.so: cannot open shared object file: No such file or directory” while running cuckoo.py

Tags:

ubuntu

yara

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

like image 332
user3009648 Avatar asked Oct 15 '25 15:10

user3009648


2 Answers

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
like image 157
RandomUser Avatar answered Oct 18 '25 16:10

RandomUser


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
like image 44
Helton Wernik Avatar answered Oct 18 '25 15:10

Helton Wernik



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!