Skip to content

Instantly share code, notes, and snippets.

@SqrtNegInf
Last active February 12, 2020 04:28
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 SqrtNegInf/4af680d63669a75c19360f45ad4677d5 to your computer and use it in GitHub Desktop.
Save SqrtNegInf/4af680d63669a75c19360f45ad4677d5 to your computer and use it in GitHub Desktop.
Build rakubrew for MacOS if default App-Rakubrew install isn't working (i.e. for older MacOS, 10.11 - 10.13)
#!/bin/sh
## make my own 'rakubrew' (avoid issues with 10.15, ____chkstk_darwin symbol not found)
## this is a simplified version of 'release-stuff/build-macos.sh'
#
# 2020-02-11
# start with: git clone https://github.com/Raku/App-Rakubrew.git
# afterwards, move 'rakubrew' to the appropriate location
cp resources/Config.pm.tmpl lib/App/Rakubrew/Config.pm
perl -pi -E 's/<\%distro_format\%>/macos/' lib/App/Rakubrew/Config.pm
#cpanm -n PAR::Packer # was failing for me, not sure why
cpan -i PAR::Packer
cpanm --installdeps -n .
cpanm --installdeps -n --cpanfile cpanfile.macos .
/usr/local/bin/pp -I lib -M App::Rakubrew::Shell::* -M IO::Socket::SSL -o rakubrew script/rakubrew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment