LoginSignup
1
1

More than 5 years have passed since last update.

Homebrewでインストールしたghc 7.8.3がOSX10.9にしてからおかしい

Posted at

-lgmpが見つからないと言われる、ぐぐっても特に出てこないので次のような場当たり的対処で無理やり解決。

user@ ~% brew info ghc 
ghc: stable 7.8.3 (bottled)
http://haskell.org/ghc/
/usr/local/Cellar/ghc/7.8.3 (5742 files, 716M) *
  Poured from bottle
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/ghc.rb
==> Dependencies
Build: xz ✔, xz ✔, xz ✔
Required: gmp ✔
==> Options
--32-bit
        Build 32-bit only
--tests
        Verify the build using the testsuite
user@ ~% ll /usr/local/Cellar/ghc/7.8.3/lib/ghc-7.8.3/integer-gmp-0.5.1.0/
total 1384
drwxr-xr-x  6 user  admin   204B  9  9 03:37 GHC
drwxr-xr-x  3 user  admin   102B  9  9 03:37 include
-r--r--r--  1 user  admin   132K  9 22 18:39 libHSinteger-gmp-0.5.1.0-ghc7.8.3.dylib
-r--r--r--  1 user  admin   237K  9  9 03:37 libHSinteger-gmp-0.5.1.0.a
-r--r--r--  1 user  admin   306K  9  9 03:37 libHSinteger-gmp-0.5.1.0_p.a
lrwxr-xr-x  1 user  admin    37B 12 12 21:02 libgmp.10.dylib -> ../../../../../../lib/libgmp.10.dylib
lrwxr-xr-x  1 user  admin    30B 12 12 21:02 libgmp.a -> ../../../../../../lib/libgmp.a
lrwxr-xr-x  1 user  admin    34B 12 12 21:02 libgmp.dylib -> ../../../../../../lib/libgmp.dylib

とりあえずここがリンクパス通ってそうだからこう書いたんだけどちょっとあれすぎるので正解があれば教えて下さい。

1
1
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1