错误:perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_CTYPE = "UTF-8", LANG = "en_US.UTF-8"

计算机连接服务器并使用perl的时候,可能会报上述错误 这个时候,你需要在主机上的 ~/.bashrc 或 ~/.bash_profile 文件加上下面的参数, # Setting for the new UTF-8 terminal support in...

计算机连接服务器并使用perl的时候,可能会报上述错误


attachments-2022-12-bfrBnShU63ad2f0b2d125.png

这个时候,你需要在主机上的 ~/.bashrc  ~/.bash_profile 文件加上下面的参数,

# Setting for the new UTF-8 terminal support in Lion

export LC_CTYPE=en_US.UTF-8

export LC_ALL=en_US.UTF-8

如果是使用zshmac,则是修改~/.zshrc文件

# Setting for the new UTF-8 terminal support in Lion

LC_CTYPE=en_US.UTF-8

LC_ALL=en_US.UTF-8

修改完成以后重新登录服务器即可正常使用perl

  • 发表于 2022-12-29 14:10
  • 阅读 ( 1076 )
  • 分类:linux

0 条评论

请先 登录 后评论
xun
xun

电路元件工程师

66 篇文章

作家榜 »

  1. omicsgene 654 文章
  2. 安生水 325 文章
  3. Daitoue 167 文章
  4. 生物女学霸 120 文章
  5. 红橙子 78 文章
  6. CORNERSTONE 72 文章
  7. rzx 67 文章
  8. xun 66 文章