انجمن‌های فارسی اوبونتو

لطفاً به انجمن‌ها وارد شده و یا جهت ورود ثبت‌نام نمائید

لطفاً جهت ورود نام کاربری و رمز عبورتان را وارد نمائید


توزیع گنو/لینوکس اوبونتو ۲۰ ساله شد 🎉

نویسنده موضوع: کمک در نصب mitmproxy  (دفعات بازدید: 1724 بار)

0 کاربر و 3 مهمان درحال مشاهده موضوع.

آفلاین sardarn

  • Newbie
  • *
  • ارسال: 3
کمک در نصب mitmproxy
« : 29 اسفند 1393، 11:43 ب‌ظ »
سلام

من وقتی می خوام mitmproxy نصب کنم طبق خود سایت با pip نصب می کنم و وسط نصب ارور در دسترسی می دهد.اگه ممکنه یک اموزش مرحله به مرحله بذارید.

ممنون

آفلاین دانیال بهزادی

  • ناظر انجمن
  • *
  • ارسال: 19713
  • جنسیت : پسر
  • Urahara Kiesuke
    • وبلاگ
پاسخ : کمک در نصب mitmproxy
« پاسخ #1 : 01 فروردین 1394، 05:06 ق‌ظ »
با sudo اجرا کن!
اگه این ارسال بهت کمک کرد، دنبال دکمهٔ تشکر نگرد. به جاش تو هم به جامعهٔ آزادت کمک کن

آفلاین sardarn

  • Newbie
  • *
  • ارسال: 3
پاسخ : کمک در نصب mitmproxy
« پاسخ #2 : 02 فروردین 1394، 12:53 ب‌ظ »
سلام

با sudo هم اجرا کردم ارور داد.

ممنون

آفلاین دانیال بهزادی

  • ناظر انجمن
  • *
  • ارسال: 19713
  • جنسیت : پسر
  • Urahara Kiesuke
    • وبلاگ
پاسخ : کمک در نصب mitmproxy
« پاسخ #3 : 03 فروردین 1394، 09:00 ق‌ظ »
چه اروری می‌ده؟ متن کاملش رو بذار
اگه این ارسال بهت کمک کرد، دنبال دکمهٔ تشکر نگرد. به جاش تو هم به جامعهٔ آزادت کمک کن

آفلاین sardarn

  • Newbie
  • *
  • ارسال: 3
پاسخ : کمک در نصب mitmproxy
« پاسخ #4 : 07 فروردین 1394، 03:11 ب‌ظ »
سلام
کل متن هنگام نصب :

The directory '/home/ali/.cache/pip/log' or its parent directory is not owned by the current user and the debug log has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want the -H flag.
The directory '/home/ali/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want the -H flag.
The directory '/home/ali/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want the -H flag.
Collecting mitmproxy
  Downloading mitmproxy-0.11.3.tar.gz (6.2MB)
    100% |################################| 6.2MB 20kB/s
Collecting urwid>=1.1 (from mitmproxy)
  Downloading urwid-1.3.0.tar.gz (580kB)
    100% |################################| 581kB 45kB/s
Collecting pyasn1>0.1.2 (from mitmproxy)
  Downloading pyasn1-0.1.7.tar.gz (68kB)
    100% |################################| 69kB 77kB/s
Collecting tornado>=4.0.2 (from mitmproxy)
  Downloading tornado-4.1.tar.gz (332kB)
    100% |################################| 335kB 71kB/s
Collecting lxml>=3.3.6 (from mitmproxy)
  Downloading lxml-3.4.2.tar.gz (3.5MB)
    100% |################################| 3.5MB 41kB/s
    /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
      warnings.warn(msg)
    Building lxml version 3.4.2.
    Building without Cython.
    ERROR: /bin/sh: 1: xslt-config: not found
    ** make sure the development packages of libxml2 and libxslt are installed **
    Using build configuration of libxslt
Collecting pyOpenSSL>=0.14 (from mitmproxy)
  Downloading pyOpenSSL-0.14.tar.gz (128kB)
    100% |################################| 131kB 85kB/s
Requirement already satisfied (use --upgrade to upgrade): Pillow>=2.3.0 in /usr/lib/python2.7/dist-packages (from mitmproxy)
Collecting configargparse>=0.9.3 (from mitmproxy)
  Downloading ConfigArgParse-0.9.3.tar.gz
Collecting netlib<0.12,>=0.11 (from mitmproxy)
  Downloading netlib-0.11.2.tar.gz (43kB)
    100% |################################| 45kB 61kB/s
Collecting certifi (from tornado>=4.0.2->mitmproxy)
  Downloading certifi-14.05.14.tar.gz (168kB)
    100% |################################| 172kB 81kB/s
    /usr/local/lib/python2.7/dist-packages/setuptools/dist.py:282: UserWarning: Normalizing '14.05.14' to '14.5.14'
      normalized_version,
Collecting backports.ssl-match-hostname (from tornado>=4.0.2->mitmproxy)
  Downloading backports.ssl_match_hostname-3.4.0.2.tar.gz
Collecting cryptography>=0.2.1 (from pyOpenSSL>=0.14->mitmproxy)
  Downloading cryptography-0.8.1.tar.gz (268kB)
    100% |################################| 270kB 95kB/s
Requirement already satisfied (use --upgrade to upgrade): six>=1.5.2 in /usr/lib/python2.7/dist-packages (from pyOpenSSL>=0.14->mitmproxy)
Collecting passlib>=1.6.2 (from netlib<0.12,>=0.11->mitmproxy)
  Downloading passlib-1.6.2.tar.gz (408kB)
    100% |################################| 409kB 40kB/s
Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/local/lib/python2.7/dist-packages (from cryptography>=0.2.1->pyOpenSSL>=0.14->mitmproxy)
Collecting enum34 (from cryptography>=0.2.1->pyOpenSSL>=0.14->mitmproxy)
  Downloading enum34-1.0.4.tar.gz
