Audacity can't find "libwx_gtk2u_xrc-3.1.so.1" on Oracle Linux

Hey, guys!
I’ve just compiled Audacity from source on Oracle Linux, but, when I try to run it, I get this message:

audacity: error while loading shared libraries: libwx_gtk2u_xrc-3.1.so.1: cannot open shared object file: No such file or directory

Any idea what’s going on?

A little more detail, the exact version of Oracle Linux I am using is “Oracle Linux Server 7.7”, and I have tried to compile the newest version of Audacity, 2.3.2.
I’ve made the “build” directory inside the source directory, run “cd build”, then run “…/config” (without arguments), and then run “make -j3”.

My first guess is that Audacity can’t find wxWidgets.

If you post a full configure log and build log, that may tell us more.

Here is “config.log”.
config.log (109 KB)

I notice that you are building an old version of Audacity. The current release version is 2.3.2 and is available from here:
https://www.fosshub.com/Audacity.html
or here:
https://github.com/audacity/audacity/releases

I don’t see any obvious errors in that configure log, but is is missing some information. Try building with the commands:

../configure <options> 2>&1 | tee full-configure.log
make 2>&1 | tee build.log

Then attach the full-configure.log and build.log to your reply (if they are too big for the forum, try putting them in ZIP archives).

There you go.
build.log (1.14 MB)
full-configure.log (96.9 KB)

Installed wxWidgets 3.1.3 (the newest version) and still getting the same error when I try to launch Audacity.

A self-build wxWidgets installs (by default) in /usr/local/lib/ rather than the usual system location of /usr/lib/, so you may need to add /usr/local/lib/ to your library path environmental variable.

Try running in a Termnal:

export LD_LIBRARY_PATH="/<actual-path-on-your-system>/lib/"

and then see if Audacity will launch.

If Audacity does launch, then you will need to make that change permanent. On Debian based systems that is done in ~/.bashrc
You may need to look up the correct way to do that on a RH based system.

This may help: https://wiki.wxwidgets.org/Compiling_and_getting_started

OK, done that, now Audacity launches, but it won’t record sound, it gives me this error.
Screenshot from 2019-11-02 07-59-51.png

Excellent :slight_smile:


When does that appear?
Which version of Audacity did you build?

It appears when I click the “Record” button.
Screenshot from 2019-11-02 21-09-31.png

I built Audacity 2.3.2. Here is what I see when I click Help>About:


One more problem. Audacity claims it can’t find the “libavformat.so.55” file, even when I point it right to it.

Though, none of those are serious problems. I can record the audio using some other app, and I can use ffmpeg through command line, I don’t need to use it through Audacity.

Audacity is very fussy about the version of FFmpeg, because, by default, Audacity links to it dynamically.
What works for me is to build against system headers (on Debian based systems this requires installing the “libavutil-dev” package), and then build Audacity with dynamic loading disabled.

../configure --with-lib-preference="local system" --with-ffmpeg="system" --disable-dynamic-loading

It may be best to ignore this for now while we concentrate on getting Audacity working for you.

Please post the “Audio device info”.

  1. “Help menu > Diagnostics > Audio device Info”
  2. Wait for the info to appear
  3. Click the “Save” button and save the info somewhere convenient
  4. Attach the saved file to your reply

Here is the “deviceinfo.txt” file.
deviceinfo.txt (2.39 KB)

Perhaps related to that, if I start Audacity from command line, I get the following warnings:

(Audacity:18610): Gtk-WARNING **: 08:51:01.117: Locale not supported by C library.
	Using the fallback 'C' locale.

(Audacity:18610): Gdk-WARNING **: 08:51:01.127: locale not supported by C library

