Closed oalders closed 1 month ago
PERL_MM_OPT should be
PERL_MM_OPT='INC=-I/opt/homebrew/Cellar/cmark/0.31.0/include LIBS="-L/opt/homebrew/Cellar/cmark/0.31.0/lib -lcmark"'
Is this worth documenting somewhere for people like me?
The fact that you need -lcmark
is documented here: https://metacpan.org/pod/CommonMark#Installation-from-a-CPAN-tarball
For anyone interested, @haarg pointed out that this incantation works on ARM Macs:
LIBRARY_PATH=/opt/homebrew/lib CPATH=/opt/homebrew/include cpm install -g CommonMark
I may not be doing this correctly, but I figured opening an issue here would be a good starting point.
macOS: 14.5 (sonoma) arch: arm64