PC-BSD installs
portupgrade as default, but, it uses Ruby 1.8 - not Ruby 1.9. In this article, I introduce the way to rebuild
portupgrade 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.9and 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 portupgrade
# cd /usr/ports/ports-mgmt/portupgrade
# make deinstall
# make install clean
After rebuilding (optional)
Fix the information about ports dependencies
$ sudo pkgdb -F
No comments:
Post a Comment