FreeBSD gettext 更新問題

筆記一下 gettext 衝突

Installing gettext-runtime-0.19.4...
pkg-static: gettext-runtime-0.19.4 conflicts with gettext-0.18.3.1_1 (installs files into the same place). 
Problematic file: /usr/local/bin/envsubst
*** Error code 70

Stop.
make: stopped in /usr/ports/devel/gettext-runtime

成因:

  The devel/gettext port has been split up in devel/gettext-runtime, a
  lightweight package containing runtime libraries, and devel/gettext-tools,
  a package containing developer tools.  The devel/gettext port still exists
  as a metaport.

  You must first delete the existing installation of gettext and then
  reinstall it.  This will break sudo, so you *must* do this in a root
  shell (sudo -i) if you use sudo.

解決方法

pkg delete -f gettext

參考資料 https://github.com/freebsd/freebsd-ports/blob/master/UPDATING

Leave a Comment