Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opam install srt failed on mac 11.5.2 #2

Open
WitzHsiao opened this issue Dec 17, 2021 · 3 comments
Open

opam install srt failed on mac 11.5.2 #2

WitzHsiao opened this issue Dec 17, 2021 · 3 comments

Comments

@WitzHsiao
Copy link

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><>  🐫
⬇ retrieved srt.0.2.0  (cached)
⬇ retrieved liquidsoap.2.0.1  (cached)
[ERROR] The compilation of conf-srt.1 failed at "pkg-config --exists srt".

#=== ERROR while compiling conf-srt.1 =========================================#
# context     2.1.2 | macos/x86_64 | ocaml-base-compiler.4.13.1 | https://opam.ocaml.org#3bc4295d
# path        ~/.opam/4.13.1/.opam-switch/build/conf-srt.1
# command     ~/.opam/opam-init/hooks/sandbox.sh build pkg-config --exists srt
# exit-code   1
# env-file    ~/.opam/log/conf-srt-29586-f637e9.env
# output-file ~/.opam/log/conf-srt-29586-f637e9.out



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><>  🐫
β”Œβ”€ The following actions failed
β”‚ Ξ» build conf-srt 1
└─
╢─ No changes have been performed
@toots
Copy link
Member

toots commented Dec 18, 2021

Have you installed the umnderlying srt library, either via:

brew install srt

or using opam depext:

opam depext srt

@WitzHsiao
Copy link
Author

@toots yes, I did have installed srt already

@toots
Copy link
Member

toots commented Dec 25, 2021

This is most likely an issue with macos/brew and openssl. You should set PKG_CONFIG_PATH to where the openssl keg is installed, here it is:

export PKG_CONFIG_PATH="/opt/homebrew/opt/openssl@3/lib/pkgconfig"
opam install srt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants