2013-01-11 31 views
0

我正在使用mint Linux Mint 13 maya(linux 3.2.0-23-generic x86-64)
我正在嘗試安裝scikits.audiolab來執行一些音頻信號處理。我已經下載了所有先決條件,即(python-dev python-numpy python-setuptools libsndfile-dev)。 我已經site.cfg作爲scikits audiolab安裝錯誤

[sndfile] 
include_dirs = /usr/include/ 
library_dirs = /usr/lib/x86_64-linux-gnu/ 

我得到當我做 '$定位asound在' 我得到

/usr/include/alsa/asoundef.h 
/usr/include/alsa/asoundlib.h 
/usr/include/alsa/sound/asound_fm.h 
/usr/include/linux/ultrasound.h 
/usr/include/sound/asound.h 
/usr/include/sound/asound_fm.h 
/usr/include/sys/asoundlib.h 
/usr/include/sys/ultrasound.h 
/usr/include/x86_64-linux-gnu/sys/ultrasound.h 
/usr/lib/i386-linux-gnu/libasound.so.2 
/usr/lib/i386-linux-gnu/libasound.so.2.0.0 
/usr/lib/i386-linux-gnu/alsa-lib/libasound_module_conf_pulse.so 
/usr/lib/i386-linux-gnu/alsa-lib/libasound_module_ctl_arcam_av.so 
/usr/lib/i386-linux-gnu/alsa-lib/libasound_module_ctl_bluetooth.so 
/usr/lib/i386-linux-gnu/alsa-lib/libasound_module_ctl_oss.so 
/usr/lib/i386-linux-gnu/alsa-lib/libasound_module_ctl_pulse.so 
/usr/lib/i386-linux-gnu/alsa-lib/libasound_module_pcm_bluetooth.so 
/usr/lib/i386-linux-gnu/alsa-lib/libasound_module_pcm_jack.so 
/usr/lib/i386-linux-gnu/alsa-lib/libasound_module_pcm_oss.so 
/usr/lib/i386-linux-gnu/alsa-lib/libasound_module_pcm_pulse.so 
/usr/lib/i386-linux-gnu/alsa-lib/libasound_module_pcm_speex.so 
/usr/lib/i386-linux-gnu/alsa-lib/libasound_module_pcm_upmix.so 
/usr/lib/i386-linux-gnu/alsa-lib/libasound_module_pcm_usb_stream.so 
/usr/lib/i386-linux-gnu/alsa-lib/libasound_module_pcm_vdownmix.so 
/usr/lib/i386-linux-gnu/alsa-lib/libasound_module_rate_samplerate.so 
/usr/lib/i386-linux-gnu/alsa-lib/libasound_module_rate_samplerate_best.so 
/usr/lib/i386-linux-gnu/alsa-lib/libasound_module_rate_samplerate_linear.so 
/usr/lib/i386-linux-gnu/alsa-lib/libasound_module_rate_samplerate_medium.so 
/usr/lib/i386-linux-gnu/alsa-lib/libasound_module_rate_samplerate_order.so 
/usr/lib/i386-linux-gnu/alsa-lib/libasound_module_rate_speexrate.so 
/usr/lib/i386-linux-gnu/alsa-lib/libasound_module_rate_speexrate_best.so 
/usr/lib/i386-linux-gnu/alsa-lib/libasound_module_rate_speexrate_medium.so 
/usr/lib/x86_64-linux-gnu/libasound.so 
/usr/lib/x86_64-linux-gnu/libasound.so.2 
/usr/lib/x86_64-linux-gnu/libasound.so.2.0.0 
/usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_conf_pulse.so 
/usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_ctl_arcam_av.so 
/usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_ctl_bluetooth.so 
/usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_ctl_oss.so 
/usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_ctl_pulse.so 
/usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_pcm_bluetooth.so 
/usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_pcm_jack.so 
/usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_pcm_oss.so 
/usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_pcm_pulse.so 
/usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_pcm_speex.so 
/usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_pcm_upmix.so 
/usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_pcm_usb_stream.so 
/usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_pcm_vdownmix.so 
/usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_rate_samplerate.so 
/usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_rate_samplerate_best.so 
/usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_rate_samplerate_linear.so 
/usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_rate_samplerate_medium.so 
/usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_rate_samplerate_order.so 
/usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_rate_speexrate.so 
/usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_rate_speexrate_best.so 
/usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_rate_speexrate_medium.so 
/usr/share/doc/libasound2 
/usr/share/doc/libasound2-dev 
/usr/share/doc/libasound2-plugins 
/usr/share/doc/libasound2/NEWS.Debian.gz 
/usr/share/doc/libasound2/changelog.Debian.gz 
/usr/share/doc/libasound2/copyright 
/usr/share/doc/libasound2/examples 
/usr/share/doc/libasound2/examples/asoundrc.txt.gz 
/usr/share/doc/libasound2-plugins/README-arcam-av 
/usr/share/doc/libasound2-plugins/README-jack 
/usr/share/doc/libasound2-plugins/README-maemo.gz 
/usr/share/doc/libasound2-plugins/README-pcm-oss 
/usr/share/doc/libasound2-plugins/README-pulse 
/usr/share/doc/libasound2-plugins/a52.txt 
/usr/share/doc/libasound2-plugins/changelog.Debian.gz 
/usr/share/doc/libasound2-plugins/copyright 
/usr/share/doc/libasound2-plugins/examples 
/usr/share/doc/libasound2-plugins/lavcrate.txt 
/usr/share/doc/libasound2-plugins/samplerate.txt 
/usr/share/doc/libasound2-plugins/speexdsp.txt 
/usr/share/doc/libasound2-plugins/speexrate.txt 
/usr/share/doc/libasound2-plugins/upmix.txt 
/usr/share/doc/libasound2-plugins/vdownmix.txt 
/usr/share/doc/libasound2-plugins/examples/a52.conf_pulse 
/usr/share/doc/libasound2-plugins/examples/asound.conf_jack 
/usr/share/doc/libasound2-plugins/examples/asound.conf_oss 
/usr/share/local-repository/binary/lib32asound2_1.0.25-1ubuntu10_amd64.deb 
/usr/src/linux-headers-3.2.0-23/include/linux/ultrasound.h 
/usr/src/linux-headers-3.2.0-23/include/sound/asound.h 
/usr/src/linux-headers-3.2.0-23/include/sound/asound_fm.h 
/usr/src/linux-headers-3.2.0-23/include/sound/asoundef.h 
/usr/src/linux-headers-3.2.0-23/sound/oss/dmasound 
/usr/src/linux-headers-3.2.0-23/sound/oss/dmasound/Kconfig 
/usr/src/linux-headers-3.2.0-23/sound/oss/dmasound/Makefile 
/usr/src/linux-headers-3.2.0-23-generic/include/linux/ultrasound.h 
/var/cache/apt/archives/libasound2-dev_1.0.25-1ubuntu10.1_amd64.deb 
/var/lib/alsa/asound.state 
/var/lib/dpkg/info/libasound2-dev.list 
/var/lib/dpkg/info/libasound2-dev.md5sums 
/var/lib/dpkg/info/libasound2-dev.postinst 
/var/lib/dpkg/info/libasound2-plugins:amd64.list 
/var/lib/dpkg/info/libasound2-plugins:amd64.md5sums 
/var/lib/dpkg/info/libasound2-plugins:i386.list 
/var/lib/dpkg/info/libasound2-plugins:i386.md5sums 
/var/lib/dpkg/info/libasound2:amd64.list 
/var/lib/dpkg/info/libasound2:amd64.md5sums 
/var/lib/dpkg/info/libasound2:amd64.postinst 
/var/lib/dpkg/info/libasound2:amd64.postrm 
/var/lib/dpkg/info/libasound2:amd64.preinst 
/var/lib/dpkg/info/libasound2:amd64.shlibs 
/var/lib/dpkg/info/libasound2:amd64.symbols 
/var/lib/dpkg/info/libasound2:i386.list 
/var/lib/dpkg/info/libasound2:i386.md5sums 
/var/lib/dpkg/info/libasound2:i386.postinst 
/var/lib/dpkg/info/libasound2:i386.postrm 
/var/lib/dpkg/info/libasound2:i386.preinst 
/var/lib/dpkg/info/libasound2:i386.shlibs 
/var/lib/dpkg/info/libasound2:i386.symbols 

