Skip to content

Instantly share code, notes, and snippets.

@aspyatkin
Last active January 12, 2016 18:40
Show Gist options
  • Save aspyatkin/2a70736080835ac594ba to your computer and use it in GitHub Desktop.
Save aspyatkin/2a70736080835ac594ba to your computer and use it in GitHub Desktop.

Installing Berkshelf 4.0.1 on Cygwin x64

Prerequisites

Installation

Install Gecode

Obtain Gecode tarball

$ curl -O http://www.gecode.org/download/gecode-3.7.3.tar.gz
$ tar zxvf gecode-3.7.3.tar.gz

Configure, make and install

$ cd gecode-3.7.3
$ CC=g++ ./configure --disable-doc-dot --disable-doc-search --disable-doc-tagfile --disable-doc-chm --disable-doc-docset --disable-qt --disable-examples
$ make
$ make install

Copy libraries and source code

$ cp libgecode* /lib/
$ cp -r gecode/* /usr/include/

Cleanup

$ cd ../
rm -rf gecode-3.7.3 gecode-3.7.3.tar.gz

Install Berkshelf

USE_SYSTEM_GECODE=1 gem install berkshelf -v 4.0.1

Awknowledgements

This gist in inspired by How to Install Berkshelf version3 on Cygwin 64bit. I've decided not to fork it because I wanted to:

  • split up Ruby and Berkshelf installation processes;
  • provide the instructions for updated Ruby 2.2.4 and Berkshelf 4.0.1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment