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 […]