ajrockefeller / openfpc

Automatically exported from code.google.com/p/openfpc
0 stars 0 forks source link

error running --action #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When trying to run openfpc (openfpc -a start) I get the following output...

[*] OpenFPC instance openfpc-default.conf

<...>

 -  SESSION DATABASE NAME: openfpc
 -  SESSION LAG:           0
Undefined subroutine &main::findcmd called at /usr/bin/openfpc line 235.

Don't understand where that error would come from. Thanks.

Original issue reported on code.google.com by problema...@gmail.com on 17 Feb 2011 at 3:37

GoogleCodeExporter commented 8 years ago
BTW, I am running CentOS. Thanks.

Original comment by problema...@gmail.com on 17 Feb 2011 at 9:07

GoogleCodeExporter commented 8 years ago
Actually I fixed that by inserting a blank line between the findcmd header and 
function but now I have a new issue. The openfpc-queued script will not run. 
Error below..

 -  SESSION DATA SEARCH:   ENABLED
 -  SESSION DATABASE NAME: openfpc
 -  SESSION LAG:           18
Starting Daemonlogger (xxx)...                                   Running
Starting OpenFPC Queue Daemon (xxx)...                         Can't locate 
Date/Simple.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 
OFPC/CXDB.pm line 5.
BEGIN failed--compilation aborted at OFPC/CXDB.pm line 5.
Compilation failed in require at /usr/bin/openfpc-queued line 38.
BEGIN failed--compilation aborted at /usr/bin/openfpc-queued line 38.
   Failed
 - Check syslog for details
Starting OpenFPC cxtracker (xxx)...                              Running
Starting OpenFPC Connection Uploader (xxx) ...                      Done

Original comment by problema...@gmail.com on 17 Feb 2011 at 9:40

GoogleCodeExporter commented 8 years ago
OpenFPC requires perl 5.10 (released in 2007), and it looks like you're running 
5.8. 

You have three options:

- Upgrade the version of Centos to something that ships with a modern Perl 
distribution
- Install a second copy of Perl somewhere and use that instead of the system 
provided one
- Use a different Linux distribution that includes a modern Perl

-Leon 

Original comment by leon.j.w...@gmail.com on 18 Feb 2011 at 11:53

GoogleCodeExporter commented 8 years ago
Good stuff. Thanks.

Original comment by problema...@gmail.com on 18 Feb 2011 at 3:38

GoogleCodeExporter commented 8 years ago
So if I did want to use say something like activeperl with openfpc how would I 
let the install know which perl to  use?

Original comment by sorrow...@gmail.com on 31 May 2011 at 8:01

GoogleCodeExporter commented 8 years ago
We should add a test for the perl version. RHEL 5 runs perl 5.8, so that 
results in the same error.

I know a lot of people out there are still using this version too!

I ran into this error recently when building a new sensor under RHEL5. Pretty 
frustrating as you don't realise till the very end when you try and run openfpc.

Original comment by SecListI...@gmail.com on 17 Oct 2011 at 5:08

GoogleCodeExporter commented 8 years ago
Agreed. This is probably the most common question that lands in my inbox.
I've been really busy recently, so a patch against CURRENT would be nice :)

Original comment by leon.j.w...@gmail.com on 17 Oct 2011 at 12:37