The gem directory is not writable as this user. Either install your gems elsewhere by setting $GEM_HOME to an alternative (and writable) directory before launching NetBeans, or run as root, or manually change the gem directory file permission, or build your own Ruby installation with user permissions. See the [url]http://wiki.netbeans.org/wike/view/RubyGems[/url] for more.
命令行里直接 GEM_HOME=~/.rubygems ~/netbeans-6.0/bin/netbeans却可以用。怒了,直接把export GEM_HOME=~/.rubygems放到~/netbeans-6.0/bin/netbeans文件最上边,好了!nnd,原来那 netbeans程序并不识别在.profile里的设置。
Update: 在把export GEM_HOME=~/.rubygems放到netbeans文件里时,要把路径替换为绝对路径(如我的export GEM_HOME=/home/。。。/.rubygems),否则不起作用。
对于路径的操作,自己配置。
对于路径的操作,自己配置。