피카부 RSS 태그 관리 글쓰기 방명록 다시 시작하는 개발 블로그
2014-11-19 16:56:22
(Python에서 PIL모듈을 사용하기 위해 모듈을 찾았는데 에러가 나와서 해결 방법을 메모) linux에서 흔히 모듈을 찾을 때 사용하는 locate. mac에서는 초기 상태로는 사용이 안되기 때문에 사용 방법을 메모. 먼저 찾고 싶은 모듈을 찾아 본다.
]# locate PIL  
그럼 보기 좋게 에러가 나온다. WARNING: The locate database (/var/db/locate.database) does not exist. To create the database, run the following command: sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist Please be aware that the database can take some time to generate; once the database has been created, this message will no longer appear. 음 대충 보니 The locate database =/var/db/locate.database 이게 없다는 말 같은데? 그 밑에 친절하게 명령어도 있으니 실행해보자
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist
음 아무것도 안나오네 그럼 다시 실행해보자
locate PIL
같은 에러가 나온다. 음 다시 명령어 실행해보니 이미 로드 되어 있다고 하네. 그럼 로딩에 시간이 걸리는 것인가. 한 3분뒤에 다시
locate PIL
잘 된다.

'Dev > Mac' 카테고리의 다른 글

'X11/Xlib.h' file not found 에러가 나왔을 때 해결 방법  (0) 2014.11.19