faac icon indicating copy to clipboard operation
faac copied to clipboard

Reporting wrong libfaac version

Open ronfischler opened this issue 3 years ago • 6 comments

Running Ubuntu 18.04 LTS. Following the instructions in the INSTALL text file, faac was built and then installed in /usr/local/bin. Running faac then results in the following error: main.c(507): wrong libfaac version

Note: the version using apt, 1.29, is not installed, but maybe there is a conflict with something else?

ronfischler avatar Jan 06 '21 18:01 ronfischler

What does which faac say? And what does ldd /path/to/faac say with the path to the faac binary that which faac reported?

fabiangreffrath avatar Jan 06 '21 18:01 fabiangreffrath

$ which faac /usr/local/bin/faac $ ldd /usr/local/bin/faac linux-vdso.so.1 (0x00007fff3695a000) libfaac.so.0 => /usr/lib/x86_64-linux-gnu/libfaac.so.0 (0x00007fd564411000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd564020000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fd563c82000) /lib64/ld-linux-x86-64.so.2 (0x00007fd56482d000)

ronfischler avatar Jan 06 '21 19:01 ronfischler

libfaac.so.0 => /usr/lib/x86_64-linux-gnu/libfaac.so.0 (0x00007fd564411000)

Please try to move that out of the way.

fabiangreffrath avatar Jan 06 '21 19:01 fabiangreffrath

OK, I moved libfaac.so.0 out of the way, and now I get this:

$ faac faac: error while loading shared libraries: libfaac.so.0: cannot open shared object file: No such file or directory

$ which faac /usr/local/bin/faac

$ ldd /usr/local/bin/faac linux-vdso.so.1 (0x00007ffcac9de000) libfaac.so.0 => not found libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3e962cd000) /lib64/ld-linux-x86-64.so.2 (0x00007f3e968cb000)

Note: I tried running "sudo make install" again but that does not appear to install a new libfaac library, only the faac executable.

Edit: I went into the libfaac dir, did a "sudo make install" in there for libfaac, then I needed to run ldconfig. Now it comes up running! I don't think installing libfaac is being done when "make install" is done for the faac executable.

ronfischler avatar Jan 06 '21 22:01 ronfischler

So, is this still an issue?

fabiangreffrath avatar Feb 17 '21 08:02 fabiangreffrath

You can compile in static:

./bootstrap
./configure --prefix=/usr/local --enable-silent-rules --disable-drm --enable-static --disable-shared
make
sudo make install

artenax avatar Feb 20 '23 21:02 artenax