I'm following chapter 13.3 of "Haskell Programming from First Principles"
and working on stack build but fail with below error message as below. I'm doing on my MBP terminal with current Stack version: 1.3.2 installed, . Any solution for a way out? (I'm currently working with very slow wifi environment. I'm not sure whether stack build fails because of bad connectivity.)
$ stack build
Updating package index Hackage (mirrored at
https://github.com/commercialhaskell/all-cabal-hashes.git) ...
Long Pause Here... almost 10 minutes.
Running /usr/bin/git clone https://github.com/commercialhaskell/all-cabal-hashes.git all-cabal-hashes/ -b display in directory /Users/Sleepyleo/.stack/indices/Hackage/git-update/ exited with ExitFailure 128
Cloning into 'all-cabal-hashes'...
error: RPC failed; curl 56 SSLRead() return error -9806
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Error code -9806 is a Mac OS X error code for a generic SSL connection failure. Others have reported this as a problem with older versions of git connecting to certain sites with incompatible SSL configurations. See this StackOverflow question, for example. However, it's also been reported as a result of a connection being interrupted on a flaky Internet connection (e.g., this github issue).
Unfortunately, since you are seeing this after a 10 minute timeout, it's likely your Internet connection rather than an SSL compatibility problem.
You might want to try running:
/usr/bin/git clone https://github.com/commercialhaskell/all-cabal-hashes.git
all-cabal-hashes/ -b display
manually in a directory somewhere. It's about a 200 megabyte download. This will show you if it's making any progress and how fast the download is running.
Related
Whenever I try to create an application based on the Haskell cartridge, it results in the a variant of the following error:
The initial build for the application failed: Shell command '/sbin/runuser -s /bin/sh 55c67c940c1e6694ac000017 -c "exec /usr/bin/runcon 'unconfined_u:system_r:openshift_t:s0:c5,c753' /bin/sh -c \"gear postreceive --init >> /tmp/initial-build.log 2>&1\""' returned an error. rc=137 .Last 10 kB of build output: The server is not running, nothing to stop. Repairing links for 1 deployments Building git ref 'master', commit 6b8beb4 Downloading the latest package list from hackage.haskell.org
This happens for predefined cartridges in the Openshift hub, such as Snap, Yesod, Scotty, and for the cartridges defined in the wiki (https://wiki.haskell.org/Web/Cloud).
I'm requesting help because he application never gets created thus I can't check the logs, and I can't make much from the error message. I tried other cartridge types than Haskell, and they get created just fine.
This is caused by https://github.com/haskell/cabal/issues/2396, see https://wiki.haskell.org/Web/Cloud#OpenShift. May be fixed in cabal-install 1.24.
When running scons in single thread, I get all my code to build fine. However, if I use -j (for parallel builds), I get a plethora of these errors:
Internal Error: no cycle found for node FILE (<SCons.Node.FS.Dir object at 0xc15aeec>) in state pending
What does this error mean?
How can I resolve this?
I am aware of Issue 2777 but I am running scons v2.3.1 which should have this already in.
Im trying to compile a Qt project based on the example given here.
I managed to compile without errors, but during execution there are errors. I'm getting these errors in pop up windows:
-open /dev/dsp error
-init failed
-start capture failed
-get frame failed
Moreover, the output displays:
sh: line 0: .:setqt4env:file not found
Trying open file
Could not open File! Error code: 5
/home/QFaceRec/QTFaceRecForPC exited with code 0
SIGSEGV Error when debugging with Qt Creator.
I have googled, answers are due to the application tries to access memory illegally.
Therefore, I try to execute in su - / root, but the run time error remain unsolved.
Im trying to compile and run the code in fedora with qt creator without the GPIO and serial port setting.
Anyone got any ideas to my problem? or knows how to compile the qt code in the link above
Answers are due to the application tries to access memory illegally. Therefore, I try to execute in su - / root
Do not do that! The illegal memory access is not a matter of permissions, it's a matter of the software having bugs. By running it as root, there's a possibility that those bugs will wreck your system.
when running java -jar myfile.jar on my RHEL 64 machine, if the install fails for some reason, i don't get back to prompt - thus the process doesn't exit
on other RHEL 64 machine, when running the same jar file, if it fails, i get back to prompt.
both machines are running the same version of java 1.6.0_25
anyone know what can cause this behavior ?
edit: the jar has an ant build xml that fails right on the beginning (i've added <fail/> task).
when running the file i get this
Total time: 1 second
validate failed
org.tp23.antinstaller.InstallException: Error running the install, Ant run failed - examine the error logs for details
at org.tp23.antinstaller.runtime.exe.AntLauncherFilter.exec(AntLauncherFilter.java:112)
at org.tp23.antinstaller.runtime.exe.AntLauncherValidateFilter.exec(AntLauncherValidateFilter.java:53)
at org.tp23.antinstaller.runtime.ExecInstall.exec(ExecInstall.java:89)
at org.tp23.antinstaller.selfextract.SelfExtractor.main(SelfExtractor.java:372)
Install failed
Error running the install, Ant run failed - examine the error logs for details
Failed
but no prompt, process still running...
Could it be that you still have some non-daemon threads sticking around? Try getting a Java stack dump with:
kill -QUIT <process_id>
I need to build the mozilla source in my Windows 7 machine. I used the following command line code to pull the source using mercurial
hg clone http://hg.mozilla.org/mozilla-central/ D:\FFsrc\src20
but the process always stop in the middle, with the following error.
requesting all changes adding
changesets transaction abort! rollback
completed abort: premature EOF reading
chunk <got 6 bytes, expected 776>
Try successive clone -r, it looks like your connection is flaky which stops the clone process in the middle.
HI Tonfa, Krtek
the issue was actually on the network, which stopped the clone process. I have now downloaded the bundle and grabbed the source by unbundling it.
https://developer.mozilla.org/en/Mozilla_Source_Code_%2528Mercurial%2529%23
Thanks!!!
I had that error and found it was caused by using the old 1.2 hg client.
Upgraded to 2.4.2 and it worked fine since then.
So try to update to the latest hg version.