Installing from source and Perl modules ("Rocky Linux" maybe more general)
My computer has been "upgraded" recently. We were a RHEL institution, but switched to Rocky Linux. I think it might be Fedora-based, or maybe still CentOS-based? I'm not 100% sure.
Either way, I formerly was using RHEL 7.5 and three years ago was able to get AMC running. I vaguely remember tracing down a lot of random perl module installations at the end, but do not remember the exact process.
I've tried installing things a few ways, and it seems to be the best way is to pull down the source from the git repo, and I can build this. I don't see any errors, although I had some latex fontspec issues when building the documentation (IPAexGothic) that would halt everything, but can just avoid that for now.
At the moment, I can build a binary from source and launch it. However, it seems to be able to do very little. I tried opening an old project and exporting a report to OpenOffice. This fails and shows a dialog asking to install OpenOffice::OODoc module in perl. (Writing anything to PDF also fails.)
I'm suspecting that I don't have the requisite perl modules installed, but don't know if those are included (or even listed) in the AMC source somewhere, and how the best way to install these are. I'm not a perl user, and have some libraries installed from CPANM in my home directory, but AMC is not finding those.
I guess my questions are:
1) Has anyone else experienced this? The Perl whack-a-mole is somewhat annoying, and difficult
2) Are all the perl dependencies listed somewhere?
3) Anything else I'm missing? Should these things be linked at compile time, and I'm somehow missing this in the build logs?
Thanks for any help! For the time being, I can remote into my older system to do work, but would like to get the new one up and operational.
RE: Installing from source and Perl modules ("Rocky Linux" maybe more general) - Added by Alexis Bienvenüe 8 months ago
It seems that perl modules can be installed on an RPM based distro with commands like
sudo yum install "perl(OpenOffice::OODoc)"
Are all the perl dependencies listed somewhere?
You can extract them eg. from the debian package dependencies (
Should these things be linked at compile time
I don't see any errors, although I had some latex fontspec issues when building the documentation (IPAexGothic) that would halt everything, but can just avoid that for now.
You can use the precompiled archive to avoid problems building the doc, since in this archives the doc is already built. The last one is at https://download.auto-multiple-choice.net/auto-multiple-choice_1.5.2_precomp.tar.gz
RE: Installing from source and Perl modules ("Rocky Linux" maybe more general) - Added by Stewart Thomas 7 months ago
Thank you so much! I was able to get things working!
I ended up using the list from the debian site to just search for the dependencies (e.g., `
dnf search perl email mime`) I was able to install the missing items.
Only a few were dependencies were unavailable. These I was able to install with the following:
1) Invoke a perl shell pointing to the system library:
perl -I /usr/share/perl5 -MCPAN -e shell`
2) Install the two missing modules
That seemed to work for me. Again, thanks and cheers!
RE: Installing from source and Perl modules ("Rocky Linux" maybe more general) - Added by Alexis Bienvenüe 7 months ago
Good Job! Thanks for the report.