(Audacity:18610): Gtk-WARNING **: 08:51:01.134: gtk_disable_setlocale() must be called before gtk_init()
ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching channel map
ALSA lib dlmisc.c:287:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib/alsa-lib/libasound_module_pcm_pulse.so ((null): /usr/lib/alsa-lib/libasound_module_pcm_pulse.so: wrong ELF class: ELFCLASS32)
ALSA lib dlmisc.c:287:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib/alsa-lib/libasound_module_pcm_pulse.so ((null): /usr/lib/alsa-lib/libasound_module_pcm_pulse.so: wrong ELF class: ELFCLASS32)
ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
ALSA lib dlmisc.c:287:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib/alsa-lib/libasound_module_pcm_pulse.so ((null): /usr/lib/alsa-lib/libasound_module_pcm_pulse.so: wrong ELF class: ELFCLASS32)
ALSA lib dlmisc.c:287:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib/alsa-lib/libasound_module_pcm_pulse.so ((null): /usr/lib/alsa-lib/libasound_module_pcm_pulse.so: wrong ELF class: ELFCLASS32)
Expression 'stream->playback.pcm' failed in '../../../lib-src/portaudio-v19/src/hostapi/alsa/pa_linux_alsa.c', line: 4611
08:51:01: Debug: ScreenToClient cannot work when toplevel window is not shown
08:51:01: Debug: ScreenToClient cannot work when toplevel window is not shown
08:51:01: Debug: ScreenToClient cannot work when toplevel window is not shown
08:51:01: Debug: ScreenToClient cannot work when toplevel window is not shown
08:51:01: Debug: ScreenToClient cannot work when toplevel window is not shown
08:51:01: Debug: ScreenToClient cannot work when toplevel window is not shown
08:51:01: Debug: ScreenToClient cannot work when toplevel window is not shown
08:51:01: Debug: ScreenToClient cannot work when toplevel window is not shown
08:51:01: Debug: ScreenToClient cannot work when toplevel window is not shown
Expression 'stream->playback.pcm' failed in '../../../lib-src/portaudio-v19/src/hostapi/alsa/pa_linux_alsa.c', line: 4611
Expression 'stream->playback.pcm' failed in '../../../lib-src/portaudio-v19/src/hostapi/alsa/pa_linux_alsa.c', line: 4611
08:51:01: Debug: ScreenToClient cannot work when toplevel window is not shown
08:51:01: Debug: ScreenToClient cannot work when toplevel window is not shown
08:51:01: Debug: ScreenToClient cannot work when toplevel window is not shown
08:51:01: Debug: ScreenToClient cannot work when toplevel window is not shown
08:51:01: Debug: ScreenToClient cannot work when toplevel window is not shown
08:51:01: Debug: ScreenToClient cannot work when toplevel window is not shown
08:51:01: Debug: ScreenToClient cannot work when toplevel window is not shown
08:51:01: Debug: ScreenToClient cannot work when toplevel window is not shown
08:51:01: Debug: ScreenToClient cannot work when toplevel window is not shown
08:51:01: Debug: ScreenToClient cannot work when toplevel window is not shown
08:51:01: Debug: ScreenToClient cannot work when toplevel window is not shown
08:51:01: Debug: ScreenToClient cannot work when toplevel window is not shown
08:51:01: Debug: ScreenToClient cannot work when toplevel window is not shown
08:51:01: Debug: ScreenToClient cannot work when toplevel window is not shown
08:51:01: Debug: ScreenToClient cannot work when toplevel window is not shown
08:51:01: Debug: ScreenToClient cannot work when toplevel window is not shown
08:51:01: Debug: ScreenToClient cannot work when toplevel window is not shown
08:51:01: Debug: ScreenToClient cannot work when toplevel window is not shown
08:51:01: Debug: ClientToScreen cannot work when toplevel window is not shown
08:51:01: Debug: ClientToScreen cannot work when toplevel window is not shown
08:51:01: Debug: ClientToScreen cannot work when toplevel window is not shown
08:51:01: Debug: ClientToScreen cannot work when toplevel window is not shown
08:51:01: Debug: ClientToScreen cannot work when toplevel window is not shown
08:51:01: Debug: ClientToScreen cannot work when toplevel window is not shown
08:51:01: Debug: ClientToScreen cannot work when toplevel window is not shown
08:51:01: Debug: ClientToScreen cannot work when toplevel window is not shown
08:51:01: Debug: ClientToScreen cannot work when toplevel window is not shown
08:51:01: Debug: Unrecognized accel key 'backspace', accel string ignored.
08:51:01: Debug: Unrecognized accel key 'backspace', accel string ignored.
08:51:01: Debug: Unrecognized accel key 'numpad_enter', accel string ignored.
08:51:01: Debug: Unrecognized accel key 'numpad_enter', accel string ignored.
08:51:01: Debug: ClientToScreen cannot work when toplevel window is not shown
08:51:01: Debug: ClientToScreen cannot work when toplevel window is not shown
08:51:01: Debug: ClientToScreen cannot work when toplevel window is not shown
08:51:01: Debug: ClientToScreen cannot work when toplevel window is not shown
08:51:01: Debug: ClientToScreen cannot work when toplevel window is not shown
08:51:01: Debug: ClientToScreen cannot work when toplevel window is not shown
08:51:01: Debug: ClientToScreen cannot work when toplevel window is not shown
08:51:01: Debug: ClientToScreen cannot work when toplevel window is not shown
08:51:01: Debug: ClientToScreen cannot work when toplevel window is not shown
08:51:01: Debug: ClientToScreen cannot work when toplevel window is not shown
08:51:01: Debug: ClientToScreen cannot work when toplevel window is not shown

Nothing to worry about there. Those messages are “normal”.

That’s interesting. According to the device info, you don’t have any recording devices and you don’t have PulseAudio.

What do you get if you enter in a Terminal window:

arecord -l

(last character is lower case “L”)

OK, here is what I get if I type “arecord -l”:

**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC255 Analog [ALC255 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

In the absence of PulseAudio, your sound card probably does not support multiple client applications. Is some other application using the recording device? Why don’t you have PulseAudio installed?

I don’t even know what is PulseAudio. What I do know is that GNOME Cheese can record audio without problems.