Code Monkey home page Code Monkey logo

Comments (4)

NightMachinery avatar NightMachinery commented on May 29, 2024

Indeed, it doesn't work at all even though I have jq installed via brew:

dyld[88077]: Library not loaded: /usr/local/opt/jq/lib/libjq.1.dylib
  Referenced from: <B16C395F-8D62-37E5-9707-14ACF7A8DA8B> /opt/homebrew/Cellar/faq/0.0.7/bin/faq
  Reason: tried: '/usr/local/opt/jq/lib/libjq.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/jq/lib/libjq.1.dylib' (no such file), '/usr/local/opt/jq/lib/libjq.1.dylib' (no such file), '/usr/local/lib/libjq.1.dylib' (no such file), '/usr/lib/libjq.1.dylib' (no such file, not in dyld cache)

I tried linking the library forcefully, but the architectures aren't compatible:

dyld[90745]: Library not loaded: /usr/local/opt/jq/lib/libjq.1.dylib
  Referenced from: <B16C395F-8D62-37E5-9707-14ACF7A8DA8B> /opt/homebrew/Cellar/faq/0.0.7/bin/faq
  Reason: tried: '/usr/local/opt/jq/lib/libjq.1.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/jq/lib/libjq.1.dylib' (no such file), '/usr/local/opt/jq/lib/libjq.1.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/usr/local/lib/libjq.1.dylib' (no such file), '/usr/lib/libjq.1.dylib' (no such file, not in dyld cache), '/opt/homebrew/Cellar/jq/HEAD-cff5336/lib/libjq.1.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/jq/HEAD-cff5336/lib/libjq.1.dylib' (no such file), '/opt/homebrew/Cellar/jq/HEAD-cff5336/lib/libjq.1.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/usr/local/lib/libjq.1.dylib' (no such file), '/usr/lib/libjq.1.dylib' (no such file, not in dyld cache)

from faq.

reegnz avatar reegnz commented on May 29, 2024

Ran into the same issue:

dyld[17317]: Library not loaded: /usr/local/opt/jq/lib/libjq.1.dylib
  Referenced from: <B16C395F-8D62-37E5-9707-14ACF7A8DA8B> /opt/homebrew/Cellar/faq/0.0.7/bin/faq
  Reason: tried: '/usr/local/opt/jq/lib/libjq.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/jq/lib/libjq.1.dylib' (no such file), '/usr/local/opt/jq/lib/libjq.1.dylib' (no such file), '/usr/local/lib/libjq.1.dylib' (no such file), '/usr/lib/libjq.1.dylib' (no such file, not in dyld cache)
[2]    17317 abort      faq -h

Root cause is that on newer macs (like the M1, M2 ones), homebrew is not installed under /usr/local but under /opt/homebrew. The formula should respect that.

from faq.

reegnz avatar reegnz commented on May 29, 2024

Huh, formula is pretty basic: https://github.com/jzelinskie/homebrew-faq/blob/master/Formula/faq.rb

So I guess the problem is not how the formula passes the libjq dependency, but that it doesn't pass it at all! Because faq is not built by homebrew so it can pass the prefix, but instead built by github actions assuming libjq is always found under /usr/local, and the build binary is pulled from the repo.

I think the fix should probably be to have the Formula build the binary instead of downloading the binary from github.

from faq.

reegnz avatar reegnz commented on May 29, 2024

Pushed a fix for the homebrew formula to build from source instead of fetching pre-built binaries with faulty dynamic linking.

from faq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.