시스템/LinuxSystem2010. 5. 19. 18:17

perl 을 사용할 때 아래와 같은 메시지를 만난다면.. 무시해도 된다-_-

정확한 원인은 Locale 설정 때문에 그런 듯 싶은데..

 

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "ko_KR.eucKR",
        LC_ALL = "ko_KR.eurKR",
        LC_MESSAGES = "ko_KR.eucKR",
        LANG = "ko_KR.eucKR"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

 

 

여턴 찝찝하면 이렇게 하면 된다.

 

Cshell 을 사용한다면..

# setenv LC_ALL C

 

다른 쉘을 사용한다면..

# LC_ALL=C;export LC_ALL

 

 

<참고 문서 : perl install manual>

Link : http://www.perl.or.kr/about/install.html

 

locale

Note: One possible reason for errors is that some external programs may be broken due to the combination of your environment and the way make test exercises them. For example, this may happen if you have one or more of these environment variables set: LC_ALL LC_CTYPE LC_COLLATE LANG. In some versions of UNIX, the non-English locales are known to cause programs to exhibit mysterious errors.

If you have any of the above environment variables set, please try

        setenv LC_ALL C

(for C shell) or

        LC_ALL=C;export LC_ALL

for Bourne or Korn shell) from the command line and then retry make test. If the tests then succeed, you may have a broken program that is confusing the testing. Please run the troublesome test by hand as shown above and see whether you can locate the program. Look for things like: exec, `backquoted command`, system, open(``|...'') or open(``...|''). All these mean that Perl is trying to run some external program.

Posted by @dmin @dmin

댓글을 달아 주세요