Submitted by DaveOverton on Tue, 03/17/2020 - 15:43 Pro Licensee
Centos 8.1 Running the GPL'd install.sh on brand new install of centos 8.1
This is the screen view:
Installing updates to Virtualmin-related packages [ ✔ ]
▣▣▣ Phase 3 of 3: Configuration
Can't locate open.pm in @INC (you may need to install the open module) (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /usr/share/perl5/vendor_perl/Term/Spinner/Color.pm line 10.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/Term/Spinner/Color.pm line 10.
Compilation failed in require at /usr/share/perl5/vendor_perl/Virtualmin/Config.pm line 10.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/Virtualmin/Config.pm line 10.
Compilation failed in require at /usr/bin/virtualmin-config-system line 9.
BEGIN failed--compilation aborted at /usr/bin/virtualmin-config-system line 9.
▣▣▣ Cleaning up
[WARNING] The following errors occurred during installation:
◉ Postinstall configuration returned an error.
And this is the end of virtualmin-install.log:
Cleaning up software repo metadata: Success.
Spin pid is: 26235
Installing updates to Virtualmin-related packages: Success.
[2020-03-17 13:22:21 PDT] [DEBUG] Phase 3 of 3: Configuration
[2020-03-17 13:22:21 PDT] [DEBUG] Cleaning up temporary files in /tmp/.virtualmin-25240.
[2020-03-17 13:22:21 PDT] [WARNING] The following errors occurred during installation:
At this point it really fails. Nothing shows up in the log past that last ":" Starting the install.sh script again just results in the same result.
Status:
Active
Comments
Submitted by JamieCameron on Sat, 03/21/2020 - 23:02 Comment #1
According to https://github.com/rbspy/rbspy/issues/164 this can be fixed by running
dnf install perl-open.noarch
What is odd here, is that it should be installed automatically!
The script, on clean install calls
dnf install perl -y
, which installs Perl from @AppStream repo and automatically pulls as a dependency perl-open package.I would recommend running
yum clean all && yum update -y
before running Virtualmin installer script.Submitted by DaveOverton on Sun, 03/22/2020 - 16:03 Pro Licensee Comment #3
Okay, torn down the VM, started over with a Minimal Install Didn't really need to do the "yum clean" stuff since its new.
Pretty much all went fine, the Perl stuff installed as required. I got this error at the end, but its not a big deal
"Error: Webmin server did not write new PID file" Thanks!
Yeah, it's know issue and Joe is working hard to fix it as soon as possible.
The work around is here.
Submitted by NellfieldPlace on Sat, 03/28/2020 - 14:26 Comment #5
I also have the same issue. I have tried at least 6 different server installs to try to get this to run, every time I get the same error.
▣▣▣ Phase 3 of 3: Configuration Can't locate open.pm in @INC (you may need to install the open module) (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /usr/share/ perl5/vendor_perl/Term/Spinner/Color.pm line 10. BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/Term/Spinner/Color.pm line 10. Compilation failed in require at /usr/share/perl5/vendor_perl/Virtualmin/Config.pm line 10. BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/Virtualmin/Config.pm line 10. Compilation failed in require at /usr/bin/virtualmin-config-system line 9. BEGIN failed--compilation aborted at /usr/bin/virtualmin-config-system line 9. ▣▣▣ Cleaning up
[WARNING] The following errors occurred during installation:
◉ Postinstall configuration returned an error.[root@we[root@webserver ~]#
I am not a linux person, just learning as stuck at home, like everyone else. But I'd really like to get this to work as I have plans to do other things once this is up and running.
Thanks
Submitted by JamieCameron on Sat, 03/28/2020 - 16:13 Comment #6
It should be possible to work around this by running
dnf install perl-open
Submitted by NellfieldPlace on Sat, 03/28/2020 - 18:18 Comment #7
Hi Jamie,
Thanks for getting back to me.
As I stated I'm new to Linux, where would I use that command, would it be before I install Virtualmin or after the phase 3 config error?
I did try @Dagwin's solution (https://forum.virtualmin.com/t/virtualmin-install-sh-support-for-centos-...) but got completely lost when everything went pear-shaped and I wasn't sure where to go from the postfix part of the solution.
Thanks
This is very confusing, as the script, on clean install calls
dnf install perl -y
, which installs Perl from @AppStream repo and automatically pulls as a dependencyperl-open
package.The command Jamie mentioned, needs to be put before running install script. If you could provide some more info for us, that would help.
What kind of CentOS 8 image was that? GCP, DigitalOcean (and etc) or it was an install made by you from downloading it from official website?
On clean machine, before running Virtualmin install script, what packages do you get for install, if you run
dnf install perl
? Can you post it here?Could you zip up /etc/yum.repos.d, rename it to a file with .txt extension and attach it here for us to have a look?
Submitted by NellfieldPlace on Sat, 03/28/2020 - 19:49 Comment #9
I decided to use Ubuntu server instead of CentOS, worked straight away.
I had downloaded CentOS 8 from their website and uploaded the iso to my VMWare datastore and installed to a new VM but couldn't get Virtualmin to work, downloaded CentOS 7 and it did install but would not create a virtual server as the error kept showing 'Failed to create virtual server failed to work out externally visible IP address'.
If you need further information please let me know.
I will run this again on a new VM and share the logs if needs be.
Thanks
Submitted by jorgecardenas1 on Sat, 05/02/2020 - 02:02 Pro Licensee Comment #10
In CentOS 8.1 using dnf install perl-open -y and rebooted the server before running sudo /bin/sh install.sh --minimal worked for me. Perhaps the --minimal is not needed.