You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.
GMP is optional, if you don't use big numbers you don't need it. So we could maybe install it with homebrew, but I don't know. Eventually I think I'd like to implement big numbers without an extra library, just pure crystal.
yes I was using BigRational at the time. However, the link line seems to
anticipate it, I'd add it to homebrew for now, since it's there and part of
the std. lib.
Cheers!
GMP is optional, if you don't use big numbers you don't need it. So we
could maybe install it with homebrew, but I don't know. Eventually I think
I'd like to implement big numbers without an extra library, just pure
crystal.
No idea if this is the right place to report this, but at least with 0.18.2
{{{
$brew install crystal-lang
...
FH1002466:dev packrd$ crystal run rational.cr
ld: library not found for -lgmp
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: execution of command failed with code: 1:
cc -o "/Users/packrd/.cache/crystal/crystal-run-rational.tmp" "${@}" -rdynamic -L/usr/lib -L/usr/local/lib -lgmp -lpcre -lgc -lpthread /usr/local/Cellar/crystal-lang/0.18.2/src/ext/libcrystal.a -levent -liconv -ldl
FH1002466:dev packrd$ brew install gmp
==> Downloading https://homebrew.bintray.com/bottles/gmp-6.1.0.yosemite.bottle.tar.gz
Already downloaded: /Users/packrd/Library/Caches/Homebrew/gmp-6.1.0.yosemite.bottle.tar.gz
==> Pouring gmp-6.1.0.yosemite.bottle.tar.gz
🍺 /usr/local/Cellar/gmp/6.1.0: 17 files, 3.2M
FH1002466:dev packrd$ crystal run rational.cr
(success)
}}}
The text was updated successfully, but these errors were encountered: