public
Created

Attempting to build and install Hackage's curl 1.3.7 and libcurl 7.28.0

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193
$ ./configure --with-winssl --prefix=/c/code/curl_install
...
 
$ make
...
 
$ make install
...
 
$ find /c/code/curl_install/ -type f | grep -v man
/c/code/curl_install/bin/curl-config
/c/code/curl_install/bin/curl.exe
/c/code/curl_install/bin/libcurl-4.dll
/c/code/curl_install/include/curl/curl.h
/c/code/curl_install/include/curl/curlbuild.h
/c/code/curl_install/include/curl/curlrules.h
/c/code/curl_install/include/curl/curlver.h
/c/code/curl_install/include/curl/easy.h
/c/code/curl_install/include/curl/mprintf.h
/c/code/curl_install/include/curl/multi.h
/c/code/curl_install/include/curl/stdcheaders.h
/c/code/curl_install/include/curl/typecheck-gcc.h
/c/code/curl_install/lib/libcurl.a
/c/code/curl_install/lib/libcurl.dll.a
/c/code/curl_install/lib/libcurl.la
/c/code/curl_install/lib/pkgconfig/libcurl.pc
 
$ cd ..
 
$ CPPFLAGS=-Ic:/code/curl_install/include cabal -v install curl --ld-options=-L
c:/code/curl_install/lib
Reading available packages...
Choosing modular solver.
Resolving dependencies...
Extracting
C:\Users\Kevin\AppData\Roaming\cabal\packages\hackage.haskell.org\curl\1.3.7\cur
l-1.3.7.tar.gz
to C:\Users\Kevin\AppData\Local\Temp\curl-1.3.7-3864...
Configuring curl-1.3.7...
Flags chosen: new-base=True
Dependency base ==4.5.1.0: using base-4.5.1.0
Dependency bytestring ==0.9.2.1: using bytestring-0.9.2.1
Dependency containers ==0.4.2.1: using containers-0.4.2.1
Using Cabal-1.14.0 compiled by ghc-7.4
Using compiler: ghc-7.4.2
Using install prefix: C:\Users\Kevin\AppData\Roaming\cabal
Binaries installed in: C:\Users\Kevin\AppData\Roaming\cabal\bin
Libraries installed in:
C:\Users\Kevin\AppData\Roaming\cabal\curl-1.3.7\ghc-7.4.2
Private binaries installed in: C:\Users\Kevin\AppData\Roaming\cabal\curl-1.3.7
Data files installed in: C:\Users\Kevin\AppData\Roaming\cabal\curl-1.3.7
Documentation installed in:
C:\Users\Kevin\AppData\Roaming\cabal\doc\curl-1.3.7
Using alex version 3.0.2 found on system at: c:\Program Files (x86)\Haskell
Platform\2012.4.0.0\lib\extralibs\bin\alex.exe
Using ar found on system at: c:\Program Files (x86)\Haskell
Platform\2012.4.0.0\mingw\bin\ar.exe
No c2hs found
No cpphs found
No ffihugs found
Using gcc version 4.5.2 found on system at: c:\Program Files (x86)\Haskell
Platform\2012.4.0.0\mingw\bin\gcc.exe
Using ghc version 7.4.2 found on system at: c:\Program Files (x86)\Haskell
Platform\2012.4.0.0\bin\ghc.exe
Using ghc-pkg version 7.4.2 found on system at: c:\Program Files (x86)\Haskell
Platform\2012.4.0.0\bin\ghc-pkg.exe
No greencard found
Using haddock version 2.11.0 found on system at: c:\Program Files
(x86)\Haskell Platform\2012.4.0.0\bin\haddock.exe
Using happy version 1.18.10 found on system at: c:\Program Files (x86)\Haskell
Platform\2012.4.0.0\lib\extralibs\bin\happy.exe
No hmake found
Using hpc version 0.6 found on system at: c:\Program Files (x86)\Haskell
Platform\2012.4.0.0\bin\hpc.exe
Using hsc2hs version 0.67 found on system at: c:\Program Files (x86)\Haskell
Platform\2012.4.0.0\bin\hsc2hs.exe
No hscolour found
No hugs found
No jhc found
Using ld found on system at: c:\Program Files (x86)\Haskell
Platform\2012.4.0.0\mingw\bin\ld.exe
No lhc found
No lhc-pkg found
No nhc98 found
No pkg-config found
Using ranlib found on system at: C:\MinGW\bin\ranlib.exe
Using strip found on system at: C:\MinGW\bin\strip.exe
Using tar found on system at: C:\MinGW\msys\1.0\bin\tar.exe
No uhc found
sh configure --with-compiler=ghc --prefix=C:\Users\Kevin\AppData\Roaming\cabal -
-with-gcc=c:\Program Files (x86)\Haskell Platform\2012.4.0.0\mingw\bin\gcc.exe
checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
configure: creating ./config.status
config.status: creating curl.buildinfo
Reading parameters from .\curl.buildinfo
cabal.exe: Missing dependency on a foreign library:
* Missing C library: curl
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.
World file is already up to date.
cabal.exe: Error: some packages failed to install:
curl-1.3.7 failed during the configure step. The exception was:
ExitFailure 1
 
