Installation

Webwork 2.15 on RHEL8 install questions

Webwork 2.15 on RHEL8 install questions

by Angelo Fazzina -
Number of replies: 9

Hi, i tried installing Webwork 2.15 on RHEL 8.2

it has Perl 5.26.3 and CPAN 2.28

I was going off the Ubuntu SOP in the wiki and i got pretty far but got stuck in that

i can't figure out a way to go into the CPAN shell and install these 4

** GD not found in @INC
** XMLRPC::Lite not found in @INC
** Apache2::Request not found in @INC
** Apache2::Cookie not found in @INC

Was trying to get check_modules.pl to pass all tests.

Does anyone think Webwork is still being developed and may someday work on RHEL ?

Thank you.


Tags:
In reply to Angelo Fazzina

Re: Webwork 2.15 on RHEL8 install questions

by Andrew Parker -

I had a rough time with RHEL8, as libapreq2 is no longer supported and must be compiled from source. (this is the package for Apache2::Request & ::Cookie)

I would recommend installing cpanminus for managing CPAN modules, that way you won't need the CPAN shell.

I also installed perlbrew in order to get a version of perl compiled (other than RHEL default) that was able to make it through the installation of the necessary Apache2 modules.

what ended up working for me, I'm sure it's not the only way: 

perlbrew install-multiple 5.20.3 --both=thread CFLAGS='-m64 -mtune=nocona' ./Configure -des -A -Dusethreads ccflags=-fPIC

When configuring perl, this next part was especially important. When asked:

Any special flags to pass to cc to create a dynamically loaded library?

[default] override

[-shared -O2 -L/usr/local/lib -fstack-protector] -shared -O2 -L/usr/local/lib -fstack-protector -fPIC

RHEL was an ordeal for me, so if you keep track of what works for you, it'd be nice to compare notes.

Other notes I left for myself:

Edit site.conf - Specify perlbrew location of lwp-request:

/usr/local/perlbrew/perls/perl-5.20.3-thread-multi/bin/lwp-request

Specify texlive locations for latex, pdflatex, and diving

Other SELinux things to note:

semanage fcontext -a -t httpd_sys_content_t '/opt/webwork(/.*)?' 

semanage fcontext -a -t httpd_sys_rw_content_t '/opt/webwork/courses(/.*)?'

semanage fcontext -a -t httpd_sys_rw_content_t '/opt/webwork/webwork2/htdocs/tmp(/.*)?'

setsebool -P httpd_can_sendmail 1

setsebool -P httpd_can_network_connect on

restorecon -vFR /opt



In reply to Andrew Parker

Re: Webwork 2.15 on RHEL8 install questions

by Nathan Wallach -

There is a thread about the problem with libapreq2 on RHEL 8 at https://bugzilla.redhat.com/show_bug.cgi?id=1526746 . The thread has an explicit mention of WeBWorK  not working on RHEL 8 as a result.

It would be very helpful to the community if people working to get WW running in RHEL/CentOS 8 kept careful notes of what they needed to do and shared them.


In reply to Nathan Wallach

Re: Webwork 2.15 on RHEL8 install questions

by Angelo Fazzina -
Hi, thank you all for the insight ! I think i will try again from scratch with RHEL 7.8 and see how far i get.

I am not even sure i can get this to work for the user requesting this but I'll take a stab at it.
-ALF
In reply to Angelo Fazzina

Re: Webwork 2.15 on RHEL8 install questions

by Danny Glin -
I have been running WeBWorK on RHEL 7.8 without issues.  A good place to start is the install script at https://github.com/openwebwork/ww_install
I started with the CentOS 7 script, and had to make a couple of tweaks to get it to work.  I vaguely recall having to manually enable EPEL.

Some work has been done on getting this to work with RHEL 8.  See https://github.com/openwebwork/ww_install/pull/12.
In reply to Danny Glin

Re: Webwork 2.15 on RHEL8 install questions

by Angelo Fazzina -
Hi again, i am trying to install on RHEL 7.8 and not sure what this error means ??
SO far:
RAN yum install unzip perl httpd mariadb-server mod_ssl mod_perl git rsync
RAN yum install texlive-latex netpbm-progs
RAN git clone git://github.com/openwebwork/ww_install.git
RAN cd /opt/ww_install/distros/
RAN mkdir redhat
RAN cp ./centos/7.pm ./redhat/78.pm
RAN vi ./redhat/78.pm
package Redhat::78;

Then :
[root@webwork ~]# perl /opt/ww_install/bin/ww_install.pl
Can't locate version.pm in @INC (@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 /opt/ww_install/bin/ww_install.pl line 5.
BEGIN failed--compilation aborted at /opt/ww_install/bin/ww_install.pl line 5.

Line 5 = use version;

Anyone have any ideas ?
Thanks.
EDIT :  Apparently i don't know what i don't know.
RAN      yum install perl-CPAN

In reply to Angelo Fazzina

Re: Webwork 2.15 on RHEL8 install questions

by Angelo Fazzina -
I was able to run the srcipt ww_install.pl and got this far :
Anyone know what it is telling me ?

Successfully installed Template-Toolkit-3.009
49 distributions installed
Warning! The last command exited with an error: 'cpanm Statistics::R::IO Array::Utils Pod::WSDL Iterator::Util XML::Parser::EasyTree PHP::Serialization Iterator Dancer::Plugin::Database SQL::Abstract Locale::Maketext::Lexicon UUID::Tiny LWP::Protocol::https Dancer Template' exited with value 1

We have logged the error message, if any. We suggest that you exit now and report the error at https://github.com/openwebwork/ww_install If you are certain the error is harmless, then you may continue the installation at your own risk.
What would you like to do about this? [Exit]:
In reply to Angelo Fazzina

Re: Webwork 2.15 on RHEL8 install questions

by Angelo Fazzina -
i chose to exit and got this at the terminal.

Bye. Please report this error asap.Exiting... at /opt/ww_install/bin/../lib/WeBWorK/Install/Utils.pm line 129, line 8.
In reply to Angelo Fazzina

Re: Webwork 2.15 on RHEL8 install questions

by Angelo Fazzina -

I uploaded my log file from running ww_install.pl


it crashes on installing module  LWP::Protocol::https
Can anyone look at file and tell me why ? 

thanks.

In reply to Andrew Parker

Re: Webwork 2.15 on RHEL8 install questions

by Andras Balogh -

Andrew,

Do I understand correctly that you were able to install Webwork 2.15 on RHEL8?

Have you used the install script? I tried to follow and modify the steps for ubuntu using perlbrew with perl-5.20.3 and compiling  libapreq2, mod_perl2, but then even openssl-devel looks incompatible to Net::SSLeay. I am not sure how many other things would have to be compiled from source.


Andras