Skip to content

myokoym/grnenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grnenv Build Status

Make Groonga build easy. Inspired by rbenv.

Requirements

  • Bash
  • Autotools

Install

$ git clone https://github.com/myokoym/grnenv ~/.grnenv
$ export GRNENV_HOME=~/.grnenv
$ export PATH=$GRNENV_HOME/bin:$GRNENV_HOME/shims:$PATH

Usage

Build

$ grnenv build 5.1.2  # Specify Groonga version

Switch version

Global

$ grnenv global 5.1.2
$ groonga --version  # 5.1.2
$ cd ..
$ groonga --version  # 5.1.2

Only current directory

$ grnenv build 1.0.0
...
$ grnenv local 1.0.0
$ cat .groonga-version
1.0.0
$ groonga --version  # 1.0.0
$ cd ..
$ groonga --version  # 5.1.2

Use system installed Groonga

If Groonga is installed in /tmp/local:

$ grnenv local system
$ cat .groonga-version
system
$ which groonga
/tmp/local/bin/groonga

Export paths

The following command exports the current version's paths to LD_LIBRARY_PATH and PKG_CONFIG_PATH.

$ eval "$(grnenv export)"

Plugin

Install

$ grnenv plugin-install https://github.com/myokoym/groonga-plugin-default_encoding

Uninstall

$ grnenv plugin-uninstall groonga-plugin-default_encoding

About

Make Groonga build easy. Inspired by rbenv.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages