I try running:
cabal install memoize
in the Terminal but all I get is:
11 warnings and 1 error generated.
Failed to install memoize-0.6
cabal: Error: some packages failed to install:
memoize-0.6 failed during the building phase. The exception was:
ExitFailure 1
The 1 error is:
Data/Function/Memoize/TH.hs:5:6:
error: invalid preprocessing directive
#-}
^
Related
I'm trying to install module realcugan-ncnn-vulkan-python, but getting an error:
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '-S', '/private/var/folders/p9/mx7w4h2149vdglfr2c0ddmpm0000gn/T/pip-install-p6r_9mxi/realcugan-ncnn-vulkan-python_71a0be6d527745c59fa316681cfad201/realcugan_ncnn_vulkan_python', '-B', '/private/var/folders/p9/mx7w4h2149vdglfr2c0ddmpm0000gn/T/pip-install-p6r_9mxi/realcugan-ncnn-vulkan-python_71a0be6d527745c59fa316681cfad201/build/temp.macosx-10.9-x86_64-cpython-39_realcugan-ncnn-vulkan-python', '-GNinja', '-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_INSTALL_PREFIX:PATH=/private/var/folders/p9/mx7w4h2149vdglfr2c0ddmpm0000gn/T/pip-install-p6r_9mxi/realcugan-ncnn-vulkan-python_71a0be6d527745c59fa316681cfad201/build/lib.macosx-10.9-x86_64-cpython-39/realcugan_ncnn_vulkan_python', '-DCMAKE_MAKE_PROGRAM=/private/var/folders/p9/mx7w4h2149vdglfr2c0ddmpm0000gn/T/pip-build-env-vfonxjmm/overlay/bin/ninja', '-DBUILD_SHARED_LIBS:BOOL=OFF', '-DCALL_FROM_SETUP_PY:BOOL=ON']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for realcugan-ncnn-vulkan-python
Failed to build realcugan-ncnn-vulkan-python
ERROR: Could not build wheels for realcugan-ncnn-vulkan-python, which is required to install pyproject.toml-based projects
anybody knows what's going wrong?
I try running pip install tesserocr and I get the following error...
error: 'cinttypes' file not found
#include // PRId32, ...
^~~~~~~~~~~
1 error generated.
error: command 'gcc' failed with exit status 1
Failed building wheel for tesserocr
I've searched the entire web. I even tried compiling the source code and then running pip install . but this gave me the exact same error. How can I fix this?
there are various questions like this topic.
tesserocr is compiled during installation so you have to install also the development packages needed.
Which these are depends on your OS distribution
while trying to install the friday package, I got the error
Preprocessing library friday-0.2.2.0...
src/Vision/Detector/Edge.hs:3:14: Unsupported extension: MultiWayIf
cabal: Error: some packages failed to install:
friday-0.2.2.0 failed during the building phase. The exception was:
ExitFailure 1
How to resolve this error?
I am using ghc version 7.4.1 and
cabal-install version 0.14.0
using version 1.14.0 of the Cabal library
MultiWayIf was introduced in the 7.6 branch of GHC. You're going to have to upgrade the compiler or patch the library.
I am trying to install Happstack using the following command:
cabal install happstack
Specifications:
Mac OS X 10.10 (Yosemite)
GHC 7.8.3
cabal 1.20.0.2
Error Messages:
ld: library not found for -lHSstm-2.4.3-ghc7.8.3
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Failed to install threads-0.5.1.2
cabal: Error: some packages failed to install:
happstack-7.0.2 depends on threads-0.5.1.2 which failed to install.
happstack-server-7.3.9 depends on threads-0.5.1.2 which failed to install.
system-filepath-0.4.12 failed during the building phase. The exception was:
ExitFailure 1
threads-0.5.1.2 failed during the building phase. The exception was:
ExitFailure 1
How to install haskell Parallel on mac?
I'm trying: '$sudo cabal install parallel' but its not working. I'm getting the following message:
Resolving dependencies...
Configuring parallel-3.2.0.0...
Preprocessing library parallel-3.2.0.0...
Building parallel-3.2.0.0...
<command line>: cannot satisfy -package-id deepseq-1.1.0.2-09b3aed0c4982bbc6569c668100876fa
(use -v for more information)
cabal: Error: some packages failed to install:
parallel-3.2.0.0 failed during the building phase. The exception was:
ExitFailure 1
Thanks.