ryanoasis / nerd-fonts

Iconic font aggregator, collection, & patcher. 3,600+ icons, 50+ patched fonts: Hack, Source Code Pro, more. Glyph collections: Font Awesome, Material Design Icons, Octicons, & more
https://NerdFonts.com
Other
54.12k stars 3.64k forks source link

Getting an "illegal instruction" error #1522

Closed ThinkByDesign closed 7 months ago

ThinkByDesign commented 7 months ago

🗹 Requirements

FYI - the wiki page with a link to the template (https://github.com/ryanoasis/nerd-fonts/wiki/Reporting-Issues) gets a 404 error, so I'm trusting that the template below is correct.

🎯 Subject of the issue

Experienced behavior: The homepage (https://webinstall.dev/nerdfont/) says to run the following command for MacOS in terminal.app: curl -sS https://webi.sh/nerdfont | sh

When I do that (in zsh, though it shouldn't matter since it is piped to sh), I see the following:

Welcome to Webi! - modern tools, instant installs. <<< We expect your experience to be absolutely perfect!

Success? Star it!   https://github.com/webinstall/webi-installers
Problem? Report it: https://github.com/webinstall/webi-installers/issues
                    (your system is Darwin/arm64 with libc & curl)

sh: line 135: 72255 Done echo "${my_abs}" 72256 Illegal instruction: 4 | sed "s:^${my_rel}:~:"

I have confirmed that sed is installed. If I run the sed command by itself I get the following: 77708 illegal hardware instruction sed "s:^${my_rel}:~:"

Expected behavior: I was expecting it to install one or more of the nerd fonts.

Example symbols:

🔧 Your Setup

★ Screenshots (Optional)

Finii commented 7 months ago

Well, I would NEVER do curl ... | sh. How bad can it be.

This is an issue with webinstall, we can do nothing to fix it. Webinstall is a 3rd party project - they just take the released files from here.

Anyhow, I would suggest using Homebrew to install the font(s) - if you need a helper thing: https://github.com/ryanoasis/nerd-fonts?tab=readme-ov-file#option-2-homebrew-fonts

I personally would always just download the release archive and click the fonts in Finder: https://github.com/ryanoasis/nerd-fonts/releases

github-actions[bot] commented 1 month ago

This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a new issue, complete the issue template with all the details necessary to reproduce, and mention this issue as reference.