我如何設置以下錯誤

SndfileInfo: 
    FOUND: 
libraries = ['sndfile'] 
library_dirs = ['/usr/lib/x86_64-linux-gnu/'] 
include_dirs = ['/usr/include/'] 

    AlsaInfo: 
libraries asound not found in /usr/local/lib 
libraries asound not found in /usr/lib 
scikits/audiolab/soundio/setup.py:21: UserWarning: Alsa not found - alsa backend not build 
warnings.warn("Alsa not found - alsa backend not build") 
CoreAudioInfo: 
scikits/audiolab/soundio/setup.py:31: UserWarning: CoreAudio not found - CoreAudio backend not build 
warnings.warn("CoreAudio not found - CoreAudio backend not build") 

。 py找到這些庫。有什麼我失蹤? 我見過http://forum.ubuntu-fr.org/viewtopic.php?pid=3748397scikits.audiolab on Ubuntu Oneiric - ImportError: No module named _sndfile

這是造成這麼多frustation

UPDATE

在我的電腦的這個錯誤之一是取消了對完全未安裝scikits-AUDIOLAB的和ALSA,然後更新apt-get在重新安裝alsa和scikits-audiolab之前。

回答

3

下面在Ubuntu上爲我做了alsa音頻後端工作。

作爲指向http://cournape.github.io/audiolab/installing.html#installation-from-sources,安裝alsa標頭:

