Advertisement
xtropx

error installing paramiko

Oct 17th, 2014
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.60 KB | None | 0 0
  1. {14-10-17 4:32}expect:~/scripts/python root# cat /root/.pip/pip.log
  2. ------------------------------------------------------------
  3. /usr/bin/pip run on Fri Oct 17 04:30:19 2014
  4. Requirement already satisfied (use --upgrade to upgrade): paramiko in /usr/lib/python2.6/site-packages
  5.  
  6. Downloading/unpacking pycrypto>=2.1,!=2.4 (from paramiko)
  7.  
  8. Running setup.py egg_info for package pycrypto
  9.  
  10. running egg_info
  11. writing pip-egg-info/pycrypto.egg-info/PKG-INFO
  12. writing top-level names to pip-egg-info/pycrypto.egg-info/top_level.txt
  13. writing dependency_links to pip-egg-info/pycrypto.egg-info/dependency_links.txt
  14. warning: manifest_maker: standard file '-c' not found
  15. reading manifest file 'pip-egg-info/pycrypto.egg-info/SOURCES.txt'
  16. reading manifest template 'MANIFEST.in'
  17. writing manifest file 'pip-egg-info/pycrypto.egg-info/SOURCES.txt'
  18. Source in /tmp/pip-build-root/pycrypto has version 2.6.1, which satisfies requirement pycrypto>=2.1,!=2.4 (from paramiko)
  19. Downloading/unpacking ecdsa>=0.11 (from paramiko)
  20.  
  21. Running setup.py egg_info for package ecdsa
  22.  
  23. running egg_info
  24. writing pip-egg-info/ecdsa.egg-info/PKG-INFO
  25. writing top-level names to pip-egg-info/ecdsa.egg-info/top_level.txt
  26. writing dependency_links to pip-egg-info/ecdsa.egg-info/dependency_links.txt
  27. warning: manifest_maker: standard file '-c' not found
  28. reading manifest file 'pip-egg-info/ecdsa.egg-info/SOURCES.txt'
  29. reading manifest template 'MANIFEST.in'
  30. writing manifest file 'pip-egg-info/ecdsa.egg-info/SOURCES.txt'
  31. Source in /tmp/pip-build-root/ecdsa has version 0.11, which satisfies requirement ecdsa>=0.11 (from paramiko)
  32. Installing collected packages: pycrypto, ecdsa
  33.  
  34. Running setup.py install for pycrypto
  35.  
  36. Running command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build-root/pycrypto/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-F366o6-record/install-record.txt --single-version-externally-managed
  37. running install
  38. running build
  39. running build_py
  40. running build_ext
  41. running build_configure
  42. checking for gcc... gcc
  43.  
  44. checking whether the C compiler works... yes
  45.  
  46. checking for C compiler default output file name... a.out
  47.  
  48. checking for suffix of executables...
  49.  
  50. checking whether we are cross compiling... no
  51.  
  52. checking for suffix of object files... o
  53.  
  54. checking whether we are using the GNU C compiler... yes
  55.  
  56. checking whether gcc accepts -g... yes
  57.  
  58. checking for gcc option to accept ISO C89... none needed
  59.  
  60. checking for __gmpz_init in -lgmp... no
  61.  
  62. checking for __gmpz_init in -lmpir... no
  63.  
  64. checking whether mpz_powm is declared... no
  65.  
  66. checking whether mpz_powm_sec is declared... no
  67.  
  68. checking how to run the C preprocessor... gcc -E
  69.  
  70. checking for grep that handles long lines and -e... /bin/grep
  71.  
  72. checking for egrep... /bin/grep -E
  73.  
  74. checking for ANSI C header files... yes
  75.  
  76. checking for sys/types.h... yes
  77.  
  78. checking for sys/stat.h... yes
  79.  
  80. checking for stdlib.h... yes
  81.  
  82. checking for string.h... yes
  83.  
  84. checking for memory.h... yes
  85.  
  86. checking for strings.h... yes
  87.  
  88. checking for inttypes.h... yes
  89.  
  90. checking for stdint.h... yes
  91.  
  92. checking for unistd.h... yes
  93.  
  94. checking for inttypes.h... (cached) yes
  95.  
  96. checking limits.h usability... yes
  97.  
  98. checking limits.h presence... yes
  99.  
  100. checking for limits.h... yes
  101.  
  102. checking stddef.h usability... yes
  103.  
  104. checking stddef.h presence... yes
  105.  
  106. checking for stddef.h... yes
  107.  
  108. checking for stdint.h... (cached) yes
  109.  
  110. checking for stdlib.h... (cached) yes
  111.  
  112. checking for string.h... (cached) yes
  113.  
  114. checking wchar.h usability... yes
  115.  
  116. checking wchar.h presence... yes
  117.  
  118. checking for wchar.h... yes
  119.  
  120. checking for inline... inline
  121.  
  122. checking for int16_t... yes
  123.  
  124. checking for int32_t... yes
  125.  
  126. checking for int64_t... yes
  127.  
  128. checking for int8_t... yes
  129.  
  130. checking for size_t... yes
  131.  
  132. checking for uint16_t... yes
  133.  
  134. checking for uint32_t... yes
  135.  
  136. checking for uint64_t... yes
  137.  
  138. checking for uint8_t... yes
  139.  
  140. checking for stdlib.h... (cached) yes
  141.  
  142. checking for GNU libc compatible malloc... yes
  143.  
  144. checking for memmove... yes
  145.  
  146. checking for memset... yes
  147.  
  148. configure: creating ./config.status
  149.  
  150. config.status: creating src/config.h
  151.  
  152. warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
  153.  
  154. building 'Crypto.Hash._MD2' extension
  155.  
  156. creating build/temp.linux-x86_64-2.6
  157. creating build/temp.linux-x86_64-2.6/src
  158. gcc -pthread -fno-strict-aliasing -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/usr/include/python2.6 -c src/MD2.c -o build/temp.linux-x86_64-2.6/src/MD2.o
  159.  
  160. src/MD2.c:31:20: error: Python.h: No such file or directory
  161.  
  162. src/MD2.c:131: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
  163.  
  164. In file included from src/MD2.c:147:
  165.  
  166. src/hash_template.c:48: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
  167.  
  168. src/hash_template.c:59: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyTypeObject’
  169.  
  170. src/hash_template.c: In function ‘newALGobject’:
  171.  
  172. src/hash_template.c:69: warning: implicit declaration of function ‘PyObject_New’
  173.  
  174. src/hash_template.c:69: error: expected expression before ‘ALGobject’
  175.  
  176. src/hash_template.c: At top level:
  177.  
  178. src/hash_template.c:76: error: expected ‘)’ before ‘*’ token
  179.  
  180. src/hash_template.c:91: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
  181.  
  182. src/hash_template.c:110: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
  183.  
  184. src/hash_template.c:122: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
  185.  
  186. src/hash_template.c:162: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
  187.  
  188. src/hash_template.c:188: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
  189.  
  190. src/hash_template.c:190: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ALG_methods’
  191.  
  192. src/hash_template.c:199: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
  193.  
  194. src/hash_template.c:225: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ALGtype’
  195.  
  196. src/hash_template.c:271: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
  197.  
  198. src/hash_template.c:304: error: array type has incomplete element type
  199.  
  200. src/hash_template.c:305: error: ‘PyCFunction’ undeclared here (not in a function)
  201.  
  202. src/hash_template.c:305: error: expected ‘}’ before ‘ALG_new’
  203.  
  204. src/hash_template.c: In function ‘init_MD2’:
  205.  
  206. src/hash_template.c:339: error: ‘PyObject’ undeclared (first use in this function)
  207.  
  208. src/hash_template.c:339: error: (Each undeclared identifier is reported only once
  209.  
  210. src/hash_template.c:339: error: for each function it appears in.)
  211.  
  212. src/hash_template.c:339: error: ‘m’ undeclared (first use in this function)
  213.  
  214. src/hash_template.c:351: error: ‘ALGtype’ undeclared (first use in this function)
  215.  
  216. src/hash_template.c:351: error: ‘PyType_Type’ undeclared (first use in this function)
  217.  
  218. src/hash_template.c:352: warning: implicit declaration of function ‘Py_InitModule’
  219.  
  220. src/hash_template.c:356: error: ‘o’ undeclared (first use in this function)
  221.  
  222. src/hash_template.c:356: warning: implicit declaration of function ‘PyInt_FromLong’
  223.  
  224. src/hash_template.c:356: warning: implicit declaration of function ‘PyDict_SetItemString’
  225.  
  226. src/hash_template.c:356: warning: implicit declaration of function ‘PyModule_GetDict’
  227.  
  228. src/hash_template.c:356: warning: implicit declaration of function ‘Py_DECREF’
  229.  
  230. src/hash_template.c:360: warning: implicit declaration of function ‘PyErr_Occurred’
  231.  
  232. src/hash_template.c:361: warning: implicit declaration of function ‘Py_FatalError’
  233.  
  234. error: command 'gcc' failed with exit status 1
  235.  
  236. Complete output from command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build-root/pycrypto/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-F366o6-record/install-record.txt --single-version-externally-managed:
  237.  
  238. running install
  239.  
  240. running build
  241.  
  242. running build_py
  243.  
  244. running build_ext
  245.  
  246. running build_configure
  247.  
  248. checking for gcc... gcc
  249.  
  250. checking whether the C compiler works... yes
  251.  
  252. checking for C compiler default output file name... a.out
  253.  
  254. checking for suffix of executables...
  255.  
  256. checking whether we are cross compiling... no
  257.  
  258. checking for suffix of object files... o
  259.  
  260. checking whether we are using the GNU C compiler... yes
  261.  
  262. checking whether gcc accepts -g... yes
  263.  
  264. checking for gcc option to accept ISO C89... none needed
  265.  
  266. checking for __gmpz_init in -lgmp... no
  267.  
  268. checking for __gmpz_init in -lmpir... no
  269.  
  270. checking whether mpz_powm is declared... no
  271.  
  272. checking whether mpz_powm_sec is declared... no
  273.  
  274. checking how to run the C preprocessor... gcc -E
  275.  
  276. checking for grep that handles long lines and -e... /bin/grep
  277.  
  278. checking for egrep... /bin/grep -E
  279.  
  280. checking for ANSI C header files... yes
  281.  
  282. checking for sys/types.h... yes
  283.  
  284. checking for sys/stat.h... yes
  285.  
  286. checking for stdlib.h... yes
  287.  
  288. checking for string.h... yes
  289.  
  290. checking for memory.h... yes
  291.  
  292. checking for strings.h... yes
  293.  
  294. checking for inttypes.h... yes
  295.  
  296. checking for stdint.h... yes
  297.  
  298. checking for unistd.h... yes
  299.  
  300. checking for inttypes.h... (cached) yes
  301.  
  302. checking limits.h usability... yes
  303.  
  304. checking limits.h presence... yes
  305.  
  306. checking for limits.h... yes
  307.  
  308. checking stddef.h usability... yes
  309.  
  310. checking stddef.h presence... yes
  311.  
  312. checking for stddef.h... yes
  313.  
  314. checking for stdint.h... (cached) yes
  315.  
  316. checking for stdlib.h... (cached) yes
  317.  
  318. checking for string.h... (cached) yes
  319.  
  320. checking wchar.h usability... yes
  321.  
  322. checking wchar.h presence... yes
  323.  
  324. checking for wchar.h... yes
  325.  
  326. checking for inline... inline
  327.  
  328. checking for int16_t... yes
  329.  
  330. checking for int32_t... yes
  331.  
  332. checking for int64_t... yes
  333.  
  334. checking for int8_t... yes
  335.  
  336. checking for size_t... yes
  337.  
  338. checking for uint16_t... yes
  339.  
  340. checking for uint32_t... yes
  341.  
  342. checking for uint64_t... yes
  343.  
  344. checking for uint8_t... yes
  345.  
  346. checking for stdlib.h... (cached) yes
  347.  
  348. checking for GNU libc compatible malloc... yes
  349.  
  350. checking for memmove... yes
  351.  
  352. checking for memset... yes
  353.  
  354. configure: creating ./config.status
  355.  
  356. config.status: creating src/config.h
  357.  
  358. warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
  359.  
  360. building 'Crypto.Hash._MD2' extension
  361.  
  362. creating build/temp.linux-x86_64-2.6
  363.  
  364. creating build/temp.linux-x86_64-2.6/src
  365.  
  366. gcc -pthread -fno-strict-aliasing -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/usr/include/python2.6 -c src/MD2.c -o build/temp.linux-x86_64-2.6/src/MD2.o
  367.  
  368. src/MD2.c:31:20: error: Python.h: No such file or directory
  369.  
  370. src/MD2.c:131: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
  371.  
  372. In file included from src/MD2.c:147:
  373.  
  374. src/hash_template.c:48: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
  375.  
  376. src/hash_template.c:59: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyTypeObject’
  377.  
  378. src/hash_template.c: In function ‘newALGobject’:
  379.  
  380. src/hash_template.c:69: warning: implicit declaration of function ‘PyObject_New’
  381.  
  382. src/hash_template.c:69: error: expected expression before ‘ALGobject’
  383.  
  384. src/hash_template.c: At top level:
  385.  
  386. src/hash_template.c:76: error: expected ‘)’ before ‘*’ token
  387.  
  388. src/hash_template.c:91: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
  389.  
  390. src/hash_template.c:110: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
  391.  
  392. src/hash_template.c:122: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
  393.  
  394. src/hash_template.c:162: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
  395.  
  396. src/hash_template.c:188: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
  397.  
  398. src/hash_template.c:190: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ALG_methods’
  399.  
  400. src/hash_template.c:199: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
  401.  
  402. src/hash_template.c:225: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ALGtype’
  403.  
  404. src/hash_template.c:271: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
  405.  
  406. src/hash_template.c:304: error: array type has incomplete element type
  407.  
  408. src/hash_template.c:305: error: ‘PyCFunction’ undeclared here (not in a function)
  409.  
  410. src/hash_template.c:305: error: expected ‘}’ before ‘ALG_new’
  411.  
  412. src/hash_template.c: In function ‘init_MD2’:
  413.  
  414. src/hash_template.c:339: error: ‘PyObject’ undeclared (first use in this function)
  415.  
  416. src/hash_template.c:339: error: (Each undeclared identifier is reported only once
  417.  
  418. src/hash_template.c:339: error: for each function it appears in.)
  419.  
  420. src/hash_template.c:339: error: ‘m’ undeclared (first use in this function)
  421.  
  422. src/hash_template.c:351: error: ‘ALGtype’ undeclared (first use in this function)
  423.  
  424. src/hash_template.c:351: error: ‘PyType_Type’ undeclared (first use in this function)
  425.  
  426. src/hash_template.c:352: warning: implicit declaration of function ‘Py_InitModule’
  427.  
  428. src/hash_template.c:356: error: ‘o’ undeclared (first use in this function)
  429.  
  430. src/hash_template.c:356: warning: implicit declaration of function ‘PyInt_FromLong’
  431.  
  432. src/hash_template.c:356: warning: implicit declaration of function ‘PyDict_SetItemString’
  433.  
  434. src/hash_template.c:356: warning: implicit declaration of function ‘PyModule_GetDict’
  435.  
  436. src/hash_template.c:356: warning: implicit declaration of function ‘Py_DECREF’
  437.  
  438. src/hash_template.c:360: warning: implicit declaration of function ‘PyErr_Occurred’
  439.  
  440. src/hash_template.c:361: warning: implicit declaration of function ‘Py_FatalError’
  441.  
  442. error: command 'gcc' failed with exit status 1
  443.  
  444. ----------------------------------------
  445.  
  446. Command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build-root/pycrypto/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-F366o6-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip-build-root/pycrypto
  447.  
  448. Exception information:
  449. Traceback (most recent call last):
  450. File "/usr/lib/python2.6/site-packages/pip/basecommand.py", line 139, in main
  451. status = self.run(options, args)
  452. File "/usr/lib/python2.6/site-packages/pip/commands/install.py", line 271, in run
  453. requirement_set.install(install_options, global_options, root=options.root_path)
  454. File "/usr/lib/python2.6/site-packages/pip/req.py", line 1185, in install
  455. requirement.install(install_options, global_options, *args, **kwargs)
  456. File "/usr/lib/python2.6/site-packages/pip/req.py", line 592, in install
  457. cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
  458. File "/usr/lib/python2.6/site-packages/pip/util.py", line 662, in call_subprocess
  459. % (command_desc, proc.returncode, cwd))
  460. InstallationError: Command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build-root/pycrypto/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-F366o6-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip-build-root/pycrypto
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement