ruby


Installing Gitlab on Debian

First install these packages to resolve all dependancies: apt-get install -y build-essential zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev curl git-core openssh-server redis-server checkinstall libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev logrotate python python-docutils Install Ruby 2.0: cd /tmp wget ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz tar -xvpf ruby-2.0.0-p247.tar.gz cd ruby-2.0.0-p247 ./configure make make install Install Bundler: gem install bundler Create the git […]


Installing test-kitchen from github

Normally you would do this to install test-kitchen: sudo gem install test-kitchen To get the latest stable dev version from github, do it rather this way: cd /tmp git clone https://github.com/test-kitchen/test-kitchen.git cd test-kitchen/ sudo gem build test-kitchen.gemspec sudo gem install test-kitchen-1.1.2.dev.gem You eventuelly need to replace test-kitchen-1.1.2.dev.gem with the version that is shown after the build […]


Installing Homebrew on Mac OS X

Just type the following command on a command line: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" The output should be similar to this: ==> This script will install: /usr/local/bin/brew /usr/local/Library/… /usr/local/share/man/man1/brew.1 ==> The following directories will be made group writable: /usr/local/. /usr/local/bin /usr/local/include /usr/local/lib /usr/local/lib/pkgconfig /usr/local/share /usr/local/share/man /usr/local/share/man/man1 /usr/local/share/doc ==> The following directories will have their group […]


Invalid byte sequence in US-ASCII when installing Ruby Bundler

You can fix the error by installing locales-all, on Debian by doing: apt-get install locales-all And then adding this to your GemFile: if RUBY_VERSION =~ /1.9/ Encoding.default_external = Encoding::UTF_8 Encoding.default_internal = Encoding::UTF_8 end You might also want to try to export the variables: export LANG="en_US.UTF-8" export LC_ALL="en_US.UTF-8" Either one of the 2 solutions will solve […]


Installing Ruby 1.9.3 on Debian using RVM

First of all, check if there's a Ruby package installed on your Debian and remove it, as it may conflict later on: apt-get remove ruby ruby1.8  Now some prerequesites for Debian: apt-get -y install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion locales-all […]


Installing Ruby 1.9.3 on Debian Squeeze

This is a quick way to install Ruby 1.9.3 on Debian. The default version on Squeeze is 1.9.1, but on depending on what you would like to do, you may need a more recent version. Download the dsc file: wget http://deb.bearstech.com/squeeze/ruby-1.9.3/ruby1.9.1_1.9.3.0-1.dsc Download the following archives: wget http://deb.bearstech.com/squeeze/ruby-1.9.3/ruby1.9.1_1.9.3.0.orig.tar.gz wget http://deb.bearstech.com/squeeze/ruby-1.9.3/ruby1.9.1_1.9.3.0-1.debian.tar.gz For the package to be built, […]


Install Chef 10 Client on Debian

The installation is very similar to the server installation, with a few differences. For the server installation have a look here. First of all add the Opscode repository to apt:  echo "deb http://apt.opscode.com/ `lsb_release -cs`-0.10 main" | tee /etc/apt/sources.list.d/opscode.list lsb_release -cs will correspond to the name if your release (put in "squeeze" or "wheezy" instead for example […]


Installing Chef 10 Server on Debian

First of all add the Opscode repository to apt:  echo "deb http://apt.opscode.com/ `lsb_release -cs`-0.10 main" | tee /etc/apt/sources.list.d/opscode.list Then add the GPG key: mkdir -p /etc/apt/trusted.gpg.d gpg –keyserver keys.gnupg.net –recv-keys 83EF826A gpg –export packages@opscode.com | tee /etc/apt/trusted.gpg.d/opscode-keyring.gpg > /dev/null Then install the Chef Server: apt-get update apt-get upgrade apt-get install opscode-keyring apt-get install chef chef-server While […]