Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install on Mac #2327

Closed
jpziegler opened this issue Apr 23, 2024 · 1 comment
Closed

pip install on Mac #2327

jpziegler opened this issue Apr 23, 2024 · 1 comment

Comments

@jpziegler
Copy link

Work environment

Questions Answers
OS/arch/bits MacOS AArch64
Architecture arm64
Source of Capstone pip
Version/git commit see description

Expected behavior

Should install arm64 version of capstone.

Actual behavior

Installs x86 version of capstone.

Here's the error I'm seeing:

OSError: dlopen(/Users/xxx/.pyenv/versions/3.12.2/lib/python3.12/site-packages/capstone/lib/libcapstone.dylib, 0x0006): tried: '/Users/xxx/.pyenv/versions/3.12.2/lib/python3.12/site-packages/capstone/lib/libcapstone.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/xxx/.pyenv/versions/3.12.2/lib/python3.12/site-packages/capstone/lib/libcapstone.dylib' (no such file), '/Users/xxx/.pyenv/versions/3.12.2/lib/python3.12/site-packages/capstone/lib/libcapstone.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64'))

Steps to reproduce the behavior

I ran into this when attempting to install ROPGadget. Therefore, it's possible that this is a downstream issue.

pip install ROPGadget
ROPgadget
  • It may be necessary to open a new shell before the ROPgadget command is available in the path.
  • I attempted to pip install capstone independently, but saw the same behavior.
  • I was able to resolve this in my case by building capstone from source.
@Rot127
Copy link
Collaborator

Rot127 commented Apr 24, 2024

This is a duplicate of #2301 and #2066.
#2301 were fixed with #2221 but not yet release as part of v5.0.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants