First of all make sure to remove any existing ruby installation from your Debian Squeeze/Wheezy: apt-get remove ruby ruby1.8 Then follow these instructions to install Ruby 1.9.3 which will be needed to run Chef 11. Finally execute gem install chef to install your client.
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 […]
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 […]
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_188.8.131.52-1.dsc Download the following archives: wget http://deb.bearstech.com/squeeze/ruby-1.9.3/ruby1.9.1_184.108.40.206.orig.tar.gz wget http://deb.bearstech.com/squeeze/ruby-1.9.3/ruby1.9.1_220.127.116.11-1.debian.tar.gz For the package to be built, […]