$ sudo apt-get install libasound2-dev 

在源目錄或者,

/path-to/scikits.audiolab-0.11.0/

,或者,如果使用點(源默認下載到/ tmp)

/tmp/pip-build/scikits.audiolab

創建site.cfg文件,除了[sndfile]部分創建一個[ALSA]部分:

[sndfile] 
include_dirs = /usr/include 
library_dirs = /usr/lib/x86_64-linux-gnu/ 
[alsa] 
include_dirs = /usr/include/alsa 
library_dirs = /usr/lib/x86_64-linux-gnu 

使用定位或apt-文件列表中找到,其中asoundlib.h(include_dirs)和libasound .so(library_dirs)位於您的系統中。

好了,在完成所有這些並嘗試重新安裝之後,它仍然無法工作。我一直得到同樣的令人沮喪的消息:

SndfileInfo: 
    FOUND: 
    libraries = ['sndfile'] 
    library_dirs = ['/usr/lib/x86_64-linux-gnu'] 
    include_dirs = ['/usr/include'] 

AlsaInfo: 
    alsa not found 
scikits/audiolab/soundio/setup.py:21: UserWarning: Alsa not found - alsa backend not build 
    warnings.warn("Alsa not found - alsa backend not build") 

所以,我不得不使用這個技巧。打開文件/path-to/scikits.audiolab-0.11.0/scikits/audiolab/soundio/setup.py和替換

14 alsa_info = info_factory('alsa', ['asound'], ['alsa/asoundlib.h'], 
15       classname='AlsaInfo')() 

alsa_info = info_factory('alsa', ['asound'], ['asoundlib.h'], 
         classname='AlsaInfo')() 

如果這樣做能爲更多的人,我們可以請求David Cournapeau(scikits.audiolab作者)製作這個補丁。

+0

Hi @ ravich2_7183,它很有趣,你找到了解決這個問題的方法。我會檢查出這個補丁/ heck,因爲我花了一些時間,現在正忙於工作。在過去,我重新安裝了很多東西讓audiolabs在我的linuxMint13上運行。我希望,我已經找到了這樣的補丁。 – vvy