pkg-config version of sdl2 is too low - haskell

I'm currently trying to get SDL2 for Haskell to work on Ubuntu but while trying to install SDL2 with cabal I get the following error
cabal: The pkg-config package sdl2 version >=2.0.3 is required but the version
installed on the system is version 2.0.2
Failed to install sdl2-1.2.0
cabal: Error: some packages failed to install:
sdl2-1.2.0 failed during the configure step. The exception was:
ExitFailure 1
So it seems I do have pkg-config and I do have sdl2 but I seem to have downloaded the wrong version of libsdl-dev? I have the latest version, so is there a way for me to upgrade the pkg-config file?

Related

nvm specific installation not working on Mac M1 (Ventura)

I am running a meteor project requiring the node.js version 14.17.3 but running the command nvm install 14.17.3 throws an error. It's strange because I used the same command to download version 14.13 with no issues.
error:
Downloading and installing node v14.17.3...
Downloading https://nodejs.org/dist/v14.17.3/node-v14.17.3-darwin-arm64.tar.xz...
curl: (22) The requested URL returned error: 404
Binary download from https://nodejs.org/dist/v14.17.3/node-v14.17.3-darwin-arm64.tar.xz failed, trying source.
grep: /Users/confidential/.nvm/.cache/bin/node-v14.17.3-darwin-arm64/node-v14.17.3-darwin-arm64.tar.xz: No such file or directory
Provided file to checksum does not exist.
Binary download failed, trying source.
Clang v3.5+ detected! CC or CXX not specified, will use Clang as C/C++ compiler!
Local cache found: ${NVM_DIR}/.cache/src/node-v14.17.3/node-v14.17.3.tar.xz
Checksums match! Using existing downloaded archive ${NVM_DIR}/.cache/src/node-v14.17.3/node-v14.17.3.tar.xz
$>./configure --prefix=/Users/confidential/.nvm/versions/node/v14.17.3 <
Node.js configure: Found Python 3.10.7...
Please use python3.9 or python3.8 or python3.7 or python3.6 or python3.5 or python2.7.
nvm: install v14.17.3 failed!
Any help is appreciated, thank you in advance.

Problems with Install of Cartopy on Python3 MacOS

I have installed the latest versions of Proj and GEOS but still get the following error when Installing Cartopy. Proj and Geos installed fine and I double checked their install.
pip install Cartopy
Collecting Cartopy
Using cached https://files.pythonhosted.org/packages/e5/92/fe8838fa8158931906dfc4f16c5c1436b3dd2daf83592645b179581403ad/Cartopy-0.17.0.tar.gz
Installing build dependencies ... done
Getting requirements to build wheel ... error
ERROR: Complete output from command /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /var/folders/hn/gs9rm9416l72qbz4bsqd0w5r0000gn/T/tmp9zqrg2u1:
ERROR: setup.py:171: UserWarning: Unable to determine GEOS version. Ensure you have 3.3.3 or later installed, or installation may fail.
'.'.join(str(v) for v in GEOS_MIN_VERSION), ))
setup.py:227: UserWarning: Unable to determine Proj version. Ensure you have 4.9.0 or later installed, or installation may fail.
'.'.join(str(v) for v in PROJ_MIN_VERSION), ))
Proj version 0.0.0 is installed, but cartopy requires at least version 4.9.0.
ERROR: Command "/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /var/folders/hn/gs9rm9416l72qbz4bsqd0w5r0000gn/T/tmp9zqrg2u1" failed with error code 1 in /private/var/folders/hn/gs9rm9416l72qbz4bsqd0w5r0000gn/T/pip-install-yh57wjuy/Cartopy
I had the same issue, and fixed it on my machine by installing using conda instead of pip, which is what the project reccomends https://scitools.org.uk/cartopy/docs/latest/installing.html

Haskell: Trouble updating/detecting cabal

I have both ghci versions 7.10 and 8 installed on my Ubuntu 16.04. I want to install something based on cabal. I already have cabal installed as the command
cabal --version
yields
cabal-install version 1.22.6.0
using version 1.22.5.0 of the Cabal library
But when I go to update with
cabal update
I get
Downloading the latest package list from hackage.haskell.org
cabal: does not exist
So I am not sure what is going on or how to resolve this. I hope to afterwards install gloss which is based on cabal. But
cabal install gloss-examples
yields
Resolving dependencies...
Downloading bindings-DSL-1.0.23...
Downloading bmp-1.2.6.3...
Failed to install bmp-1.2.6.3
Downloading vector-0.10.12.3...
Build log ( /home/username/.cabal/logs/bmp-1.2.6.3.log ):
cabal: /home/username/.cabal/logs/bmp-1.2.6.3.log: does not exist
EDIT: I originally installed ghci 7.10. Then later installed ghci 8. Could this have any effect?
EDIT2: After installing
cabal install Cabal cabal-install
I still get the same error with
cabal update
Also I still cannot
cabal install gloss-examples
But I get a different error this time
Resolving dependencies...
Downloading bindings-DSL-1.0.23...
Downloading bmp-1.2.6.3...
Failed to install bindings-DSL-1.0.23
Downloading vector-0.10.12.3...
Build log ( /home/aa/.cabal/logs/bindings-DSL-1.0.23.log ):
cabal: /home/aa/.cabal/logs/bindings-DSL-1.0.23.log: does not exist
EDIT3: When I installed Cabal, it says that I installed
Installed cabal-install-1.24.0.2
But when I check with
cabal --version
I am still stuck at
cabal-install version 1.22.6.0
which tells me somehow they are not linked.

Haskell how to resolve this error: Unsupported extension: MultiWayIf

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.

Some haskell dynamic library missing

This error message failing my installation of haskell-src-exts-1.15.0.1
ld: library not found for -lHScpphs-1.18.5-ghc7.8.2
So I guess my cpphs is missing. When I tried to install cpphs, however
$ cabal install cpphs
Resolving dependencies...
All the requested packages are already installed:
cpphs-1.18.5
Use --reinstall if you want to reinstall anyway.
The similar error happens for text-1.1.1.3.
I have tried erasing everything and reinstalling haskell-platform but it doesnt work.
I use haskell-platform installed from homebrew, but I had already had the latest version of cabal and ghc
λ ~/cabal --version
cabal-install version 1.20.0.3
using version 1.20.0.1 of the Cabal library
λ ~/ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.8.2
find ing the *.dylib gives no result.

Resources