beijingrb / asdf-ngx_mruby

ngx_mruby plugin for ASDF version manager.

Home Page:https://github.com/asdf-vm/asdf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

asdf-ngx_mruby

ngx_mruby plugin for asdf version manager.

Install

asdf plugin-add ngx_mruby https://github.com/beijingrb/asdf-ngx_mruby

Prerequisites

For 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-dev

For macOS, you need use homebrew to install:

brew install openssl pcre curl

Note: lots of versions may not work on macOS due to some build options.

Usage

List all available ngx_mruby versions:

asdf list-all ngx_mruby

Install one version of ngx_mruby:

asdf install ngx_mruby 1.20.1

Set a local version:

asdf local ngx_mruby 1.20.1

then nginx will be available in your shell path.

More asdf command details to asdf README.

About

ngx_mruby plugin for ASDF version manager.

https://github.com/asdf-vm/asdf

License:MIT License


Languages

Language:Shell 100.0%