Page 1 of 1
Error on Linux Mint 21.2
Posted: Thu Jul 25, 2024 7:28 am
by Lord_Pinhead
Hi, I downloaded and compiled makeMKV without errors or warnings, but when I want to start it, I get the error "CANT_LOCATE_MAKEMKVCON".
I run the Cinnamon Window Manager, no KDE. When I look into makemkvgui/src/main.cpp:96, the error appears when the program makemkvcon could not be initialized. I'm a bit lost, there is no file with this name in the source package, am I missing something?
Re: Error on Linux Mint 21.2
Posted: Fri Jul 26, 2024 3:20 am
by segfaulted
Lord_Pinhead wrote: ↑Thu Jul 25, 2024 7:28 am
Hi, I downloaded and compiled makeMKV without errors or warnings, but when I want to start it, I get the error "CANT_LOCATE_MAKEMKVCON".
I run the Cinnamon Window Manager, no KDE. When I look into makemkvgui/src/main.cpp:96, the error appears when the program makemkvcon could not be initialized. I'm a bit lost, there is no file with this name in the source package, am I missing something?
makemkvcon is part of the makemkv-bin package which is required in order to use the gui.
Check the
linux release page, it says to download
both the oss and bin packages.
Re: Error on Linux Mint 21.2
Posted: Fri Mar 28, 2025 5:40 pm
by elaranc
Hello,
Thanks for this nice program. I just installed 1.17.9 because 1.17.8 claimed it was too old. I installed both oss and bin on linux Fedora 40 as usual.
I installed makemkv in /softs/makemkv-1.17.9 directory by running
./configure --prefix=/softs/makemkv-1.17.9 for the oss part
and I changed DESTDIR=/softs/makemkv-1.17.9 in the Makefile for the bin part.
I always do that which normally works fine.
But this time, I get an error when I start makemkv: "Application failed to initialize CANT_LOCATE_MAKEMKVCON".
However, the program makemkvcon is found in /softs/makemkv-1.17.9/usr/bin
I do not understand what to do.
Thanks for your help
Re: Error on Linux Mint 21.2
Posted: Sat Mar 29, 2025 4:54 am
by flojo
I don't know if it's hard coded, but does it pass the "which" test? You could link it:
ln -s /softs/makemkv-1.17.9/usr/bin/makemkvcon /bin/makemkvcon
Re: Error on Linux Mint 21.2
Posted: Sat Mar 29, 2025 4:34 pm
by elaranc
Unfortunately, having a link in the PATH does not help.
Re: Error on Linux Mint 21.2
Posted: Sun Mar 30, 2025 12:33 am
by segfaulted
elaranc wrote: ↑Fri Mar 28, 2025 5:40 pm
I installed makemkv in /softs/makemkv-1.17.9 directory by running
./configure --prefix=/softs/makemkv-1.17.9 for the oss part
and I changed DESTDIR=/softs/makemkv-1.17.9 in the Makefile for the bin part.
If you're installing makemkv to a custom path, you must also make sure the system knows where
libmakemkv.so.1 is located. Based on the prefix you've given, the directory for you might be
/softs/makemkv-1.17.9/lib64 though I could be wrong. Feel free to correct it for your system.
You can set the
LD_LIBRARY_PATH variable to point to that lib64 directory before running makemkv.
Or you can add that diretory path into
/etc/ld.so.conf then run
ldconfig as root to apply the change.
Re: Error on Linux Mint 21.2
Posted: Sun Mar 30, 2025 8:13 pm
by elaranc
Thanks for your message. You are right, I include :
/softs/makemkv-1.17.9/bin to PATH
and
/softs/makemkv-1.17.9/lib to LD_LIBRARY_PATH.
This always worked for previous versions. First time I get this message (Application failed to initialize CANT_LOCATE_MAKEMKVCON) with 1.17.9. I do not know what to do.
Re: Error on Linux Mint 21.2
Posted: Mon Mar 31, 2025 12:54 am
by segfaulted
elaranc wrote: ↑Sun Mar 30, 2025 8:13 pm
Thanks for your message. You are right, I include :
/softs/makemkv-1.17.9/bin to PATH
and
/softs/makemkv-1.17.9/lib to LD_LIBRARY_PATH.
This always worked for previous versions. First time I get this message (Application failed to initialize CANT_LOCATE_MAKEMKVCON) with 1.17.9. I do not know what to do.
You're saying it doesn't launch even when both of those variables are set up? What happens if you instead run
makemkvcon on a terminal using those same variables?
elaranc wrote: ↑Fri Mar 28, 2025 5:40 pm
I installed makemkv in /softs/makemkv-1.17.9 directory by running
./configure --prefix=/softs/makemkv-1.17.9 for the oss part
and I changed DESTDIR=/softs/makemkv-1.17.9 in the Makefile for the bin part.
I looked at it again, and I suggest you use
PREFIX instead of DESTDIR. Using DESTDIR will put the makemkv-bin content (such as makemkvcon) within a /usr subdirectory, and the resulting directory structure will be inconsistent with the content of makemkv-oss. Your PATH variable would need both
/softs/makemkv-1.17.9/bin and
/softs/makemkv-1.17.9/usr/bin
It would be better if you start over with the install. When it's done correctly, the
makemkv and
makemkvcon executables should reside in the same bin folder.
Re: Error on Linux Mint 21.2
Posted: Mon Mar 31, 2025 7:14 pm
by elaranc
Big thank you @segfaulted!
You are completely right, in the past, I always set PREFIX, not DESTDIR and doing so still works in 1.17.9.
I feel so stupid!
Thank you so much.