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

Help for Audacity on GNU/Linux.
Forum rules
ImageThis forum is for Audacity on GNU/Linux.
Please state:
  • which version of Linux you are using,
  • the exact three-section version number of Audacity from Help menu > About Audacity,
  • whether you installed your distribution's release, PPA version, or compiled Audacity from source code.

Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade (see https://www.audacityteam.org/download/).
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
FlatAssembler
Posts: 17
Joined: Fri Nov 01, 2019 5:32 pm
Operating System: Linux Debian

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

Post by FlatAssembler » Fri Nov 01, 2019 5:35 pm

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

Code: Select all

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?

FlatAssembler
Posts: 17
Joined: Fri Nov 01, 2019 5:32 pm
Operating System: Linux Debian

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

Post by FlatAssembler » Fri Nov 01, 2019 6:04 pm

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".

steve
Site Admin
Posts: 81609
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

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

Post by steve » Fri Nov 01, 2019 6:23 pm

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.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

FlatAssembler
Posts: 17
Joined: Fri Nov 01, 2019 5:32 pm
Operating System: Linux Debian

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

Post by FlatAssembler » Fri Nov 01, 2019 6:39 pm

Here is "config.log".
Attachments
config.log
(109.27 KiB) Downloaded 18 times

steve
Site Admin
Posts: 81609
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

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

Post by steve » Fri Nov 01, 2019 7:28 pm

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:

Code: Select all

../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).
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

FlatAssembler
Posts: 17
Joined: Fri Nov 01, 2019 5:32 pm
Operating System: Linux Debian

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

Post by FlatAssembler » Fri Nov 01, 2019 8:00 pm

There you go.
Attachments
full-configure.log
(96.92 KiB) Downloaded 10 times
build.log
(1.14 MiB) Downloaded 9 times

FlatAssembler
Posts: 17
Joined: Fri Nov 01, 2019 5:32 pm
Operating System: Linux Debian

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

Post by FlatAssembler » Fri Nov 01, 2019 8:11 pm

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

steve
Site Admin
Posts: 81609
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

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

Post by steve » Fri Nov 01, 2019 8:37 pm

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:

Code: Select all

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.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

steve
Site Admin
Posts: 81609
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

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

Post by steve » Fri Nov 01, 2019 8:40 pm

9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

FlatAssembler
Posts: 17
Joined: Fri Nov 01, 2019 5:32 pm
Operating System: Linux Debian

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

Post by FlatAssembler » Sat Nov 02, 2019 7:02 am

steve wrote:
Fri Nov 01, 2019 8:37 pm
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:

Code: Select all

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.
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
Screenshot from 2019-11-02 07-59-51.png (6.45 KiB) Viewed 605 times

Post Reply