Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

missing gmp #15

Open
rdp opened this issue Jun 20, 2016 · 2 comments
Open

missing gmp #15

rdp opened this issue Jun 20, 2016 · 2 comments

Comments

@rdp
Copy link

rdp commented Jun 20, 2016

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)
}}}

@asterite
Copy link
Member

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.

@rdp
Copy link
Author

rdp commented Jun 21, 2016

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!

On Mon, Jun 20, 2016 at 5:27 PM, Ary Borenszweig notifications@github.com
wrote:

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.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#15 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAAw0Ldf9H8NKN-fZ77vlJySj8fYQ9BBks5qNyH4gaJpZM4I6N7G
.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants