mustangV / yara-project

Automatically exported from code.google.com/p/yara-project
Apache License 2.0
0 stars 0 forks source link

/usr/bin/ld: error: cannot find -lyara #81

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.yara 1.7 installed .
2.while installing yara-python 1.7 

shows following logs:
______________________________________________
root@upvan111:/home/upvan111/yara-python-1.7# python setup.py build
running build
running build_ext
building 'yara' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -I/usr/local/include -I/usr/include/python2.7 -c 
yara-python.c -o build/temp.linux-x86_64-2.7/yara-python.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions 
-Wl,-z,relro build/temp.linux-x86_64-2.7/yara-python.o -lyara -lpcre -o 
build/lib.linux-x86_64-2.7/yara.so
/usr/bin/ld: error: cannot find -lyara
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
root@upvan111:/home/upvan111/yara-python-1.7# python setup.py install
running install
running build
running build_ext
building 'yara' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -I/usr/local/include -I/usr/include/python2.7 -c 
yara-python.c -o build/temp.linux-x86_64-2.7/yara-python.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions 
-Wl,-z,relro build/temp.linux-x86_64-2.7/yara-python.o -lyara -lpcre -o 
build/lib.linux-x86_64-2.7/yara.so
/usr/bin/ld: error: cannot find -lyara
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
________________________________________________________________________

3. where am i doing it wrong . i have folllowed all the steps given in 
installation guide . please help .

What version of the product are you using? On what operating system?
Ubuntu 12.04 LTS , yara-python 1.7

Original issue reported on code.google.com by upvan...@gmail.com on 9 Apr 2013 at 4:09

GoogleCodeExporter commented 8 years ago
Could you tell me the steps you follow to install yara?

Original comment by plus...@gmail.com on 23 May 2013 at 1:54

GoogleCodeExporter commented 8 years ago
I followed the steps mentioned in document README  .
1.downloaded yara 1.7 and untar-ed it <tar -xvzf file.tar.gz>
2. $python setup.py install

Original comment by upvan...@gmail.com on 23 May 2013 at 4:09

GoogleCodeExporter commented 8 years ago
Just untar-ed?  Did you executed ./configure & make?

Original comment by vmalva...@virustotal.com on 23 May 2013 at 8:42

GoogleCodeExporter commented 8 years ago
$python setup.py build 

i followed everything mentioned in doc. i got this error at this stage itself. 
i have also mentioned the execution sequence in my previous mails . please tell 
me what to do to install it, with this "-lyara missing"  problem fixed.
thanks in advance , 
Upvan

Original comment by upvan...@gmail.com on 24 May 2013 at 3:27