Open GoogleCodeExporter opened 9 years ago
Actually, my mistake, the .bash_profile edit did work, but the next step hit a
gcc error:
pylibpcap-0.6.2 user$ sudo python setup.py install
running install
running build
running build_ext
building '_pcapmodule' extension
creating build
creating build/temp.macosx-10.6-universal-2.6
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall
-Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -arch x86_64 -pipe
-DSWIG_COBJECT_TYPES
-I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c
pcap.c -o build/temp.macosx-10.6-universal-2.6/pcap.o
pcap.c: In function ‘SWIG_Python_AddErrorMsg’:
pcap.c:859: warning: format not a string literal and no format arguments
/usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler
(/usr/bin/../libexec/gcc/darwin/ppc/as or
/usr/bin/../local/libexec/gcc/darwin/ppc/as) for architecture ppc not installed
Installed assemblers are:
/usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64
/usr/bin/../libexec/gcc/darwin/i386/as for architecture i386
pcap.c: In function ‘SWIG_Python_AddErrorMsg’:
pcap.c:859: warning: format not a string literal and no format arguments
pcap.c: In function ‘_wrap_delete_pcapObject’:
pcap.c:3466: warning: ‘argv[0]’ may be used uninitialized in this function
pcap.c: At top level:
pcap.c:4269: fatal error: error writing to -: Broken pipe
compilation terminated.
pcap.c: In function ‘SWIG_Python_AddErrorMsg’:
pcap.c:859: warning: format not a string literal and no format arguments
lipo: can't open input file: /var/tmp//ccovQDOQ.out (No such file or directory)
error: command 'gcc-4.2' failed with exit status 1
Why wouldn't it also solve the above issue?
Original comment by mxbndr
on 23 Dec 2011 at 4:33
OK, I realize I'm still talking to myself here but...
After putting
export ARCHFLAGS=”-arch i386 –arch x86_64”
in the .bash_profile
and replacing instances of
python setup.py install
with
env ARCHFLAGS="-arch i386 -arch x86_64" python setup.py install
everything SEEMS to install properly.
Here's the juicy bit:
cpyrit_cuda username$ sudo LDFLAGS=-L/usr/local/cuda/lib env ARCHFLAGS="-arch
i386 -arch x86_64" python setup.py install
running install
running build
running build_ext
Skipping rebuild of Nvidia CUDA kernel ...
Building modules...
building 'cpyrit._cpyrit_cuda' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall
-Wstrict-prototypes -DENABLE_DTRACE -pipe -arch i386 -arch x86_64
-I/usr/local/cuda/include
-I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c
_cpyrit_cuda.c -o build/temp.macosx-10.6-universal-2.6/_cpyrit_cuda.o -Wall
-fno-strict-aliasing -DVERSION="0.4.1-dev (svn r308)"
creating build/lib.macosx-10.6-universal-2.6
creating build/lib.macosx-10.6-universal-2.6/cpyrit
gcc-4.2 -Wl,-F. -bundle -undefined dynamic_lookup -L/usr/local/cuda/lib -arch
i386 -arch x86_64 build/temp.macosx-10.6-universal-2.6/_cpyrit_cuda.o -lcrypto
-lcuda -lz -o build/lib.macosx-10.6-universal-2.6/cpyrit/_cpyrit_cuda.so
running install_lib
copying build/lib.macosx-10.6-universal-2.6/cpyrit/_cpyrit_cuda.so ->
/Library/Python/2.6/site-packages/cpyrit
running install_egg_info
Removing
/Library/Python/2.6/site-packages/cpyrit_cuda-0.4.1_dev._svn.r308_-py2.6.egg-inf
o
Writing
/Library/Python/2.6/site-packages/cpyrit_cuda-0.4.1_dev._svn.r308_-py2.6.egg-inf
o
MacMini-Business:cpyrit_cuda username$ pyrit list_cores-bash: pyrit: command
not found
MacMini-Business:cpyrit_cuda username$ cd ..
MacMini-Business:pyrit-read-only username$ cd ..
MacMini-Business:~ username$ cd ..
MacMini-Business:Users username$ cd ..
MacMini-Business:/ username$ cd ..
MacMini-Business:/ username$ cd ..
MacMini-Business:/ username$ pyrit list_cores-bash: pyrit: command not found
MacMini-Business:/ username$
And the location of the files (I don't know if it is correct):
MacMini-Business:/ username$ cd /Library/Python/2.6/site-packages
MacMini-Business:site-packages username$ ls
README dnet.so pyrit_cli.py
_pcapmodule.so pcap.py pyrit_cli.pyc
cpyrit pcap.pyc pyrit_cli.pyo
cpyrit_cuda-0.4.1_dev._svn.r308_-py2.6.egg-info pylibpcap-0.6.2-py2.6.egg-info
scapy
dnet-1.12-py2.6.egg-info pyrit-0.4.1_dev._svn.r308_-py2.6.egg-info
scapy-2.1.0-py2.6.egg-info
I know I must be doing something wrong somewhere, but I'm unsure of what the
expected output should be, so it's hard to compare my results to anything,
especially when there are no explicit errors anymore. I suspect it has
something to do with where my files are being installed to....
Original comment by mxbndr
on 26 Dec 2011 at 8:48
Here's something really interesting. I can drag
/Users/username/pyrit-0.3.0/build/scripts-2.6/pyrit into the Terminal window
and it runs normally then. Even detects the GPU cores with list_cores. But I
can't run it as a command
pyrit
even when in that folder. There is also another pyrit UNIX executable 2 folders
back, in
/pyrit-0.3.0
but I can't run that one.
Will try to attack using this drag method...
Original comment by mxbndr
on 26 Dec 2011 at 2:32
I believe this issue is resolved. I cannot seem to edit my .profile with the
proper path in order to get
pyrit
working as a standalone command, but when using it the old fashioned way the
program works (AFAIK).
Many thanks for putting up with my long and lonely processing.
Original comment by mxbndr
on 27 Dec 2011 at 8:18
Original issue reported on code.google.com by
mxbndr
on 23 Dec 2011 at 4:14