Install the Audio Editor Audacity in CentOS 7
Audacity 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
- Checkingforwx-config.../usr/local/bin/wx-config
- Warning: Noconfigfoundtomatch:/usr/local/bin/wx-config -- unicode = yes -- version
- In/usr/local/lib/wx/config
- Ifyourequirethisconfiguration, pleaseinstallthedesired
- Librarybuild. Ifthisispartofanautomatedconfiguration
- Testandnoothererrorsoccur, youmaysafelyignoreit.
- Youmayusewx-config -- listtoseeallconfigsavailablein
- Thedefaultprefix.
- Configure: CheckingthatthechosenversionofwxWidgetsis2.8.x
- Configure: error: UnabletolocateasuitableconfigurationofwxWidgetsv2.8.xorhigher.
- Thecurrentlyavailableconfigurationsarelistedbelow. Ifnecessary, either
- Installthepackageforyourdistributionordownloadthelatestversionof
- WxWidgets
- Fromhttp: // wxwidgets.org.
- Defaultconfigisgtk2-ansi-release-2.8
- Defaultconfigwillbeusedforoutput
- Alsoavailablein/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
- Mkdirbuild_gtk
- Cdbuild_gtk
- ../Configure # here you need to add the -- enable-unicode option.
- Make
- Su <typerootpassword>
- Makeinstall
- 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.