Giter Club home page Giter Club logo

Comments (3)

Kiran-B avatar Kiran-B commented on June 9, 2024 1

Missed possibly an important detail when reporting this bug.
This failure is observed on an M1 Macbook Pro. So updated the title accordingly.

For any fellow Mac users on the same boat, the following workaround makes Koji work on an M1 based macOS:

  1. You would need a copy of OpenSSL 3 in x86_64 architecture. One of the ways to get this is via Homebrew. Note that Homebrew installs ARM64 version of OpenSSL. To force Homebrew to install an x86_64 version, I followed this guide: https://medium.com/mkdir-awesome/how-to-install-x86-64-homebrew-packages-on-apple-m1-macbook-54ba295230f

  2. Assuming you followed above guide, you may get x86_64 version of OpenSSL using the following command: axbrew install openssl@3

  3. Above step would install OpenSSL in the following path: /usr/local/homebrew/Cellar/openssl@3

  4. Koji expects OpenSSL to be in the path /usr/local/opt/openssl@3/lib/libssl.3.dylib. Hence use ln command to create an alias: sudo ln -s /usr/local/homebrew/Cellar/openssl@3/3.0.2 /usr/local/opt/openssl@3

  5. Run Koji in your terminal. 🎉

from koji.

Kiran-B avatar Kiran-B commented on June 9, 2024 1

Another takeaway is probably that the macOS binary of Koji is x86_64. I could confirm using the file command:

❯ file ~/.local/bin/Koji
~/.local/bin/Koji: Mach-O 64-bit executable x86_64

Offering Koji binary in arm64 architecture might simplify the steps required to install OpenSSL or solve this issue altogether.

from koji.

its-danny avatar its-danny commented on June 9, 2024

@Kiran-B Sorry for super late response, been busy switching jobs and all that. Much appreciated documenting all this.

For now, I'm just going to put a link in the README to your comment on getting x86_64 OpenSSL installed. At some point I'll try and get this working, but as it is I have no real way to test any of it and it seems like getting it to build for arm64 is not that easy (or, at least, is beyond me).

from koji.

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.