Comments (9)
Additional I tried this
-
cabal install network (instead of cabal install http). No difference.
-
cabal install network as administrator. No difference.
-
cabal unpack network
cd network-2.6.2.1
cabal configure
in a editor I opend configure. At line 4876 ...
if test $ac_delim_n = $ac_delim_num; then
break
elif $ac_last_try; then
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
else ....This seems bash to me. I can't see an error (I know almost nothing about bash)
Kees
from minghc.
You can see my configure file at:
http://www.tbsoftware.nl/configureNetwork/configure
Kees
from minghc.
In configure I've added the line
echo $ac_delim_n
The extra line it prints was: 62 lines match
I've added this line:
....
echo $ac_subst_vars
ac_delim_num=echo "$ac_subst_vars" | grep -c '^'
....
This was the output:
LTLIBOBJS LIBOBJS EXTRA_SRCS EXTRA_LIBS EXTRA_CPPFLAGS CALLCONV EGREP GREP CPP OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC host_os host_vendor host_cpu host build_os build_vendor build_cpu build target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL
This line contains 62 words.
It looks like this script exceeds the limits of 'test'.
from minghc.
I've found the solution.
Cabal uses the wrong grep. The grep it uses was from Delphi (which came earlier in the path)
from minghc.
Glad you found it. I figured it was something wrong with the PATH
ordering. @ndmitchell @snoyberg Would it make sense to add a sanity check after install to see if there are other tools shadowing MinGHC's? I'm not sure of another way to fix this generally.
from minghc.
It would be very difficult to guess all of the tools that need to be available and determine that the version the user has is different than the one we need. We may want to start a real conversation about the interaction between MinGHC and stack here; stack solves this problem by modifying the PATH at the time of calling external tools to force its version of msys to take precedence. We can't do that with cabal.
Or perhaps we need to tell users with stack that they must use the switcher script to ensure things work perfectly.
from minghc.
I had the exact same thoughts. :)
from minghc.
stack
is a much better experience for Windows because it controls GHC installations and PATH
messiness internally.
from minghc.
Perhaps this should be a separate issue, but I'll dive in here anyway...
I clearly consider MinGHC+cabal-install an inferior solution (as I am biased), since I think stack > cabal-install. The question then becomes: what does MinGHC offer over plain stack? As I see it:
- Easier installation procedure
- Includes the big downloads (GHC and msys) in the initial download, which is very useful if you're going to install the toolchain on multiple systems
The advantage of downloading plain stack is:
- Quicker initial install
- Doesn't require any registry changes
- Will grab the best version of GHC for you, instead of whatever one happens to be available
Those are my thoughts, what does everyone else think?
from minghc.
Related Issues (20)
- Support no gmp builds HOT 3
- Installing the shared versions of base and other modules HOT 8
- Vision for MinGHC HOT 13
- Avoid console popup HOT 1
- Add stack to the release
- ghc 7.10.2 HOT 6
- Add a `stack.yaml` HOT 1
- Installer with 64-bit GHC should contain 64-bit Stack executable HOT 11
- "No such file or directory" error with long paths HOT 7
- "stack haddock" fails when using system GHC HOT 4
- Allow to install via a script HOT 6
- Provide a code-signed installer .exe HOT 4
- could minghc-compiled exe's crash win7/64? HOT 4
- Include glut32 library HOT 7
- trouble getting MinGHC to work correctly HOT 7
- MinGW and gfortran problem HOT 4
- can not install split due file missing time and failed to load interface after first time install minghc 7.10.2.-i386 HOT 11
- how to like ghci that can load haskell script first and then run functions in console like ghci HOT 4
- Change repo description to start with "DEPRECATED" or something HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minghc.