Comments (3)
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:
-
You would need a copy of
OpenSSL 3
inx86_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 -
Assuming you followed above guide, you may get x86_64 version of OpenSSL using the following command:
axbrew install openssl@3
-
Above step would install OpenSSL in the following path:
/usr/local/homebrew/Cellar/openssl@3
-
Koji expects OpenSSL to be in the path
/usr/local/opt/openssl@3/lib/libssl.3.dylib
. Hence useln
command to create an alias:sudo ln -s /usr/local/homebrew/Cellar/openssl@3/3.0.2 /usr/local/opt/openssl@3
-
Run
Koji
in your terminal. 🎉
from koji.
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.
@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)
- cache scopes
- release on crates.io
- koji --hook does not handle the message from `git commit -m "msg"` HOT 2
- type to select HOT 1
- Look for toml in user config directory, or .kojirc.toml in the git directory HOT 1
- Option for --autocomplete and --emoji in config file
- Does not work with git modules HOT 1
- windows version missing HOT 1
- next release
- Cannot --version from HOME directory HOT 2
- Build problem for 1.5.2 HOT 3
- support signing commits
- Koji requires GPG HOT 1
- Skip some questions HOT 2
- Cannot run on macOS HOT 2
- Error with cocogitto git-hooks HOT 3
- Koji Errors in Submodules
- Line breaks in comment
- BREAKING CHANGE footer HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from koji.