In the
previous article, I introduce thee way to rebuild portupgrade to use Ruby 1.9 on
PC-BSD. By the way, on
PC-BSD, there are two more libraries that depend on ruby 1.8 -
Korundum and QtRuby. So that I introduce the way to rebuild these to use Ruby 1.9.
Before rebuilding
- Prepare ports on /usr/ports
- Install ccache to build Ruby 1.9, on /usr/ports/devel/ccache
- Add RUBY_DEFAULT_VER=1.9 and RUBY_VER=1.9 to /etc/make.conf
- Deinstall Ruby 1.8 on /usr/ports/lang/ruby18
- Install Ruby 1.9 on /usr/ports/lang/ruby19
Rebuild kdebindings
# setenv FORCE_PKG_REGISTER yes
# cd /usr/ports/devel/kdebindings4-ruby-qtruby
# make deinstall
# make install clean
# cd /usr/ports/devel/kdebindings4-ruby-korundum
# make deinstall
# make install clean
# cd /usr/ports/devel/kdebindings4-ruby
# make deinstall
# make install clean
# unsetenv FORCE_PKG_REGISTER
# pkg_deinstall --force ruby18-kdebindings-krossruby-4.7.3
Only
krossruby is not ready for ruby 1.9, so that we should deselect option too when we do
make install on
/usr/ports/devel/kdebindings4-ruby.
After rebuilding (optional, but recommended)
Fix the information about ports dependencies
$ sudo pkgdb -F
No comments:
Post a Comment