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

RHEL 5: Can't locate App/Info/HTTPD/Apache.pm in @INC #621

Open
XXLRay opened this issue May 28, 2015 · 6 comments
Open

RHEL 5: Can't locate App/Info/HTTPD/Apache.pm in @INC #621

XXLRay opened this issue May 28, 2015 · 6 comments
Assignees

Comments

@XXLRay
Copy link

XXLRay commented May 28, 2015

I am trying to install octopussy-1.0.14 on Red Hat Enterprise Linux Client release 5.11 (Tikanga) with perl, v5.8.8 built for x86_64-linux-thread-multi.:

I followed the install instructions for CentOS on http://www.octopussy.pm/documentation/guides/administrator_guide/01_installation

When executing cpan Apache::ASP App::Info App::Info::HTTPD Cache::Cache Crypt::PasswdMD5 I get the error message:

Result: FAIL
Failed 6/21 test programs. 62/475 subtests failed.
make: *** [test_dynamic] Error 255
  /usr/bin/make test -- NOT OK
Running make install
  make test had returned bad status, won't install without force

And when I want to start octopussy:

/etc/init.d/octopussy web-start
Can't locate App/Info/HTTPD/Apache.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/lib/perl5/site_perl/5.8.8/Octopussy/System.pm line 13.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Octopussy/System.pm line 13.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/Octopussy/Device.pm line 26.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Octopussy/Device.pm line 26.
Compilation failed in require at /etc/init.d/octopussy line 41.
BEGIN failed--compilation aborted at /etc/init.d/octopussy line 41.

So I guess something fails when I try to install the Apache perl modules- How can I get around this?

Edit 1: I found another discussion but it didn't help me #242

Edit 2: I was able to go through the installation process by:

cpan
force install Apache::ASP
force install App::Info
force install App::Info::HTTPD
force install Cache::Cache
force install Crypt::PasswdMD5

But when I now try to start octopussy by /etc/init.d/octopussy web-start; /etc/init.d/octopussy start

I get the error message:

octopussy Dispatcher Started.
octopussy RRD Started.
octopussy Scheduler Started.
octopussy Sender Started.
octopussy Pusher Started.
octopussy Commander Started.
Can't locate Time/Piece.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/sbin/octo_scheduler line 23.
BEGIN failed--compilation aborted at /usr/sbin/octo_scheduler line 23.

Edit 3: Also needed to do:

cpan Time::Piece
cpan
force install DateTime::Format::Strptime
exit

Now I have a login screen at https://my.server.name:8888 after /etc/init.d/octopussy start although it still gives me:

DateTime version 1 required--this is only version 0.50 at /usr/lib/perl5/site_perl/5.8.8/DateTime/Format/Strptime.pm line 7.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/DateTime/Format/Strptime.pm line 7.
Compilation failed in require at /usr/sbin/octo_pusher line 25.
BEGIN failed--compilation aborted at /usr/sbin/octo_pusher line 25.

So something in the installation guide seems not to be fitting RHEL 5.

@sebthebert sebthebert self-assigned this May 28, 2015
@sebthebert
Copy link
Collaborator

I've updated your issue to be more readable...
But thanks for this really detailed report !

I will update my doc and take a look at this DateTime issue tonight.

sebthebert added a commit to Octopussy-Project/Octopussy_Documentation that referenced this issue May 28, 2015
Time::Piece Perl module requirement added has suggested in this [Octopussy issue](Octopussy-Project/Octopussy#621)
@sebthebert
Copy link
Collaborator

I've fixed documentation about Time::Piece on Github and on the official website.

But it seems my documentation is more outdated than I thought about Perl modules...
I will update this documentation later next week.

@XXLRay
Copy link
Author

XXLRay commented May 29, 2015

I am happy if I could help. Currently I am working on getting the SQL database created. Because the Configuration menu tells me "Database Connection is NOT OK !"

@XXLRay
Copy link
Author

XXLRay commented May 29, 2015

Just as we are at optimizing the installation guide:

  • You should add # in fron of ":hostname, !isequal, "your_server_name" ~" in your /etc/rsyslog.d/octopussy.conf if you use the host as remote logging server as this line otherwise drops all messages even if you may want to keep them.
  • It may sound trivial but probably add that you need a MySQL database and that you need to create the database, the user and privileges. I knew it but remember that the very first time I had to do something similar I was expecting the program to take care of it on its own.

@XXLRay
Copy link
Author

XXLRay commented May 29, 2015

Just noticed that if you give the correct root password the database with necessary table is created automatically during install :)

@XXLRay
Copy link
Author

XXLRay commented Jun 3, 2015

I just noticed when you want to still use the server as remote log server you furthermore need to add # in front of :hostname, !isequal, "your_server_name" ~ in your /etc/rsyslog.d/10-octopussy.conf

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

No branches or pull requests

2 participants