ngx_mruby plugin for asdf version manager.
asdf plugin-add ngx_mruby https://github.com/beijingrb/asdf-ngx_mrubyFor Linux like Ubuntu you need these packages installed:
apt-get install make bison build-essential \
openssh-server rake ruby2.0 ruby2.0-dev \
libcurl4-openssl-dev libhiredis-dev libmarkdown2-dev \
libcap-dev libcgroup-dev libpcre3 libpcre3-dev \
libmysqlclient-devFor macOS, you need use homebrew to install:
brew install openssl pcre curlNote: lots of versions may not work on macOS due to some build options.
List all available ngx_mruby versions:
asdf list-all ngx_mrubyInstall one version of ngx_mruby:
asdf install ngx_mruby 1.20.1Set a local version:
asdf local ngx_mruby 1.20.1then nginx will be available in your shell path.
More asdf command details to asdf README.