Problem with AMC-analyse (Opensuse Leap)

Added by Muralito - over 4 years ago

Hi.

I have built and installed AMC in opensuse, both in Leap 15.2 and Tumbleweed.
AMC latest version, precomp, 1.4.0.

I have modified the file /usr/bin/auto-multiple-choice pointint the mods_dir to
$mods_dir="/usr/lib64/AMC";
Without that change, AMC fails with error: "Unknown action gui at /usr/bin/auto-multiple-choice line 79."

Using lib64 the gui works ok in the first "Preparation" tab, for creating, loading and editing exams.

The "Data Capture" works partialy. It seems to me that the problem is in analyzing the scanned pages.

ppmtoxpm: (Computing colormap...
ppmtoxpm: ...Done. 256 colors found.)
Bareword found in conditional at /usr/lib/perl5/vendor_perl/5.26.1/AMC/Data.pm line 250.
Bareword found in conditional at /usr/lib/perl5/vendor_perl/5.26.1/AMC/Data.pm line 262.
Bareword found in conditional at /usr/lib/perl5/vendor_perl/5.26.1/AMC/Data.pm line 268.
AMC::Subprocess: No program to execute at /usr/lib/perl5/vendor_perl/5.26.1/AMC/Subprocess.pm line 47.
AMC::Subprocess: No program to execute at /usr/lib/perl5/vendor_perl/5.26.1/AMC/Subprocess.pm line 47.
AMC::Subprocess: No program to execute at /usr/lib/perl5/vendor_perl/5.26.1/AMC/Subprocess.pm line 47.
AMC::Subprocess: No program to execute at /usr/lib/perl5/vendor_perl/5.26.1/AMC/Subprocess.pm line 47.
AMC::Subprocess: No program to execute at /usr/lib/perl5/vendor_perl/5.26.1/AMC/Subprocess.pm line 47.
AMC::Subprocess: No program to execute at /usr/lib/perl5/vendor_perl/5.26.1/AMC/Subprocess.pm line 47.
AMC::Subprocess: No program to execute at /usr/lib/perl5/vendor_perl/5.26.1/AMC/Subprocess.pm line 47.
AMC::Subprocess: No program to execute at /usr/lib/perl5/vendor_perl/5.26.1/AMC/Subprocess.pm line 47.
AMC::Subprocess: No program to execute at /usr/lib/perl5/vendor_perl/5.26.1/AMC/Subprocess.pm line 47.
AMC::Subprocess: No program to execute at /usr/lib/perl5/vendor_perl/5.26.1/AMC/Subprocess.pm line 47.

There are 10 lines of log and 10 jpg files to analyze...

I can also post the debug log of the command line
auto-multiple-choice analyse --projet Prueba --debug file.log Prueba/scans/1003200*
it contains the same 10 lines of "No program to execute"....

Any hints to solve the problem?


Replies (4)

RE: Problem with AMC-analyse (Opensuse Leap) - Added by Alexis Bienvenüe over 4 years ago

Please review all install pathes in Makefile.conf before building. MODSDIR should be set to /usr/lib64/AMC in your case.

RE: Problem with AMC-analyse (Opensuse Leap) - Added by Muralito - over 4 years ago

Alexis, thanks for the hint (and for the whole AMC system)

I solved with a sed command in the rpm specfile.

setup
sed -i 's|/usr/lib/AMC|
{_libdir}/AMC|' vars-subs.pl

RE: Problem with AMC-analyse (Opensuse Leap) - Added by Muralito - over 4 years ago

MODSDIR was already set as one of the make settings in the command line.

RE: Problem with AMC-analyse (Opensuse Leap) - Added by Alexis Bienvenüe over 4 years ago

Good.
You can also copy Makefile.conf to another Makefile-opensuse.conf, tweak it, and then call make with AMCCONF=opensuse.

(1-4/4)