Thursday, April 24, 2014

paramiko pexpect setup in mac

To install paramiko on mac . You will have to give the following command


sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install PyCrypto


 sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install paramiko

OR
WITH easy_install you can do something like below

sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future  easy_install pycrypto





http://stackoverflow.com/questions/19623267/importerror-no-module-named-crypto-cipher
http://kaspermunck.github.io/2014/03/fixing-clang-error/



http://jessenoller.com/blog/2009/02/05/ssh-programming-with-paramiko-completely-different


cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -Wall -Wstrict-prototypes -Wshorten-64-to-32 -fwrapv -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/MD2.c -o build/temp.macosx-10.9-intel-2.7/src/MD2.o

clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]

clang: note: this will be a hard error (cannot be downgraded to a warning) in the future

error: command 'cc' failed with exit status 1


No comments: