paralax / pyssdeep

python bindings for kornblum's ssdeep fuzzy hasher
1 stars 3 forks source link

Can't compile #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Downloaded ssdeep-2.1 source
  http://downloads.sourceforge.net/project/ssdeep/ssdeep/ssdeep-2.1/ssdeep-
2.1.tar.gz?use_mirror=voxel

2. extracted to ~/ssdeep-2.1
3. ran ./configure
4. cd pyssdeep 
5. python setup.py build FAILS

What is the expected output? What do you see instead?

erik@beatbox:~/ssdeep-2.1/pyssdeep$ python setup.py build
running build
running build_ext
building 'ssdeepmodule' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes 
-fPIC -I.. -I/usr/include/python2.4 -c ssdeep.c -o build/temp.linux-i686-
2.4/ssdeep.o
gcc: ssdeep.c: No such file or directory
gcc: no input files
error: command 'gcc' failed with exit status 1

What version of the product are you using? On what operating system?

  Latest from SVN as of 8:00P, Sunday Aug 27 CDT.

Please provide any additional information below.

  Running on debian 4.0 with gcc 4.1.2 and python 2.4.4

Thanks for the bindings man!! Please let me know how I can help.

Original issue reported on code.google.com by erik....@gmail.com on 28 Sep 2009 at 3:02

GoogleCodeExporter commented 9 years ago

  Just so everyone knows:
    $ make ssdeep.c
    $ make all

  Thats where ssdeep.c comes from.

Original comment by erik....@gmail.com on 4 Nov 2009 at 4:44

GoogleCodeExporter commented 9 years ago
oddly "make" alone works for me.

i also checked in the .c file so pyrex shouldn't be needed any more. 

Original comment by jose.mon...@gmail.com on 20 Apr 2010 at 7:12

GoogleCodeExporter commented 9 years ago
Also note you get the 'fuzzy.h' file from the latest version of ssdeep here:
  http://ssdeep.sourceforge.net/

Original comment by erik....@gmail.com on 17 Dec 2010 at 9:38

GoogleCodeExporter commented 9 years ago
When I install I do not get the pyssdeep directory. How do I install this?

I've installed (I think)

drwxr-xr-x 9 fis fis     4096 2011-03-03 11:30 Pyrex-0.9.9
-rw-r--r-- 1 fis fis 20572028 2011-03-02 14:36 sampling-wa-XviD.avi
drwxr-xr-x 4 fis fis     4096 2011-03-05 04:08 ssdeep-2.6
-rw-r--r-- 1 fis fis      670 2011-03-02 17:17 UltraEdit-wordfile-1.4.txt
drwxr-xr-x 4 fis fis     4096 2011-03-04 10:15 yara-1.4
drwxr-xr-x 3 fis fis     4096 2011-03-04 10:21 yara-python-1.4a
-rw-r--r-- 1 fis fis   251227 2011-03-02 17:18 YARA User's Manual 1.4.pdf

What am I doing wrong?

