bytestring-lexing-0.4.3.2 failed during the configure step - haskell

cabal install hedis
This failed due to its dependency - bytestring-lexing not getting installed. The error message is,
bytestring-lexing-0.4.3.2 failed during the configure step. The exception was:
ExitFailure 1
hedis-0.6.5 depends on bytestring-lexing-0.4.3.2 which failed to install.
To reason why this package failed, I grep-ed for local installations of bytestring-lexing using this command,
ghc-pkg field bytestring-lexing depends
But there are no local packages,
ghc-pkg: cannot find package bytestring-lexing
Now it is not the version conflict, what else could cause this error?

The error message is simply indicating that it's not able to find the package bytestring-lexing. So try installing that package first:
cabal install bytestring-lexing
And then try again the installation of hedis.

Related

Failing to install cordova plugins

I'm suddenly getting an error on my CI system when installing plugins to build my cordova app. I get an error like this for each of the plugins that needs to be installed:
> (node:2491) [DEP0128] DeprecationWarning: Invalid 'main' field in '/home/runner/work/{repo}/node_modules/objectorarray/package.json' of 'dist/index.js'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)
No scripts found for hook "before_plugin_add".
Calling plugman.fetch on plugin "https://github.com/CodeWithOz/cordova-plugin-googlemaps#feature-exclude-nodes"
fetch: Installing https://github.com/CodeWithOz/cordova-plugin-googlemaps#feature-exclude-nodes to /home/runner/work{repo}
Running command: npm install https://github.com/CodeWithOz/cordova-plugin-googlemaps#feature-exclude-nodes --production --save-exact
Command finished with error code 0: npm install,https://github.com/CodeWithOz/cordova-plugin-googlemaps#feature-exclude-nodes,--production,--save-exact
Failed to fetch plugin https://github.com/CodeWithOz/cordova-plugin-googlemaps#feature-exclude-nodes via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Could not determine package name from output:
added 3 packages, and audited 587 packages in 5s
This is the output when I specify the --verbose flag when installing the plugins. This happens both when building using Bitrise and GitHub Actions, so it doesn't appear to be specific to any particular platform. I've checked the status of both services, as well as the status of npm, and there's been no reported incident that would cause this. Moreover I tried installing plugins locally on my system and the problem did NOT happen. So it would seem that there's something up with the CI config. Any ideas what could be the problem?

Cannot find where you keep your Bower packages. (Ionic Framework)

I'm stuck.
I tried almost everything. From reinstalling, updating and installing in a different order.
First I used:
$ bower install
Everything went great so far, but at the end I got this:
bower date.format#~1.2.3 ECMDERR Failed to execute "git ls-remote --tags --heads https://github.com/tiger-seo/date.format.git",
exit code of #128 fatal: unable to access 'https://github.com/tiger-seo/date.format.git/': Server aborted the SSL handshake
Additional error details:
fatal: unable to access 'https://github.com/tiger-seo/date.format.git/': Server aborted the SSL handshake
I ignored that (don't know if it's necessary) and build the Node Packages with
$ npm install
and got this:
Running "wiredep:app" (wiredep) task
Warning: Error: Cannot find where you keep your Bower packages. Use --force to continue.
Aborted due to warnings.
The npm-debug.log can you find here: https://www.dropbox.com/s/istqfl11xulkod9/npm-debug.log?dl=0
My installed versions:
Bower: 1.8.0
npm: 3.10.10
node: v6.11.0
Ionic: 3.3.0
Cordova: 7.0.1

NPM error installing "sse4_crc32"

I was initially getting this error as a dependency for a different package, but it fails when I try it on its own too. Since it's the first time I'm trying to install a node.js package, I'm sure I'm missing something, but what?
$ npm install --save sse4_crc32
\
> sse4_crc32#3.3.0 install /home/agam/node_modules/sse4_crc32
> node-gyp rebuild
make: Entering directory '/home/agam/node_modules/sse4_crc32/build'
CXX(target) Release/obj.target/sse4_crc32/src/sse4_crc32.o
In file included from ../src/sse4_crc32.cpp:18:0:
../node_modules/nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local)’:
../node_modules/nan/nan.h:1178:27: error: ‘REPLACE_INVALID_UTF8’ is not a member of ‘v8::String’
v8::String::REPLACE_INVALID_UTF8;
^
sse4_crc32.target.mk:87: recipe for target 'Release/obj.target/sse4_crc32/src/sse4_crc32.o' failed
make: *** [Release/obj.target/sse4_crc32/src/sse4_crc32.o] Error 1
make: Leaving directory '/home/agam/node_modules/sse4_crc32/build'
Ran into the same issue today.
I was on Node 0.10.29 which supposedly should work.
Upgraded to Node 0.10.38 but that didn't solve the problem.
I was running on debian (jessy) and there npm was installed pulling in a old version of node-gyp as a dependency. 0.2.0 I believe for npm 1.4.x.
Installing a new version of node-gyp through npm install -g solved the problem. (After some symlink changes to point to the new node-gyp).
My guess is you're using node v0.11.12 or an earlier v0.11 release which would not have v8::String::REPLACE_INVALID_UTF8 (which is available since v0.11.13 when v8 was upgraded to 3.24.x from 3.22.x). node v0.11.x versions are considered unstable and you should upgrade to at least v0.12. After that, the error should go away.
The more technical reason for the error is that nan simply does a check if the node ABI version is post-v0.10 around the code that uses v8::String::REPLACE_INVALID_UTF8, so it assumes you're using v0.12 or newer, where that constant is available.

phonegap installation fails due to package failure on https://github.com/ariya/esprima/tarball/master

I have an error when installing phonegap.
I have a problem with the https://github.com/ariya/esprima/tarball/master package, as it cannot be installed.
I have changed many different registries but all failed on the esprima module.
I even download the exact tarball manually from github and executed the following on the local filesystem:
npm install file_url
There is no sign of failure but "phonegap" command cannot still be used.
Please tell me how to install the failed module and finally get phonegap to work?
Thank you very much!

Issues with dependencies when trying to configure Setup.hs despite having dependencies installed

I've been provided with a Setup.hs file, along with another .hs file that contains the source code. Whenever I try to configure the install by the following:
runhaskell Setup.hs configure
I get the error:
Setup: At least the following dependencies are missing:
binary >=0.4.0 && <0.6.0, haskeline ==0.6.*
I've since installed these dependencies using cabal, but when I try to run the Setup configure command again, I get the same error. I'm completely new to Haskell - is there another step I'm missing after doing a cabal install before trying to run Setup again?
How did you install the packages? If you installed them with the --userflag, then you also need to configure with the --user flag.
You can verify that the packages are installed by running ghc-pkg list binary and ghc-pkg list haskeline. It will list the installed package versions matching that name along with where they are installed.

Resources