$ cabal -v install curl --extra-lib-dirs=c:/code/curl_install/lib --extra-inclu
de-dirs=c:/code/curl_install/include
Reading available packages...
Choosing modular solver.
Resolving dependencies...
Extracting
C:\Users\Kevin\AppData\Roaming\cabal\packages\hackage.haskell.org\curl\1.3.7\cur
l-1.3.7.tar.gz
to C:\Users\Kevin\AppData\Local\Temp\curl-1.3.7-252...
Configuring curl-1.3.7...
Flags chosen: new-base=True
Dependency base ==4.5.1.0: using base-4.5.1.0
Dependency bytestring ==0.9.2.1: using bytestring-0.9.2.1
Dependency containers ==0.4.2.1: using containers-0.4.2.1
Using Cabal-1.14.0 compiled by ghc-7.4
Using compiler: ghc-7.4.2
Using install prefix: C:\Users\Kevin\AppData\Roaming\cabal
Binaries installed in: C:\Users\Kevin\AppData\Roaming\cabal\bin
Libraries installed in:
C:\Users\Kevin\AppData\Roaming\cabal\curl-1.3.7\ghc-7.4.2
Private binaries installed in: C:\Users\Kevin\AppData\Roaming\cabal\curl-1.3.7
Data files installed in: C:\Users\Kevin\AppData\Roaming\cabal\curl-1.3.7
Documentation installed in:
C:\Users\Kevin\AppData\Roaming\cabal\doc\curl-1.3.7
Using alex version 3.0.2 found on system at: c:\Program Files (x86)\Haskell
Platform\2012.4.0.0\lib\extralibs\bin\alex.exe
Using ar found on system at: c:\Program Files (x86)\Haskell
Platform\2012.4.0.0\mingw\bin\ar.exe
No c2hs found
No cpphs found
No ffihugs found
Using gcc version 4.5.2 found on system at: c:\Program Files (x86)\Haskell
Platform\2012.4.0.0\mingw\bin\gcc.exe
Using ghc version 7.4.2 found on system at: c:\Program Files (x86)\Haskell
Platform\2012.4.0.0\bin\ghc.exe
Using ghc-pkg version 7.4.2 found on system at: c:\Program Files (x86)\Haskell
Platform\2012.4.0.0\bin\ghc-pkg.exe
No greencard found
Using haddock version 2.11.0 found on system at: c:\Program Files
(x86)\Haskell Platform\2012.4.0.0\bin\haddock.exe
Using happy version 1.18.10 found on system at: c:\Program Files (x86)\Haskell
Platform\2012.4.0.0\lib\extralibs\bin\happy.exe
No hmake found
Using hpc version 0.6 found on system at: c:\Program Files (x86)\Haskell
Platform\2012.4.0.0\bin\hpc.exe
Using hsc2hs version 0.67 found on system at: c:\Program Files (x86)\Haskell
Platform\2012.4.0.0\bin\hsc2hs.exe
No hscolour found
No hugs found
No jhc found
Using ld found on system at: c:\Program Files (x86)\Haskell
Platform\2012.4.0.0\mingw\bin\ld.exe
No lhc found
No lhc-pkg found
No nhc98 found
No pkg-config found
Using ranlib found on system at: C:\MinGW\bin\ranlib.exe
Using strip found on system at: C:\MinGW\bin\strip.exe
Using tar found on system at: C:\MinGW\msys\1.0\bin\tar.exe
No uhc found
sh configure --with-compiler=ghc --prefix=C:\Users\Kevin\AppData\Roaming\cabal -
-with-gcc=c:\Program Files (x86)\Haskell Platform\2012.4.0.0\mingw\bin\gcc.exe
checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
configure: error: curl libraries not found, so curl package cannot be built
See `config.log' for more details.
World file is already up to date.
cabal.exe: Error: some packages failed to install:
curl-1.3.7 failed during the configure step. The exception was:
ExitFailure 1

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.