Skip to content

ripgrep is not self-contained on aarach64 darwin #3155

@ptrca

Description

@ptrca

Please tick this box to confirm you have reviewed the above.

  • I have a different issue.

What version of ripgrep are you using?

14.1.1

How did you install ripgrep?

Download tarball from github release

What operating system are you using ripgrep on?

arm64 macOS 12.5

Describe your bug.

ripgrep misses dependencies on libprce2.

What are the steps to reproduce the behavior?

$ wget https://github.com/BurntSushi/ripgrep/releases/download/14.1.1/ripgrep-14.1.1-aarch64-apple-darwin.tar.gz
$ tar xf ripgrep*.tar.gz

What is the actual behavior?

$ ./ripgrep-14.1.1-aarch64-apple-darwin/rg
dyld[624]: Library not loaded: '/opt/homebrew/opt/pcre2/lib/libpcre2-8.0.dylib'
  Referenced from: '/Users/user/ripgrep-14.1.1-aarch64-apple-darwin/rg'
  Reason: tried: '/opt/homebrew/opt/pcre2/lib/libpcre2-8.0.dylib' (no such file), '/usr/local/lib/libpcre2-8.0.dylib' (no such file), '/usr/lib/libpcre2-8.0.dylib' (no such file)

What is the expected behavior?

Could we ship another arm64 apple tarball with ripgrep has libprce2 statically linked?

I'm using a shared account on a Mac so I have no root privilege to use Homebrew and install libprce2. There is no internet and no rust toolchain on that machine so I can't build ripgrep myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions