Unable to start Cannot find shared library.

The place to discuss linux version of MakeMKV
Post Reply
jmgibson1981
Posts: 1
Joined: Fri May 27, 2022 4:17 am

Unable to start Cannot find shared library.

Post by jmgibson1981 »

I compiled both oss and the bin (edited makefile manually) to go to /opt/makemkv.

Code: Select all

./configure --prefix /opt/makemkv
&

Code: Select all

PREFIX=/opt/makemkv
respectively...

I've never had trouble doing this in the past but today when I try to run makemkv i get this terminal output.

Code: Select all

/opt/makemkv/bin/makemkvcon: error while loading shared libraries: libmakemkv.so.1: cannot open shared object file: No such file or directory
I know the file is there.

Code: Select all

$ find /opt/ -name '*libmake*'
/opt/makemkv/lib/libmakemkv.so.1
I'm lost. I like to put compiled stuff into a given folder so I don't need to worry about make uninstall or anything. i can just dump the whole directory and move on with my life.

My system.

Code: Select all

$ sudo inxi -Fz
System:
  Kernel: 5.16.0-0.bpo.4-amd64 x86_64 bits: 64 Console: tty 0 
  Distro: Debian GNU/Linux 11 (bullseye) 
Machine:
  Type: Desktop System: NCSTECH product: CT1-A402 v: N/A serial: <filter> 
  Mobo: ASUSTeK model: P8H61-M LE/CSM v: Rev x.0x serial: <filter> 
  BIOS: American Megatrends v: 4501 date: 05/10/2013 
CPU:
  Info: Quad Core model: Intel Core i7-3770 bits: 64 type: MT MCP 
  L2 cache: 8 MiB 
  Speed: 1596 MHz min/max: 1600/3900 MHz Core speeds (MHz): 1: 1596 2: 1596 
  3: 1596 4: 1596 5: 1596 6: 1596 7: 1612 8: 1637
# edit #

My PATH as well for reference.

Code: Select all

$ echo $PATH
/home/jason/bin:/opt/makemkv/bin:/opt/kodimatrix/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:/snap/bin
bib1963
Posts: 10
Joined: Sun Aug 04, 2013 3:50 pm

Re: Unable to start Cannot find shared library.

Post by bib1963 »

Late... but...

Run the following 2 commands as root, then retry...
echo "/opt/makemkv/lib" > /etc/ld.so.conf.d/makemkv.conf
ldconfig
sirgatez
Posts: 1
Joined: Sat Jul 19, 2025 6:14 pm

Re: Unable to start Cannot find shared library.

Post by sirgatez »

Another important note. If you install makemkvcon in a different directory than makemkv, it will fail to start as it expects the executable to be in the same folder.

So I did:

makemkv-bin-1.18.1:

Code: Select all

Update Makefile: PREFIX=/opt/makemkvcon
make
sudo make install
makemkv-bin-1.18.1:

Code: Select all

./configure --prefox=/opt/makemkv
make
sudo make install
Finally, fix things up by adding the library path, and executable path.

Code: Select all

echo 'PATH="/opt/makemkv/bin:/opt/makemkvcon/bin:$PATH"' > /etc/profile.d/makemkv.sh
sudo chmod +x /etc/profile.d/makemkv.sh
sudo ln -s /opt/makemkvcon/bin/makemkvcon /opt/makemkv/bin/makemkvcon
Post Reply