CentOS 7 下安装音频编辑器Audacity

7 篇文章 0 订阅
2 篇文章 0 订阅

Audacity是一款优秀的开源跨平台的音频编辑器,下面我讲一下在CentOS下的编译安装。

安装是从源码编译开始的,源码下载:http://audacity.sourceforge.net/

安装前请阅读源码下的README.txt,里面会有介绍编译安装的步骤。

基本就是./configure make make install,

下面说说我在编译中碰到的问题:

错误1.wxGTK-2.8.x依赖缺失, ./configure 时出现如下错误:

checking for wx-config... /usr/local/bin/wx-config

  Warning: No config found to match: /usr/local/bin/wx-config --unicode=yes --version
           in /usr/local/lib/wx/config
  If you require this configuration, please install the desired
  library build.  If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.

configure: Checking that the chosen version of wxWidgets is 2.8.x
configure: error: Unable to locate a suitable configuration of wxWidgets v2.8.x or higher.
The currently available configurations are listed below.  If necessary, either
install the package for your distribution or download the latest version of
wxWidgets
from http://wxwidgets.org.

    Default config is gtk2-ansi-release-2.8

  Default config will be used for output

  Also available in /usr/local:
    gtk2-unicode-3.0
解决方法:

下载wxGTK-2.8.x.gz  http://www.wxwidgets.org/downloads/

编译安装:参照源码下wxGTK-2.8.x/docs/gtk/readme.txt步骤编译安装

    mkdir build_gtk
    cd build_gtk
    ../configure  # 此处需添加 --enable-unicode 选项。
    make
    su <type root password>
    make install
    ldconfig

这里注意,由于Audacity的configure文件中执行的检查是使用的  wx-config --unicode=yes --version,而如果直接用上面的编译,还是会出现前面的问题。所以需加上--enable-unicode选项。

错误2.缺少libsndfile

configure: error: Audacity requires libsndfile to be enabled
需安装 libsndfile-devel,  sudo yum install libsndfile-devel 包。

错误3.缺少cmake,安装cmake即可,sudo yum install cmake

./configure: line 13: cmake: command not found

然后make && make install 即可。






















评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值