Audacity is an excellent open-source cross-platform audio editor. let's talk about how to compile and install it in CentOS. The installation starts from source code compilation. download the source code: Compile. This is basically./configuremakemakeinstall. The following describes how I met
AudacityIt is an excellent open-source cross-platform audio editor. let's talk about how to compile and install it in CentOS.
Installation started from source code compilation, Source Code Download: http://audacity.sourceforge.net/
Before installation, read readme.txt under the source code, which will introduce the compilation and installation steps.
It is./configure make install,
The following describes the problems I encountered during compilation:
Error 1. wxGTK-2.8.x dependency missing,./configure with the following error:
[Plain]View plaincopy
- 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 automatic 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
- 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
Solution:
Download wxgtk-2.8.x.gz http://www.wxwidgets.org/downloads/
Compile and install: refer to the wxGTK-2.8.x/docs/gtk/readme.txt under the source code to compile and install
[Plain]View plaincopy
- Mkdir build_gtk
- Cd build_gtk
- ../Configure # Here you need to add the -- enable-unicode option.
- Make
- Su
- Make install
- Ldconfig
Note that the check executed in the configure file of Audacity uses wx-config -- unicode = yes -- version. if you use the preceding compilation directly, the preceding problem still occurs. Therefore, you must add the -- enable-unicode option.
Error 2. libsndfile missing
Configure: error: Audacity requires libsndfile to be enabled
Libsndfile-devel and sudo yum install libsndfile-devel packages must be installed.
Error 3. if cmake is missing, install cmake. sudo yum install cmake
./Configure: line 13: cmake: command not found
Then make & make install.