Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build fails on FreeBSD 10.0 #9

Open
frasertweedale opened this issue Jun 6, 2014 · 3 comments
Open

build fails on FreeBSD 10.0 #9

frasertweedale opened this issue Jun 6, 2014 · 3 comments

Comments

@frasertweedale
Copy link

Installation fails on FreeBSD 10.0; the configure script fails to locate the curl library.

Transcript:

[ master ] fraser% cabal install
Resolving dependencies...
Configuring curl-1.3.8...
checking for gcc... no                                                      
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...␣
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking how to run the C preprocessor... cc -E
configure: error: curl libraries not found, so curl package cannot be built
See `config.log' for more details.
Failed to install curl-1.3.8
cabal: Error: some packages failed to install:
curl-1.3.8 failed during the configure step. The exception was:
ExitFailure 1

A portion of the resultant config.log:

[ master ] fraser% cabal install
Resolving dependencies...
Configuring curl-1.3.8...
checking for gcc... no                                                      
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...␣
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking how to run the C preprocessor... cc -E
configure: error: curl libraries not found, so curl package cannot be built
See `config.log' for more details.
Failed to install curl-1.3.8
cabal: Error: some packages failed to install:
curl-1.3.8 failed during the configure step. The exception was:
ExitFailure 1
@cgag
Copy link

cgag commented Nov 7, 2014

Running into this as well, let me know if you ever figured out how to solve this.

edit: You can install the hs-curl package from ports. Wish I knew how to get it to build depending only on things in the local sandbox though.

@frasertweedale
Copy link
Author

Adding CPATH=/usr/local/include to environment fixes the issue. Ideally, Cabal would
know to do this on FreeBSD.

With GHC 7.8 you also need to cc-options: -fPIC. Ideally, Cabal would know to do
this as well (and there is a ticket: haskell/cabal#2207)

@aBathologist
Copy link

I'm encountering this on Ubuntu 14 too... Neither of @frasertweedale solutions worked for me, but I also don't really know what I"m doing...

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

No branches or pull requests

3 participants