Page 1 of 3

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

Posted: Fri Nov 01, 2019 5:35 pm
by FlatAssembler
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?

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

Posted: Fri Nov 01, 2019 6:04 pm
by FlatAssembler
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".

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

Posted: Fri Nov 01, 2019 6:23 pm
by steve
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.

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

Posted: Fri Nov 01, 2019 6:39 pm
by FlatAssembler
Here is "config.log".

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

Posted: Fri Nov 01, 2019 7:28 pm
by steve
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).

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

Posted: Fri Nov 01, 2019 8:00 pm
by FlatAssembler
There you go.

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

Posted: Fri Nov 01, 2019 8:11 pm
by FlatAssembler
Installed wxWidgets 3.1.3 (the newest version) and still getting the same error when I try to launch Audacity.

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

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

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

Posted: Fri Nov 01, 2019 8:40 pm
by steve

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

Posted: Sat Nov 02, 2019 7:02 am
by FlatAssembler
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 606 times