Skip to content

Instantly share code, notes, and snippets.

@nMustaki
Created February 15, 2012 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nMustaki/1836648 to your computer and use it in GitHub Desktop.
Save nMustaki/1836648 to your computer and use it in GitHub Desktop.
Install rvm and iconv on Freebsd 8.2
here is the complete list of what I needed to do in Freebsd 8.2
1 pkg_add -r ruby
2 cd /usr/ports/devel/autoconf;make install clean
3 cd /usr/ports/devel/automake;make install clean
4 bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
5 source /etc/profile.d/rvm.sh (add rvm path in bash/zsh)
6 TEST : rvm | head -1 ----> should get : rvm is a function
8 rvm --skip-autoreconf pkg install readline
9 rvm --skip-autoreconf pkg install iconv
10 rvm install 1.8.7 --with-iconv-dir=$rvm_path/usr
11 TEST : irb -----> require 'iconv' -----> should get : true
12 Optional : set this ruby version as system default : rvm use 1.8.7 --defaults
13 Optional : specify the ruby version your project should use
cd your_project_folder && rvm --rvmrc --create 1.8.7 or rvm --rvmrc --create 1.8.7@gemset_name
Source:
- http://my.opera.com/weirdbricks/blog/2011/10/22/ruby-enterprise-edition-ree-1-8-7-on-freebsd-using-rvm
- http://beginrescueend.com/packages/iconv/
- http://exceptionz.wordpress.com/2010/02/03/how-to-fix-the-iconv-require-error-in-ruby-1-9/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment