Translations of this page?:

FreeBSD 7.1/i386

Start is very simple. If you do not have gem installed:

 # pkg_add -r ruby18-gems

Next:

 # gem install rails

At this point, if you do not have ruby-iconv, and you don't if you took a clean start, because it is not automatically installed with the rails gem, and you have no hint about the fact that it is required, rails throws something like this:

 # rails
 /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/bin/../lib/rails_generator/options.rb:32:in `default_options': undefined method `write_inheritable_attribute' for Rails::Generator::Base:Class (NoMethodError)
        from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/bin/../lib/rails_generator/base.rb:90
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
        from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/bin/../lib/rails_generator.rb:34
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
        from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/bin/rails:13
        from /usr/local/bin/rails:19:in `load'
        from /usr/local/bin/rails:19

So, now you have to install the package:

 # pkg_add -r ruby18-iconv

or build the port:

 # cd /usr/ports/converters/ruby-iconv && make install clean
 
getting-started/installation/freebsd71i386.txt · Last modified: 2009/03/01 22:27 by gurdiga
 
Recent changes RSS feed Creative Commons License