Menu

Error : Can't locate NetDB.pm

Help
2016-10-05
2018-01-31
  • Cedric Orzakiewicz

    Hi,

    I have just installed NetDB on Debian 8 following the instructions in the file INSTALL.
    After that, I try to test if the install is fine by running netdb command from shell.
    I have got this error message :

    Can't locate NetDB.pm in @INC (you may need to install the NetDB 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 /usr/local/bin/netdb line 48.
    BEGIN failed--compilation aborted at /usr/local/bin/netdb line 48.

    Can anyone help me to understand what is going wrong ?

    Thank you very much.

     
  • Cedric Orzakiewicz

    I have seen that was not existing in @INC of Perl.
    So I added links like this and this has solved the issue :
    ln -s /opt/netdb/NetDBHelper.pm /usr/share/perl5/NetDBHelper.pm
    ln -s /opt/netdb/NetDB.pm /usr/share/perl5/NetDB.pm

    :-)

     

    Last edit: Cedric Orzakiewicz 2016-10-05
  • H. Dao

    H. Dao - 2018-01-31

    Run these two commands still not work for me. Thanks

     

    Last edit: H. Dao 2018-01-31

Log in to post a comment.