mac安装frida失败解决记录

2 篇文章 0 订阅
1 篇文章 0 订阅

根据官方指导,安装报错:

pip install frida

knight@knight ~ % pip install frida
Collecting frida
Using cached frida-15.1.17.tar.gz (11 kB)
Preparing metadata (setup.py) … done
Requirement already satisfied: setuptools in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from frida) (51.3.3)
Building wheels for collected packages: frida
Building wheel for frida (setup.py) … error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [16 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.9
creating build/lib.macosx-10.9-x86_64-3.9/frida
copying frida/init.py -> build/lib.macosx-10.9-x86_64-3.9/frida
copying frida/core.py -> build/lib.macosx-10.9-x86_64-3.9/frida
running build_ext
looking for prebuilt extension in home directory, i.e. /Users/knight/frida-15.1.17-py3.9-macosx-10.9-x86_64.egg
prebuilt extension not found in home directory, will try downloading it
querying pypi for available prebuilds
using default index URL: https://pypi.org/simple/
downloading package list from https://pypi.org/simple/frida/
unable to download it within 20 seconds; please download it manually to /Users/knight/frida-15.1.17-py3.9-macosx-10.9-x86_64.egg
error: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1122)>
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for frida
Running setup.py clean for frida
Failed to build frida
Installing collected packages: frida
Running setup.py install for frida … error
error: subprocess-exited-with-error

× Running setup.py install for frida did not run successfully.
│ exit code: 1
╰─> [16 lines of output]
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.9
creating build/lib.macosx-10.9-x86_64-3.9/frida
copying frida/init.py -> build/lib.macosx-10.9-x86_64-3.9/frida
copying frida/core.py -> build/lib.macosx-10.9-x86_64-3.9/frida
running build_ext
looking for prebuilt extension in home directory, i.e. /Users/knight/frida-15.1.17-py3.9-macosx-10.9-x86_64.egg
prebuilt extension not found in home directory, will try downloading it
querying pypi for available prebuilds
using default index URL: https://pypi.org/simple/
downloading package list from https://pypi.org/simple/frida/
unable to download it within 20 seconds; please download it manually to /Users/knight/frida-15.1.17-py3.9-macosx-10.9-x86_64.egg
error: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1122)>

[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> frida

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

看unable是证书报错,运行以下命令

sudo /Applications/Python\ 3.9/Install\ Certificates.command

knight@knight ~ % sudo /Applications/Python\ 3.9/Install\ Certificates.command
Password:
– pip install --upgrade certifi
WARNING: The directory ‘/Users/knight/Library/Caches/pip’ or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo’s -H flag.
Requirement already satisfied: certifi in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (2020.12.5)
Collecting certifi
Downloading certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 149.2/149.2 KB 2.3 MB/s eta 0:00:00
Installing collected packages: certifi
Attempting uninstall: certifi
Found existing installation: certifi 2020.12.5
Uninstalling certifi-2020.12.5:
Successfully uninstalled certifi-2020.12.5
Successfully installed certifi-2021.10.8
WARNING: Running pip as the ‘root’ user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
– removing any existing file or link
– creating symlink to certifi certificate bundle
– setting permissions
– update complete

pip install frida

knight@knight ~ % pip install frida
Collecting frida
Using cached frida-15.1.17.tar.gz (11 kB)
Preparing metadata (setup.py) … done
Requirement already satisfied: setuptools in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from frida) (51.3.3)
Building wheels for collected packages: frida
Building wheel for frida (setup.py) … done
Created wheel for frida: filename=frida-15.1.17-cp39-cp39-macosx_10_9_x86_64.whl size=14270231 sha256=e22c96c7759f7c4dda977d3abf1b5995acae94c39aadb9d11a71f672bdf1f31f
Stored in directory: /Users/knight/Library/Caches/pip/wheels/6f/56/ae/52c60d4362406776557a6f62b57c005b95fe3d61db4f9487f2
Successfully built frida
Installing collected packages: frida
Successfully installed frida-15.1.17
knight@knight ~ %

  • 3
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
方案是为解决特定问题或达成特定目标而制定的一系列计划或步骤。它的作用是提供一种系统性的方法,以有效地应对挑战、优化流程或实现目标。以下是方案的主要作用: 问题解决: 方案的核心目标是解决问题。通过系统性的规划和执行,方案能够分析问题的根本原因,提供可行的解决方案,并引导实施过程,确保问题得到合理解决。 目标达成: 方案通常与明确的目标相关联,它提供了一种达成这些目标的计划。无论是企业战略、项目管理还是个人发展,方案的制定都有助于明确目标并提供达成目标的路径。 资源优化: 方案在设计时考虑了可用资源,以最大化其效用。通过明智的资源分配,方案可以在有限的资源条件下实现最大的效益,提高效率并减少浪费。 风险管理: 方案通常会对潜在的风险进行评估,并制定相应的风险管理策略。这有助于减轻潜在问题的影响,提高方案的可行性和可持续性。 决策支持: 方案提供了决策者所需的信息和数据,以便做出明智的决策。这种数据驱动的方法有助于减少不确定性,提高决策的准确性。 团队协作: 复杂的问题通常需要多个人的协同努力。方案提供了一个共同的框架,帮助团队成员理解各自的职责和任务,促进协作并确保整个团队朝着共同的目标努力。 监控与评估: 方案通常包括监控和评估的机制,以确保实施的有效性。通过定期的评估,可以及时调整方案,以适应变化的环境或新的挑战。 总体而言,方案的作用在于提供一种有序、有计划的方法,以解决问题、实现目标,并在实施过程中最大化资源利用和风险管理。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值