Mosklia / gcc-hentai

让你的 GCC 变得更可爱!
GNU General Public License v3.0
637 stars 15 forks source link

windows的WSL的Ubuntu虚拟机可以使用吗 #1

Closed ghost closed 8 months ago

ghost commented 10 months ago

我在\usr\share\locale\zh_CN\LC_MESSAGES下不能找到gcc.mo文件,将编译好的mo文件放入文件夹再使用export LANG=zh_CN.UTF-8也没有效果,有什么办法吗

Mosklia commented 10 months ago

这个我不太清楚欸,后面研究一下

你要不先检查一下有没有 xgettext 这个命令?

hellocym commented 10 months ago

我在wsl和非wsl上面通过apt安装gcc,但是都没有找到gcc.mo 是不是应该通过其他方式安装?

ghost commented 10 months ago

这个我不太清楚欸,后面研究一下

你要不先检查一下有没有 xgettext 这个命令?

xgettext是有的,运行 xgettext --version 反馈xgettext (GNU gettext-tools) 0.21 Copyright (C) 1995-2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later https://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Ulrich Drepper. 应该是已经安装成功了

RimuruChan commented 10 months ago

我也

Hydrostic commented 10 months ago

@hellocym @Enmmma 你先看看自己gcc大版本号是什么 比如说gcc11.3 大版本号就是11 然后你运行 apt install gcc-11-locales 然后在文件夹下就有 gcc-11.mo 你用这个项目生成的 mo 替换就行了

Harryl7 commented 10 months ago

@Hydrostic 请问安装之后的 gcc-11.mo 也应该在 /usr/share/locale/zh_CN/LC_MESSAGES 下吗,我的wsl里没找到

Hydrostic commented 10 months ago

@Hydrostic 请问安装之后的 gcc-11.mo 也应该在 /usr/share/locale/zh_CN/LC_MESSAGES 下吗,我的wsl里没找到

是的 或者你看看有没有gcc.mo