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://stackoverflow.com/questions/13999790/python-audiolab-install-unable-to-install-or-find-libsndfile-on-mac-osx

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 했더니 완료.

 

 

 

0 Shares:
1 comment
Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

You May Also Like
Read More

1. 맥북으로는 어림없다.

<오늘의 실험> 무려! 딥러닝 수준에 다가가지도 못하는 몇년전의 LeNet-5 모델을 이용해 한번 작업을 구성하였다. 단순 성대 검출모델로서 라벨링된…