Python audiolab安装,无法在Mac OSX上安装(或找到)libsndfile [英] Python audiolab install, unable to install (or find) libsndfile on Mac OSX

查看:408
本文介绍了Python audiolab安装,无法在Mac OSX上安装(或找到)libsndfile的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在Mac上安装scikits.audiolab-0.11.0,但需要libsndfile: http://www.mega- nerd.com/libsndfile/.我确实使用libsndfile_python-1.0.0-py2.7-macosx10.5.mpkg安装了libsndfile,但是audiolab安装程序给出了一个错误:找不到libsndfile库.来自audiolab安装程序的错误如下.它建议可以在site.cfg中指定libsndfile的位置.

Trying to install scikits.audiolab-0.11.0 on Mac, bit it requires libsndfile: http://www.mega-nerd.com/libsndfile/. I did install libsndfile supposedly, using libsndfile_python-1.0.0-py2.7-macosx10.5.mpkg, but the audiolab setup gives an error: libsndfile library not found. The error from the audiolab installer is below. It suggests that the location of the libsndfile can be specified in the site.cfg.

我对这类安装的经验不足,无法理解.谁能提供一些有关如何完成此工作的建议?或在下面回答我的问题?

My inexperience with these type of installs are getting in the way of understanding this. Can anyone offer some advice on how to get this done?, or answer my questions below?

  • 如果libsndfile安装在哪里,那么我可以指定位置吗?否则如何正确安装?
  • 什么是site.cfg文件?我下载的scikits.audiolab-0.11.0文件夹中看到一个site.cfg.bdist_wininst和一个site.cfg.win32.
  • 在[sndfile]部分中的site.cfg文件中指定"的含义是什么(请参见下面的错误).这是否意味着我应该将方括号之间的/path/to/libsndfile替换为"sndfile"一词?

顺便说一句,我签入了/usr/lib目录,没有libsndfile.我认为默认情况下,audiolab安装程序会在其中查找文件.

By the way, I checked in my /usr/lib dir and there is no libsndfile. I take it that there is where the audiolab setup will look for the file, by default.

感谢阅读和任何帮助.

audiolab安装程序出现错误:

Error from audiolab installer:

numpy.distutils.system_info.NotFoundError: 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].

推荐答案

libsndfile_python听起来像是绑定到libsndfile而不是libsndfile本身.您可能没有安装libsndfile.但是,如果您已经安装了开发人员工具,则安装起来应该非常容易:

libsndfile_python sounds like a binding to libsndfile rather than libsndfile itself. You probably do not have libsndfile installed. It should, however, be quite easy to install if you already have the developer tools installed:

  1. 首先,下载最新的源文件.
  2. 在某个地方打开包装.
  3. 打开终端,然后cd到您解压缩的目录.
  4. 配置它:./configure
  5. 构建它:make -j8
  6. 安装它(需要管理权限):sudo make -j8 install
  1. First, download the latest source.
  2. Unpack it somewhere.
  3. Open Terminal and cd to the directory you unpacked.
  4. Configure it: ./configure
  5. Build it: make -j8
  6. Install it (requires administrative rights): sudo make -j8 install

然后您可以删除解压缩的目录,但是您可能希望保留该目录以便于卸载.

You can then delete the directory you unpacked, but you may want to keep it for easy uninstallation.

这篇关于Python audiolab安装,无法在Mac OSX上安装(或找到)libsndfile的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