msgmerge在macOS Catalina上 [英] msgmerge on macos Catalina

查看:184
本文介绍了msgmerge在macOS Catalina上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为项目上的某些i18n工作运行unix命令行.使用 gettext库,我的问题是有关运行 msgmerge

I am trying to run a unix command line for some i18n work on a project. Using gettext library my issue is about running msgmerge

$ msgmerge
zsh: command not found: msgmerge

我尝试了brew instal gettextbrew link gettext,但是没有成功.在我以前的机器上运行良好,但是无法使其在全新安装上运行.

I tried brew instal gettext and brew link gettext but with no success. This was working well on my previous machine, but can't make it work on a fresh install.

我可以确认/usr/local/opt/gettext/bin/msgmerge中提供了二进制文件.

I can confirm binary is available in /usr/local/opt/gettext/bin/msgmerge.

推荐答案

已修复.运行brew reinstall gettext时,命令实际上给出了答案:

Fixed. When running brew reinstall gettext, command actually give the answer:

If you need to have gettext first in your PATH run:
  echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.zshrc

仅在打开新的zsh提示符时才触发导出,但PATH尚未更新,并且在重新打开新窗口时有效.

Export is only triggered when opening a new zsh prompt, PATH was not updated yet and worked when I re-openned a new window.

这篇关于msgmerge在macOS Catalina上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