In my ssdeep-2.6 directory I have:
fis@ubuntu:~/Downloads/ssdeep-2.6$ ls -l
total 2024
-rw-r--r-- 1 fis fis 338306 2010-09-27 16:56 aclocal.m4
-rw-r--r-- 1 fis fis     37 2008-07-26 04:50 AUTHORS
-rw-r--r-- 1 fis fis   4427 2010-07-15 10:00 ChangeLog
-rw-r--r-- 1 fis fis  43668 2008-07-26 04:50 config.guess
-rw-r--r-- 1 fis fis   3183 2011-03-03 11:28 config.h
-rw-r--r-- 1 fis fis   2938 2010-09-27 16:56 config.h.in
-rw-r--r-- 1 fis fis  28896 2011-03-04 10:23 config.log
-rwxr-xr-x 1 fis fis  62193 2011-03-04 10:23 config.status
-rw-r--r-- 1 fis fis  32151 2008-07-26 04:50 config.sub
-rwxr-xr-x 1 fis fis 422500 2010-09-27 16:58 configure
-rwxr-xr-x 1 fis fis   1429 2010-09-27 16:56 configure.ac
-rw-r--r-- 1 fis fis  18002 2008-07-26 04:50 COPYING
-rw-r--r-- 1 fis fis   3225 2008-07-26 04:50 cycles.c
-rw-r--r-- 1 fis fis   7428 2011-03-03 11:29 cycles.o
-rw-r--r-- 1 fis fis  17574 2008-07-26 04:50 depcomp
-rw-r--r-- 1 fis fis  12274 2009-07-11 13:17 dig.c
-rw-r--r-- 1 fis fis  13640 2011-03-03 11:29 dig.o
-rw-r--r-- 1 fis fis   7661 2008-07-26 04:50 edit_dist.c
-rw-r--r-- 1 fis fis    277 2011-03-03 11:28 edit_dist.lo
-rw-r--r-- 1 fis fis   6868 2011-03-03 11:28 edit_dist.o
-rw-r--r-- 1 fis fis   2047 2010-07-15 15:11 engine.c
-rw-r--r-- 1 fis fis   7784 2011-03-03 11:29 engine.o
-rw-r--r-- 1 fis fis    915 2010-07-15 09:59 FILEFORMAT
-rw-r--r-- 1 fis fis   4332 2008-07-26 04:50 find-file-size.c
-rw-r--r-- 1 fis fis    292 2011-03-03 11:28 find-file-size.lo
-rw-r--r-- 1 fis fis   5896 2011-03-03 11:28 find-file-size.o
-rw-r--r-- 1 fis fis  15558 2010-03-19 08:10 fuzzy.c
-rw-r--r-- 1 fis fis   3847 2010-09-27 17:05 fuzzy.h
-rw-r--r-- 1 fis fis    265 2011-03-03 11:28 fuzzy.lo
-rw-r--r-- 1 fis fis  17548 2011-03-03 11:28 fuzzy.o
-rw-r--r-- 1 fis fis   8405 2010-07-15 15:11 helpers.c
-rw-r--r-- 1 fis fis  13892 2011-03-03 11:29 helpers.o
-rw-r--r-- 1 fis fis   9416 2008-07-26 04:50 INSTALL
-rwxr-xr-x 1 fis fis  13184 2008-07-26 04:50 install-sh
-rw-r--r-- 1 fis fis    938 2011-03-03 11:29 libfuzzy.la
-rwxr-xr-x 1 fis fis 292693 2011-03-04 10:23 libtool
-rwxr-xr-x 1 fis fis 282745 2010-09-27 17:04 ltmain.sh
-rw-r--r-- 1 fis fis   7936 2010-03-19 08:10 main.c
-rw-r--r-- 1 fis fis   7977 2010-07-15 15:11 main.h
-rw-r--r-- 1 fis fis  13352 2011-03-03 11:29 main.o
-rw-r--r-- 1 fis fis  29703 2011-03-04 10:23 Makefile
-rwxr-xr-x 1 fis fis   1629 2009-07-11 13:25 Makefile.am
-rw-r--r-- 1 fis fis  30349 2010-09-27 17:04 Makefile.in
-rw-r--r-- 1 fis fis   8984 2010-09-27 17:05 match.c
-rw-r--r-- 1 fis fis  14424 2011-03-03 11:29 match.o
-rw-r--r-- 1 fis fis  11135 2008-07-26 04:50 missing
-rw-r--r-- 1 fis fis   3259 2010-09-27 17:03 NEWS
-rw-r--r-- 1 fis fis   3096 2010-05-06 05:06 README
-rw-r--r-- 1 fis fis   3444 2010-03-19 08:10 sample.c
-rwxr-xr-x 1 fis fis  78526 2011-03-03 11:29 ssdeep
-rw-r--r-- 1 fis fis   4685 2010-09-27 17:02 ssdeep.1
-rw-r--r-- 1 fis fis    320 2008-07-26 04:50 ssdeep.h
-rw-r--r-- 1 fis fis     23 2011-03-04 10:23 stamp-h1
-rw-r--r-- 1 fis fis   1725 2008-07-26 04:50 tchar-local.h
-rw-r--r-- 1 fis fis    259 2008-07-26 04:50 TODO
-rw-r--r-- 1 fis fis   2601 2010-07-15 15:11 ui.c
-rw-r--r-- 1 fis fis  10152 2011-03-03 11:29 ui.o

I've done:

./configure
make
make install

How do I install pyssdeep?

Original comment by jbde...@gmail.com on 5 Mar 2011 at 12:29

GoogleCodeExporter commented 9 years ago
You need to checkout the pyssdeep source into your 'ssdeep' source directory, 
build ssdeep and then build pyssdeep:

$ pwd
/home/erik/ssdeep-2.6
$ ./configure && make
...
$ svn co http://pyssdeep.googlecode.com/svn/trunk/ pyssdeep-read-only
...
$ cd pyssdeep-read-only
$ python setup.py build

Original comment by erik....@gmail.com on 7 Mar 2011 at 4:27

GoogleCodeExporter commented 9 years ago
i haven't yet tested ssdeep 2.6, do let me know how it goes.

-- jose

Original comment by jose.mon...@gmail.com on 8 Mar 2011 at 12:30

GoogleCodeExporter commented 9 years ago
I had lots of errors on building even when using ssdeep-2.2, I fixed the issues 
by installing python-dev headers. 

In Ubuntu:

sudo apt-get install python-dev

Original comment by schenette@gmail.com on 12 Jun 2011 at 6:33

GoogleCodeExporter commented 9 years ago
I had a similar error, pip install pyssdeep was failing with fatal error: 
fuzzy.h not found.

It can be fixed by installing "libfuzzy-dev" (Ubuntu 12.04.4) via apt.

Original comment by ikoniaris on 21 Jul 2014 at 4:47