After installing astyle , command astyle does not work

蹲街弑〆低调 提交于 2019-12-22 10:52:55

问题


$cd astyle/build/mac
$make
$bin/astyle

I cannot set native locale, reverting to English


回答1:


astyle is testing the value of the LC_ALL environment variable. You can see its value with $ echo $LC_ALL: it most likely is empty.

A quick workaround is to do $ export LC_ALL="fr_FR.UTF-8" but Mac OS X can be a strange beast when it comes to environment variables. I'd suggest you read these three ressources:

http://www.dowdandassociates.com/content/howto-set-an-environment-variable-in-mac-os-x/

Setting environment variables in OS X?

https://superuser.com/questions/476752/setting-environment-variables-in-os-x-for-gui-applications



来源:https://stackoverflow.com/questions/16984056/after-installing-astyle-command-astyle-does-not-work

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!