Menu

Error : Can't locate File/Flock.pm

Help
2016-10-05
2016-10-06
  • Cedric Orzakiewicz

    Hi,

    Here is the error message I have got when I execute netdbctl -ud -v

    netdbctl -ud -v
    Wed Oct 5 18:43:31 2016: netdbctl(11826): Running netdbscraper on devices
    Wed Oct 5 18:43:31 2016: netdbctl(11826): Can't locate File/Flock.pm in @INC (you may need to install the File::Flock module) (@INC contains: . /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl) at NetDBHelper.pm line 43.
    Wed Oct 5 18:43:31 2016: netdbctl(11826): BEGIN failed--compilation aborted at NetDBHelper.pm line 43.
    Wed Oct 5 18:43:31 2016: netdbctl(11826): Compilation failed in require at /opt/netdb/netdbscraper/netdbscraper.pl line 77.
    Wed Oct 5 18:43:31 2016: netdbctl(11826): BEGIN failed--compilation aborted at /opt/netdb/netdbscraper/netdbscraper.pl line 77.
    cp: cannot stat ‘/opt/netdb/data/newmactable.txt’: No such file or directory
    cp: cannot stat ‘/opt/netdb/data/newintstatus.txt’: No such file or directory
    cp: cannot stat ‘/opt/netdb/data/newarptable.txt’: No such file or directory
    cp: cannot stat ‘/opt/netdb/data/newipv6nt.csv’: No such file or directory
    cp: cannot stat ‘/opt/netdb/data/newnd.csv’: No such file or directory
    Wed Oct 5 18:43:31 2016: netdbctl(11826): NetDB update complete

    I think that "Can't locate File/Flock.pm" is quite bad.

    Can anyone help me on this ?

    Thank you very much.

     
  • Cedric Orzakiewicz

    Hi guys,

    Changing use File::Flock; to LockedFile::Flock; in NetDBHelper.pm does not solve the problem.
    As I am not skilled in Linux, I think I did something wrong.
    Actually I started from scratch by installing Debian 8 (network ISO). Correctly configured root password, hostname, static ip and so on...
    After that, under root, I installed MySQL (following a procedure found on Google) and then I followed the instruction file INSTALL provided with the package netdb-1.13.2.tar.gz
    That brings me to the issues I mentionned.

    Now I am trying with Ubuntu 16.4 Server, let's see.

    In the meanwhile, your suggestions are well welcomed :)

    Thanks again.

     

Log in to post a comment.