Unable to execute external program 'ccextractor' on V1.14.1

The place to discuss linux version of MakeMKV
govtgeek
Posts: 1
Joined: Thu May 02, 2019 11:32 pm

Re: Unable to execute external program 'ccextractor' on V1.14.1

Post by govtgeek » Fri May 03, 2019 12:05 am

StratTuner wrote:
Tue Mar 12, 2019 6:03 am
JGRatMKV wrote:
Sat Dec 29, 2018 7:08 pm
I am on Ubuntu 18.04 like StratTuner and was unable to find any PPA containing ccextractor for this particular release. (It is coming in the official Ubuntu Universe and is available via PPA's for several older versions: https://launchpad.net/ubuntu/+source/ccextractor )

I was able to build it from the official git source repository without too much trouble: https://github.com/CCExtractor/ccextractor

If you have never used git before, you will need to install it on your system:
sudo apt-get install git

Most of the other dependencies are listed on the official github site for CCExtractor noted above. Here are the actual commands that I ran on my system to install the dependencies:
sudo apt-get install gcc
sudo apt-get install libcurl4-gnutls-dev
sudo apt-get install tesseract-ocr
sudo apt-get install libtesseract-dev
sudo apt-get install libleptonica-dev

Note that tesseract-ocr is not mentioned on the github site; but, it satisfies the tesseract-ocr-dev dependency that is listed. I could not install tesseract-ocr-dev on 18.04 via standard apt-get.

Copy everything else you need from github to your machine with the following command:
git clone https://github.com/CCExtractor/ccextractor

Build your copy of ccextractor by running the following commands:
cd ~/ccextractor/linux
./build

Set the path to your newly created ~/ccextractor/linux/ccextractor file using the MakeMKV file system browser as described elsewhere.

Good luck!
Well... Quite some time has gone by, and I haven't got CCExtractor installed ... (sigh)...
I'd given up for the longest time... hoping that someone would post instructions on how to install this program....somewhere..
.
I'm back to reading posts that I just can't make any sense out of...

I'm hoping to find instructions that are step wise , as in
1. do this
2. do that
3. do something else

I keep running into instructions that say things like "do this in the LINUX folder".
OK...so I search "where is the LINUX folder", and I get a location.
I attempt to find this folder on my system, and it doesn't exist.....

but I return to your post, and I'll do my own instructions from what I can understand of yours, in real time... as I type this post....

1. install git -- "sudo apt-get install git" -- (that worked...on to next step)

2. paste the following into terminal box, or the Command Line INterface
sudo apt-get install gcc
sudo apt-get install libcurl4-gnutls-dev
sudo apt-get install tesseract-ocr
sudo apt-get install libtesseract-dev
sudo apt-get install libleptonica-dev
(OK, did that too. Don't know if any of that worked, but I did each line separately)

3. copy something from somewhere with the following command
git clone https://github.com/CCExtractor/ccextractor
(that seemed to work, but I wouldn't know success from failure if I were looking at it, and I am right now.)

4. Build your copy of ccextractor by running the following commands:
cd ~/ccextractor/linux
./build
(that yielded the following which doesn't look good to me...)

"bash: cd: /home/don/ccextractor/linux: No such file or directory"

I'm probably dead in the water here, but I'll keep going with the instructions in case it worked and I just don't know it.

5. Set the path to your newly created ~/ccextractor/linux/ccextractor file using the MakeMKV file system browser as described elsewhere.

I actually do know how to do that in the MakeMKV program, but setting it to
"~/ccextractor/linux/ccextractor"
still yields the message....
"Failed to execute external program 'ccextractor' from location '~/ccextractor/linux/ccextractor'"

This software can be installed and linked into MakeMKV....other people have done it....
I'm just not sure how.
Please help.
I'm not sure if you've managed to get it installed, but I think one step missing is knowing where you started in your terminal. The instructions assume you're starting in your home directory.


Do all of these steps in the same terminal window.

1. New Terminal
2. Change to the directory you want ccextractor installed (this uses your home directory)

Code: Select all

cd ~
3. Install git

Code: Select all

sudo apt-get install git
4. Install the needed libraries and utilities. This can be done one by one, or all at once.
One by one:

Code: Select all

sudo apt-get install gcc
sudo apt-get install libcurl4-gnutls-dev
sudo apt-get install tesseract-ocr
sudo apt-get install libtesseract-dev
sudo apt-get install libleptonica-dev
or all at once

Code: Select all

sudo apt-get install gcc libcurl4-gnutls-dev tesseract-ocr libtesseract-dev libleptonica-dev
5. Get a copy of the files from github. After installing git in step 3, this connects to the CCExtractor git pages. Those pages host all of the source code to create CCExtractor.

Code: Select all

git clone https://github.com/CCExtractor/ccextractor
6. Change into the ccextractor linux build directory

Code: Select all

cd ccextractor/linux/
7. Build ccextractor

Code: Select all

./build
8. Determine full path to your executable (copy the output if necessary)

Code: Select all

pwd
It should look like

Code: Select all

/home/govtgeek/ccextractor/linux/
9. Open MakeMKV (I assume you're not using the command line)
10. Open Preferences (View > Preferences) or Wrench icon
11. Under the "General" tab, enable "Expert Mode"
12. Under the "Advanced" tab (appears after Expert Mode is enabled), there is an entry for "ccextractor executable location". Find ccextractor using the browse files button on the right, or enter it manually using output from step 8 and including ccextractor at the end. It should look like this (except with your username):

Code: Select all

/home/govtgeek/ccextractor/linux/ccextractor

StratTuner
Posts: 4
Joined: Sun Dec 23, 2018 2:30 am

Re: Unable to execute external program 'ccextractor' on V1.14.1

Post by StratTuner » Thu May 23, 2019 6:46 pm

Failed to execute external program 'ccextractor' from location '/home/don/ccextractor/linux'

I do have to say, that the directions you gave were a valiant effort. Great work there! No doubt about it....

back to googling and typing everything i find, new , old , good, bad... until something works.
I know it can work because others get it to....just not sure how..

This is WHY I am NOT a technician.

StratTuner
Posts: 4
Joined: Sun Dec 23, 2018 2:30 am

Re: Unable to execute external program 'ccextractor' on V1.14.1

Post by StratTuner » Thu May 23, 2019 6:55 pm

/home/don/ccextractor/linux/ccextractor

was the path in preferences in MakeMKV ...

caused it to work... I have NO idea why.... but that's just who I am.

I just clicked the little "browse" button and then clicked on the first "thing" I saw that said "ccextractor". Was it a folder? a program? who knows...

I learned how to write software in BASIC and then Borland's Turbo Pascal under MSDOS, and as Steely Dan once sang "those days are gone forever... over a long time ago..."

Worst part is...will I remember any of this the next time I have to install it? probably not... thanks to all who helped.

Post Reply