Giter VIP home page Giter VIP logo

grnenv-rs's Introduction

grnenv-rs

Build Status Build status

grnenv-rs is a tool to switch using multiple Groonga versions.

Currently, only confirmed to work on Windows 10, macOS Sierra(10.12), and Ubuntu Trusty (14.04 LTS).

Prerequisites

Windows + just download executables

  • Visual C++ Redistributable for Visual Studio 2015

x86_64 msvc target binaries are found at: https://github.com/cosmo0920/grnenv-rs/releases

And then, put binaries into $Env:USERPROFILE\bin.

Windows + build yourself

  • rustup

*nix via cargo install

Prepare the following dependent libraries:

  • C and C++ compilers like gcc or clang
  • autoconf
  • automake
  • libtool
  • pkg-config
  • pcre

download executables

x86_64 Linux

x86_64 musl Linux binaries are found at: https://github.com/cosmo0920/grnenv-rs/releases

  • grnenv-rs-VERSION-x86_64-unknown-linux-musl.tar.xz

And then, put binaries into $HOME\bin.

x86_64 macOS

x86_64 macOS binaries are found at: https://github.com/cosmo0920/grnenv-rs/releases

  • grnenv-rs-VERSION-x86_64-apple-darwin.zip

And then, put binaries into $HOME\bin.

build grnenv yourself

Prepare the following toolchain:

  • rust compiler (installed with rustup)

And then,

$ cargo install grnenv-rs

Plugin system

This tool has plugin system, which is using subcommand mechanism.

You should put grnenv-* executables into $PATH or ~/bin.

Notes

In Windows, grnenv-* subcommand should be portable executables. If you want to support Windows in subcommand, it recommends to use Rust language and build (i686|x86_64)-pc-windows-msvc target.

Usage

For Windows

PS> grnenv init

And then, Please create profile.ps1 with the following command:

notepad $profile.CurrentUserCurrentHost

And write the following thing:

. $Env:USERPROFILE\.groonga\shims\bin\source-groonga.ps1

then,

PS> grnenv install VERSION [--arch (x86|x64)]
PS> grnenv switch VERSION [--arch (x86|x64)]

Finally, restart powershell and use specified version of Groonga.

If you get an error, you should specify execution policy as follows:

PS> Set-ExecutionPolicy RemoteSigned

For *nix environment

$ grnenv init

And write the following content into .bash_profile or .zsh_profile etc.:

. $HOME/.groonga/shims/bin/source-groonga.sh

then,

$ grnenv install VERSION
$ grnenv switch VERSION

Finally, restart your shell and use specified version of Groonga.

LICENSE

MIT.

grnenv-rs's People

Contributors

cosmo0920 avatar

Watchers

 avatar  avatar  avatar

grnenv-rs's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.