Open Kleibert opened 3 years ago
Same issue here, except that instead of OSError: [Errno 86] Bad CPU type in executable
I get OSError: [Errno 8] Exec format error
, which seems a more generic version of the same error (I guess due to python 3.8 vs 3.9).
fontcustom 2.0.0 ruby 2.7-1.4 Python 3.8.9 OpenSuse Tumbleweed, kernel 5.11.15-1-default, arch x86_64
Trying to execute the bundled executable directly confirms it’s the wrong exec format
bash: /.../ruby/2.7.0/gems/fontcustom-2.0.0/lib/fontcustom/scripts/sfnt2woff: cannot execute binary file: Exec format error
I fixed it by building and installing on $PATH the sfnt2woff and woff2sfnt binaries from wget/sfnt2woff.
sfnt2woff
generates a FileNotFoundError
, and maybe adding sfnt2woff to the dependencies in the installing instructions.In my case, upgrading Ruby resolved the issue:
brew upgrade ruby
Afterward, I updated the path and set some necessary flags/variables in ~/.zshrc:
export PATH=/opt/homebrew/opt/ruby/bin:$PATH
export LDFLAGS="-L/opt/homebrew/opt/ruby/lib"
export CPPFLAGS="-I/opt/homebrew/opt/ruby/include"
export PKG_CONFIG_PATH="/opt/homebrew/opt/ruby/lib/pkgconfig"
Then, I restarted the zsh shell to ensure the changes took effect:
zsh -l
These steps effectively resolved the problem for me.
Hi i have this problem with fontcustom compile fontcustom-2.0.0 ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin20]
Copyright (c) 2000-2020. See AUTHORS for Contributors. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html with many parts BSD http://fontforge.org/license.html. Please read LICENSE. Version: 20201107 Based on sources from 2020-11-07 20:56 UTC-ML-D-GDK3. Based on source from git with hash: 21ad4a18fb3d4becfe566d8215eba4483b0ddc4b fontforge 20201107 build date: 2020-11-07 20:56 UTC