1.
$sudo easy_install scikits.audiolab
실행시 다음과 같은 에러메세지 발생
error: sndfile (http://www.mega-nerd.com/libsndfile/) library not found.
Directories to search for the libraries can be specified in the
site.cfg file, in section [sndfile].
2.
libsndfile을 설치하는 방법은 다음과 같다.
http://www.mega-nerd.com/libsndfile/#Download
에서 다운로드를 받고
- Configure it:
./configure
- Build it:
make -j8
- Install it (requires administrative rights):
sudo make -j8 install
하라고 되어있으나, 다음과 같은 에러가 발생
sndfile-play.c:61:11: fatal error: 'Carbon.h' file not found.
3. 출처 : http://stackoverflow.com/questions/20990375/fatal-error-installing-libsndfile-on-os-x-mavericks
- Search Carbon.h in your machine using: $ find /Applications/Xcode.app/Contents/Developer/ | grep Carbon.h
- under libsndfile src folder, do a: $ vim programs/Makefile
- Look for CFLAGS, edit the file and ensure CFLAGS is configured:
- CFLAGS = –I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Headers/ -g -O2 -std=gnu99 -Wall -Wextra -Wdeclaration-after-statement -Wpointer-arith -funsigned-char -Wstrict-prototypes -Wmissing-prototypes -Wcast-align -Wcast-qual -Wnested-externs -Wbad-function-cast -Wwrite-strings -Wundef -pipe -I/Developer/Headers/FlatCarbon
- $ make
- $ make check (All test should pass), then:
- $ sudo make install
Makefile을 수정해서 CFLAGS 항목을 찾고, 위의 볼드체로 표시된 부분만 grep해서 얻은 정보로 넣으면 된다. 내 노트북에서는
Seok$ find /Applications/Xcode.app/Contents/Developer/ | grep Carbon.h
/Applications/Xcode.app/Contents/Developer//Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Headers/Carbon.h
/Applications/Xcode.app/Contents/Developer//Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Headers/Carbon.h
라고 검색되길래 /Applications/Xcode.app/Contents/Developer//Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Headers/
주소로 넣어줬더니 잘 설치되었고,
다시 처음으로 돌아가 sudo easy_install scikits.audiolab 했더니 완료.
1 comment
That insight solves the promleb. Thanks!