Skip to content

Instantly share code, notes, and snippets.

@dmitriz
Created August 15, 2019 08:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmitriz/9a88a725c21225c868064f827044e140 to your computer and use it in GitHub Desktop.
Save dmitriz/9a88a725c21225c868064f827044e140 to your computer and use it in GitHub Desktop.
Cabal errors
✗ cabal v2-build
Warning: The package list for 'hackage.haskell.org' does not exist. Run 'cabal
update' to download it.
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] next goal: ptghci (user goal)
[__0] rejecting: ptghci-0.1.0.0 (conflict: pkg-config package python3-any, not
found in the pkg-config database)
[__0] fail (backjumping, conflict set: ptghci)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: ptghci
✗ cabal update
Warning: The update command is a part of the legacy v1 style of cabal usage.
Please switch to using either the new project style and the new-update command
or the legacy v1-update alias as new-style projects will become the default in
the next version of cabal-install. Please file a bug if you cannot replicate a
working v1- use case with the new-style commands.
For more information, see: https://wiki.haskell.org/Cabal/NewBuild
Downloading the latest package list from hackage.haskell.org
@dmitriz
Copy link
Author

dmitriz commented Aug 15, 2019

✗ pkg-config --cflags --libs python3
Package python3 was not found in the pkg-config search path.
Perhaps you should add the directory containing `python3.pc'
to the PKG_CONFIG_PATH environment variable
No package 'python3' found

@dmitriz
Copy link
Author

dmitriz commented Aug 15, 2019

✗ which python3
/opt/local/bin/python3

✗ echo $PKG_CONFIG_PATH
/opt/local/bin/python3

@dmitriz
Copy link
Author

dmitriz commented Aug 15, 2019

✗ echo $PKG_CONFIG_PATH
/opt/local/bin

✗ pkg-config --cflags --libs python3
Package python3 was not found in the pkg-config search path.
Perhaps you should add the directory containing `python3.pc'
to the PKG_CONFIG_PATH environment variable
No package 'python3' found

@dmitriz
Copy link
Author

dmitriz commented Aug 15, 2019

✗ locate python3.pc
/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/pkgconfig/python3.pc
/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/pkgconfig/python3.pc
/usr/local/Cellar/python/3.6.5/lib/pkgconfig/python3.pc
/usr/local/lib/pkgconfig/python3.pc
➜ ptghci git:(master) ✗ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
➜ ptghci git:(master) ✗ pkg-config --cflags --libs python3
Package python3 was not found in the pkg-config search path.
Perhaps you should add the directory containing `python3.pc'
to the PKG_CONFIG_PATH environment variable
No package 'python3' found

@dmitriz
Copy link
Author

dmitriz commented Aug 15, 2019

✗ PKG_CONFIG_PATH=/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/pkgconfig
➜ ptghci git:(master) ✗ pkg-config --cflags --libs python3
Package python3 was not found in the pkg-config search path.
Perhaps you should add the directory containing `python3.pc'
to the PKG_CONFIG_PATH environment variable
No package 'python3' found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment