blog/content/posts/2011/01/29/netbeans-6-9-rails-3-ubuntu-10-10.md
2022-06-25 08:47:06 +01:00

1.4 KiB

title date tags category
Netbeans 6.9 for Rails 3 on Ubuntu 10.10 2011-01-29 14:51:07
linux
maverick
netbeans
ruby
ubuntu
ruby

I am a lazy person. I do like things to just work, run out of the box, name it. I like Ubuntu for it's packaging system and ease of installation of various software. However using Netbeans from the default repo could cause you a headache when developing Rails 3 apps. These just won't run. Let us start with installing the newest version of the IDE

sudo apt-get install netbeans
#then go to the Tools->Plugins->Available and install all regarding Ruby

Now go ahead and try running some Rails app.

/var/lib/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require': /var/lib/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/cache/mem_cache_store.rb:32: invalid multibyte escape: /[x00-x20%x7F-xFF]/ (SyntaxError)

you say ? Here's a quick fix

#edit /usr/share/netbeans/6.9/etc/netbeans.conf
#=> append -J-Druby.no.kcode=true to the the netbeans_default_options and volia
# the whole line im my case goes like that:
netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.pmoffscreen=false -J-Druby.no.kcode=true"

Long term solution ? Wait for Netbeans 7.0 as the devs promised it to be fixed there