Collecting cffi>=0.8 (from cryptography>=0.2.1->pyOpenSSL>=0.14->mitmproxy)
  Downloading cffi-0.9.2.tar.gz (209kB)
    100% |################################| 212kB 1.2MB/s
    Package libffi was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libffi.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libffi' found
    Package libffi was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libffi.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libffi' found
    Package libffi was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libffi.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libffi' found
    Package libffi was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libffi.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libffi' found
    Package libffi was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libffi.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libffi' found
Requirement already satisfied (use --upgrade to upgrade): pycparser in /usr/local/lib/python2.7/dist-packages (from cffi>=0.8->cryptography>=0.2.1->pyOpenSSL>=0.14->mitmproxy)
Installing collected packages: cffi, enum34, passlib, cryptography, backports.ssl-match-hostname, certifi, netlib, configargparse, pyOpenSSL, lxml, tornado, pyasn1, urwid, mitmproxy
  Running setup.py install for cffi
    Package libffi was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libffi.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libffi' found
    Package libffi was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libffi.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libffi' found
    Package libffi was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libffi.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libffi' found
    Package libffi was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libffi.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libffi' found
    Package libffi was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libffi.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libffi' found
    building '_cffi_backend' extension
    i686-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DUSE__THREAD -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python2.7 -c c/_cffi_backend.c -o build/temp.linux-i686-2.7/c/_cffi_backend.o
    c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory
     #include <Python.h>
                        ^
    compilation terminated.
    error: command 'i686-linux-gnu-gcc' failed with exit status 1
    Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-zIFtLW/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-oLiYhi-record/install-record.txt --single-version-externally-managed --compile:
    Package libffi was not found in the pkg-config search path.
   
    Perhaps you should add the directory containing `libffi.pc'
   
    to the PKG_CONFIG_PATH environment variable
   
    No package 'libffi' found
   
    Package libffi was not found in the pkg-config search path.
   
    Perhaps you should add the directory containing `libffi.pc'
   
    to the PKG_CONFIG_PATH environment variable
   
    No package 'libffi' found
   
    Package libffi was not found in the pkg-config search path.
   
    Perhaps you should add the directory containing `libffi.pc'
   
    to the PKG_CONFIG_PATH environment variable
   
    No package 'libffi' found
   
    Package libffi was not found in the pkg-config search path.
   
    Perhaps you should add the directory containing `libffi.pc'
   
    to the PKG_CONFIG_PATH environment variable
   
    No package 'libffi' found
   
    Package libffi was not found in the pkg-config search path.
   
    Perhaps you should add the directory containing `libffi.pc'
   
    to the PKG_CONFIG_PATH environment variable
   
    No package 'libffi' found
   
    running install
   
    running build
   
    running build_py
   
    creating build
   
    creating build/lib.linux-i686-2.7
   
    creating build/lib.linux-i686-2.7/cffi
   
    copying cffi/vengine_gen.py -> build/lib.linux-i686-2.7/cffi
   
    copying cffi/api.py -> build/lib.linux-i686-2.7/cffi
   
    copying cffi/__init__.py -> build/lib.linux-i686-2.7/cffi
   
    copying cffi/cparser.py -> build/lib.linux-i686-2.7/cffi
   
    copying cffi/ffiplatform.py -> build/lib.linux-i686-2.7/cffi
   
    copying cffi/backend_ctypes.py -> build/lib.linux-i686-2.7/cffi
   
    copying cffi/model.py -> build/lib.linux-i686-2.7/cffi
   
    copying cffi/commontypes.py -> build/lib.linux-i686-2.7/cffi
   
    copying cffi/vengine_cpy.py -> build/lib.linux-i686-2.7/cffi
   
    copying cffi/lock.py -> build/lib.linux-i686-2.7/cffi
   
    copying cffi/gc_weakref.py -> build/lib.linux-i686-2.7/cffi
   
    copying cffi/verifier.py -> build/lib.linux-i686-2.7/cffi
   
    running build_ext
   
    building '_cffi_backend' extension
   
    creating build/temp.linux-i686-2.7
   
    creating build/temp.linux-i686-2.7/c
   
    i686-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DUSE__THREAD -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python2.7 -c c/_cffi_backend.c -o build/temp.linux-i686-2.7/c/_cffi_backend.o
   
    c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory
   
     #include <Python.h>
   
                        ^
   
    compilation terminated.
   
    error: command 'i686-linux-gnu-gcc' failed with exit status 1
   
    ----------------------------------------
    Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-zIFtLW/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-oLiYhi-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-zIFtLW/cffi



متن ارور با رنگ قرمز در آخر:

Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-zIFtLW/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-oLiYhi-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-zIFtLW/cffi



من زیاد لینوکس بلد نیستم لطفا قدم به قدم توضیح بدید.

ممنون

آفلاین دانیال بهزادی

  • ناظر انجمن
  • *
  • ارسال: 19713
  • جنسیت : پسر
  • Urahara Kiesuke
    • وبلاگ
پاسخ : کمک در نصب mitmproxy
« پاسخ #5 : 07 فروردین 1394، 04:16 ب‌ظ »
بسته‌ی libpython2.7-dev رو نصب کن
اگه این ارسال بهت کمک کرد، دنبال دکمهٔ تشکر نگرد. به جاش تو هم به جامعهٔ آزادت کمک کن