Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't load Perl module Apache2::Request #141

Open
hrtrd opened this issue Mar 19, 2019 · 7 comments
Open

Can't load Perl module Apache2::Request #141

hrtrd opened this issue Mar 19, 2019 · 7 comments
Assignees
Labels

Comments

@hrtrd
Copy link

hrtrd commented Mar 19, 2019

Attempt to reload DynaLoader.pm aborted.\nCompilation failed in require at /usr/lib/x86_64-linux-gnu/perl5/5.22/APR.pm line 19.\nBEGIN failed--compilation aborted at /usr/lib/x86_64-linux-gnu/perl5/5.22/APR.pm line 19.\nCompilation failed in require at /usr/lib/x86_64-linux-gnu/perl5/5.22/APR/Pool.pm line 23.\nBEGIN failed--compilation aborted at /usr/lib/x86_64-linux-gnu/perl5/5.22/APR/Pool.pm line 23.\nCompilation failed in require at /usr/lib/x86_64-linux-gnu/perl5/5.22/APR/Request.pm line 26.\nBEGIN failed--compilation aborted at /usr/lib/x86_64-linux-gnu/perl5/5.22/APR/Request.pm line 26.\nCompilation failed in require at /usr/lib/x86_64-linux-gnu/perl5/5.22/APR/Request/Param.pm line 27.\nBEGIN failed--compilation aborted at /usr/lib/x86_64-linux-gnu/perl5/5.22/APR/Request/Param.pm line 27.\nCompilation failed in require at /usr/lib/x86_64-linux-gnu/perl5/5.22/Apache2/Request.pm line 2.\nBEGIN failed--compilation aborted at /usr/lib/x86_64-linux-gnu/perl5/5.22/Apache2/Request.pm line 2.\nCompilation failed in require at (eval 5) line 2.\n
[Tue Mar 19 16:38:33.136539 2019] [perl:error] [pid 17272:tid 139626288187264] Can't load Perl module Apache2::Request for server (null):0, exiting...
Action 'configtest' failed.

@cvicente cvicente self-assigned this May 28, 2019
@cvicente
Copy link
Owner

Looks like you did not properly install that module. What platform are you running Netdot on?
For example, in the case of Debian/Ubuntu, you could try:

sudo apt-get install libapache2-request-perl

@hrtrd
Copy link
Author

hrtrd commented Jul 29, 2019

@cvicente Come back, and try install again. Now create new VM, and got error after make apt-install:
Ign:2 https://netdot.apt.nsrc.org unstable/ InRelease
Err:6 https://netdot.apt.nsrc.org unstable/ Release
404 Not Found [IP: 128.223.157.64 443]
Reading package lists... Done
E: The repository 'http://netdot.apt.nsrc.org unstable/ Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Ubuntu18

@hrtrd
Copy link
Author

hrtrd commented Jul 29, 2019

ubuntu 14.06 and 16.04

W: Failed to fetch http://netdot.apt.nsrc.org/unstable/Sources HttpError404
W: Failed to fetch http://netdot.apt.nsrc.org/unstable/Packages HttpError404
E: Some index files failed to download. They have been ignored, or old ones used instead.
There was a problem running apt-get update
make: *** [apt-install] Error 25

@hanskuhn
Copy link

I updated the httpd configuration to match the documentation. Thanks for reporting.

@hrtrd
Copy link
Author

hrtrd commented Aug 2, 2019

Ubuntu 18

Would you like to continue? [y/n] y
Updating package indexes from sources
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:2 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Get:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Hit:4 https://repo.windscribe.com/ubuntu zesty InRelease
Get:5 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Ign:6 https://netdot.apt.nsrc.org unstable/ InRelease
Get:7 https://netdot.apt.nsrc.org unstable/ Release [1,578 B]
Ign:8 https://netdot.apt.nsrc.org unstable/ Release.gpg
Reading package lists... Done
E: The repository 'http://netdot.apt.nsrc.org unstable/ Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
There was a problem running apt-get update
Makefile:81: recipe for target 'apt-install' failed
make: *** [apt-install] Error 25

@candlerb
Copy link
Collaborator

E: The repository 'http://netdot.apt.nsrc.org unstable/ Release' is not signed.

Looks like you'll need to tell apt to accept an unsigned repository. I suggest you try the following:

  • Edit bin/perldeps.pl
  • Add "[trusted=yes]" after the "deb" and "deb-src" lines. That is, change this:
                my $str = "\n## Added by Netdot install\n".
                    "deb http://netdot.apt.nsrc.org/ unstable/\n".
                    "deb-src http://netdot.apt.nsrc.org/ unstable/\n\n";
                if ( $debian_version =~ /(wheezy|squeeze)/ ){
                    my $target = $1;
                    $str .= "\n".
                        "deb http://netdot.apt.nsrc.org/ $target/\n".
                        "deb-src http://netdot.apt.nsrc.org/ $target/\n\n";
                }

to:

                my $str = "\n## Added by Netdot install\n".
                    "deb [trusted=yes] http://netdot.apt.nsrc.org/ unstable/\n".
                    "deb-src [trusted=yes] http://netdot.apt.nsrc.org/ unstable/\n\n";
                if ( $debian_version =~ /(wheezy|squeeze)/ ){
                    my $target = $1;
                    $str .= "\n".
                        "deb [trusted=yes] http://netdot.apt.nsrc.org/ $target/\n".
                        "deb-src [trusted=yes] http://netdot.apt.nsrc.org/ $target/\n\n";
                }

You should find that it writes out /etc/apt/sources.list.d/netdot.apt.nsrc.org.list with the [trusted=yes] lines.

@hrtrd
Copy link
Author

hrtrd commented Dec 27, 2019

ubuntu 16.04
same error

[Fri Dec 27 18:01:55.652099 2019] [perl:error] [pid 41385:tid 140102545094528] Attempt to reload DynaLoader.pm aborted.\nCompilation failed in require at /usr/lib/x86_64-linux-gnu/perl5/5.22/APR.pm line 19.\nBEGIN failed--compilation aborted at /usr/lib/x86_64-linux-gnu/perl5/5.22/APR.pm line 19.\nCompilation failed in require at /usr/lib/x86_64-linux-gnu/perl5/5.22/APR/Pool.pm line 23.\nBEGIN failed--compilation aborted at /usr/lib/x86_64-linux-gnu/perl5/5.22/APR/Pool.pm line 23.\nCompilation failed in require at /usr/lib/x86_64-linux-gnu/perl5/5.22/APR/Request.pm line 26.\nBEGIN failed--compilation aborted at /usr/lib/x86_64-linux-gnu/perl5/5.22/APR/Request.pm line 26.\nCompilation failed in require at /usr/lib/x86_64-linux-gnu/perl5/5.22/APR/Request/Param.pm line 27.\nBEGIN failed--compilation aborted at /usr/lib/x86_64-linux-gnu/perl5/5.22/APR/Request/Param.pm line 27.\nCompilation failed in require at /usr/lib/x86_64-linux-gnu/perl5/5.22/Apache2/Request.pm line 2.\nBEGIN failed--compilation aborted at /usr/lib/x86_64-linux-gnu/perl5/5.22/Apache2/Request.pm line 2.\nCompilation failed in require at (eval 5) line 2.\n
[Fri Dec 27 18:01:55.652200 2019] [perl:error] [pid 41385:tid 140102545094528] Can't load Perl module Apache2::Request for server (null):0, exiting...
Action 'configtest' failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants