I have Perl5.28 installed and Net::LibIDN installed but amavisd cant find it









up vote
0
down vote

favorite












I'm on a MacMini, using Homebrew to install things.



But - amavisd can't start because apparently it can't find this Net::IDN module?



I'm getting this



ERROR: MISSING REQUIRED BASIC MODULES:
Net::LibIDN
BEGIN failed--compilation aborted at /usr/local/sbin/amavisd line 251.


But I'm sure it is installed.



Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/install- 0.01.tar.gz ... OK
Configuring install-0.01 ... OK
Building and testing install-0.01 ... OK
Successfully installed install-0.01
Net::LibIDN is up to date. (0.12)
1 distribution installed


So how do I tell Perl to find it now?



EDIT:
So I'm forcing a reinstall - but still no joy



zeus:~ robert$ sudo cpanm --reinstall Net::LibIDN
Password:
--> Working on Net::LibIDN
Fetching http://www.cpan.org/authors/id/T/TH/THOR/Net-LibIDN-0.12.tar.gz ... OK
Configuring Net-LibIDN-0.12 ... OK
Building and testing Net-LibIDN-0.12 ... OK
Successfully reinstalled Net-LibIDN-0.12
1 distribution installed
zeus:~ robert$


and trying to run amavisd ...



zeus:~ robert$ sudo /usr/local/sbin/amavisd -c /usr/local/etc/amavisd.conf debug
Password:
ERROR: MISSING REQUIRED BASIC MODULES:
Net::LibIDN
BEGIN failed--compilation aborted at /usr/local/sbin/amavisd line 251.
zeus:~ robert$


So for some reason, it seems amavisd-new can't find the module. Just that Module?










share|improve this question



















  • 3




    Does the amavisd run in the same perl you installed the library to? Also not that you installed install (which is fortunately harmless).
    – choroba
    Nov 11 at 11:31










  • Yes, sorry, I did install “install”.. but yes, I’ve made sure I only have the one version of Perl. Updated to the latest. 5.8 I think it is.
    – Harry McGovern
    Nov 11 at 15:20










  • Where did cpanm instlal the module? What's the value of the @INC variable in amavisd before it fails to find the missing module?
    – choroba
    Nov 11 at 22:04










  • /usr/local/Cellar/perl/5.28.0/lib/perl5/site_perl/5.28.0/darwin-thread-multi-2level/Net/LibIDN.pm and in inc is here i think. add_entropy($], @INC, %ENV);
    – Harry McGovern
    Nov 12 at 7:39







  • 1




    I fear amavisd uses the system perl.
    – choroba
    Nov 12 at 9:12














up vote
0
down vote

favorite












I'm on a MacMini, using Homebrew to install things.



But - amavisd can't start because apparently it can't find this Net::IDN module?



I'm getting this



ERROR: MISSING REQUIRED BASIC MODULES:
Net::LibIDN
BEGIN failed--compilation aborted at /usr/local/sbin/amavisd line 251.


But I'm sure it is installed.



Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/install- 0.01.tar.gz ... OK
Configuring install-0.01 ... OK
Building and testing install-0.01 ... OK
Successfully installed install-0.01
Net::LibIDN is up to date. (0.12)
1 distribution installed


So how do I tell Perl to find it now?



EDIT:
So I'm forcing a reinstall - but still no joy



zeus:~ robert$ sudo cpanm --reinstall Net::LibIDN
Password:
--> Working on Net::LibIDN
Fetching http://www.cpan.org/authors/id/T/TH/THOR/Net-LibIDN-0.12.tar.gz ... OK
Configuring Net-LibIDN-0.12 ... OK
Building and testing Net-LibIDN-0.12 ... OK
Successfully reinstalled Net-LibIDN-0.12
1 distribution installed
zeus:~ robert$


and trying to run amavisd ...



zeus:~ robert$ sudo /usr/local/sbin/amavisd -c /usr/local/etc/amavisd.conf debug
Password:
ERROR: MISSING REQUIRED BASIC MODULES:
Net::LibIDN
BEGIN failed--compilation aborted at /usr/local/sbin/amavisd line 251.
zeus:~ robert$


So for some reason, it seems amavisd-new can't find the module. Just that Module?










share|improve this question



















  • 3




    Does the amavisd run in the same perl you installed the library to? Also not that you installed install (which is fortunately harmless).
    – choroba
    Nov 11 at 11:31










  • Yes, sorry, I did install “install”.. but yes, I’ve made sure I only have the one version of Perl. Updated to the latest. 5.8 I think it is.
    – Harry McGovern
    Nov 11 at 15:20










  • Where did cpanm instlal the module? What's the value of the @INC variable in amavisd before it fails to find the missing module?
    – choroba
    Nov 11 at 22:04










  • /usr/local/Cellar/perl/5.28.0/lib/perl5/site_perl/5.28.0/darwin-thread-multi-2level/Net/LibIDN.pm and in inc is here i think. add_entropy($], @INC, %ENV);
    – Harry McGovern
    Nov 12 at 7:39







  • 1




    I fear amavisd uses the system perl.
    – choroba
    Nov 12 at 9:12












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I'm on a MacMini, using Homebrew to install things.



But - amavisd can't start because apparently it can't find this Net::IDN module?



I'm getting this



ERROR: MISSING REQUIRED BASIC MODULES:
Net::LibIDN
BEGIN failed--compilation aborted at /usr/local/sbin/amavisd line 251.


But I'm sure it is installed.



Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/install- 0.01.tar.gz ... OK
Configuring install-0.01 ... OK
Building and testing install-0.01 ... OK
Successfully installed install-0.01
Net::LibIDN is up to date. (0.12)
1 distribution installed


So how do I tell Perl to find it now?



EDIT:
So I'm forcing a reinstall - but still no joy



zeus:~ robert$ sudo cpanm --reinstall Net::LibIDN
Password:
--> Working on Net::LibIDN
Fetching http://www.cpan.org/authors/id/T/TH/THOR/Net-LibIDN-0.12.tar.gz ... OK
Configuring Net-LibIDN-0.12 ... OK
Building and testing Net-LibIDN-0.12 ... OK
Successfully reinstalled Net-LibIDN-0.12
1 distribution installed
zeus:~ robert$


and trying to run amavisd ...



zeus:~ robert$ sudo /usr/local/sbin/amavisd -c /usr/local/etc/amavisd.conf debug
Password:
ERROR: MISSING REQUIRED BASIC MODULES:
Net::LibIDN
BEGIN failed--compilation aborted at /usr/local/sbin/amavisd line 251.
zeus:~ robert$


So for some reason, it seems amavisd-new can't find the module. Just that Module?










share|improve this question















I'm on a MacMini, using Homebrew to install things.



But - amavisd can't start because apparently it can't find this Net::IDN module?



I'm getting this



ERROR: MISSING REQUIRED BASIC MODULES:
Net::LibIDN
BEGIN failed--compilation aborted at /usr/local/sbin/amavisd line 251.


But I'm sure it is installed.



Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/install- 0.01.tar.gz ... OK
Configuring install-0.01 ... OK
Building and testing install-0.01 ... OK
Successfully installed install-0.01
Net::LibIDN is up to date. (0.12)
1 distribution installed


So how do I tell Perl to find it now?



EDIT:
So I'm forcing a reinstall - but still no joy



zeus:~ robert$ sudo cpanm --reinstall Net::LibIDN
Password:
--> Working on Net::LibIDN
Fetching http://www.cpan.org/authors/id/T/TH/THOR/Net-LibIDN-0.12.tar.gz ... OK
Configuring Net-LibIDN-0.12 ... OK
Building and testing Net-LibIDN-0.12 ... OK
Successfully reinstalled Net-LibIDN-0.12
1 distribution installed
zeus:~ robert$


and trying to run amavisd ...



zeus:~ robert$ sudo /usr/local/sbin/amavisd -c /usr/local/etc/amavisd.conf debug
Password:
ERROR: MISSING REQUIRED BASIC MODULES:
Net::LibIDN
BEGIN failed--compilation aborted at /usr/local/sbin/amavisd line 251.
zeus:~ robert$


So for some reason, it seems amavisd-new can't find the module. Just that Module?







macos perl cpan






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 11 at 14:25

























asked Nov 11 at 11:16









Harry McGovern

9311




9311







  • 3




    Does the amavisd run in the same perl you installed the library to? Also not that you installed install (which is fortunately harmless).
    – choroba
    Nov 11 at 11:31










  • Yes, sorry, I did install “install”.. but yes, I’ve made sure I only have the one version of Perl. Updated to the latest. 5.8 I think it is.
    – Harry McGovern
    Nov 11 at 15:20










  • Where did cpanm instlal the module? What's the value of the @INC variable in amavisd before it fails to find the missing module?
    – choroba
    Nov 11 at 22:04










  • /usr/local/Cellar/perl/5.28.0/lib/perl5/site_perl/5.28.0/darwin-thread-multi-2level/Net/LibIDN.pm and in inc is here i think. add_entropy($], @INC, %ENV);
    – Harry McGovern
    Nov 12 at 7:39







  • 1




    I fear amavisd uses the system perl.
    – choroba
    Nov 12 at 9:12












  • 3




    Does the amavisd run in the same perl you installed the library to? Also not that you installed install (which is fortunately harmless).
    – choroba
    Nov 11 at 11:31










  • Yes, sorry, I did install “install”.. but yes, I’ve made sure I only have the one version of Perl. Updated to the latest. 5.8 I think it is.
    – Harry McGovern
    Nov 11 at 15:20










  • Where did cpanm instlal the module? What's the value of the @INC variable in amavisd before it fails to find the missing module?
    – choroba
    Nov 11 at 22:04










  • /usr/local/Cellar/perl/5.28.0/lib/perl5/site_perl/5.28.0/darwin-thread-multi-2level/Net/LibIDN.pm and in inc is here i think. add_entropy($], @INC, %ENV);
    – Harry McGovern
    Nov 12 at 7:39







  • 1




    I fear amavisd uses the system perl.
    – choroba
    Nov 12 at 9:12







3




3




Does the amavisd run in the same perl you installed the library to? Also not that you installed install (which is fortunately harmless).
– choroba
Nov 11 at 11:31




Does the amavisd run in the same perl you installed the library to? Also not that you installed install (which is fortunately harmless).
– choroba
Nov 11 at 11:31












Yes, sorry, I did install “install”.. but yes, I’ve made sure I only have the one version of Perl. Updated to the latest. 5.8 I think it is.
– Harry McGovern
Nov 11 at 15:20




Yes, sorry, I did install “install”.. but yes, I’ve made sure I only have the one version of Perl. Updated to the latest. 5.8 I think it is.
– Harry McGovern
Nov 11 at 15:20












Where did cpanm instlal the module? What's the value of the @INC variable in amavisd before it fails to find the missing module?
– choroba
Nov 11 at 22:04




Where did cpanm instlal the module? What's the value of the @INC variable in amavisd before it fails to find the missing module?
– choroba
Nov 11 at 22:04












/usr/local/Cellar/perl/5.28.0/lib/perl5/site_perl/5.28.0/darwin-thread-multi-2level/Net/LibIDN.pm and in inc is here i think. add_entropy($], @INC, %ENV);
– Harry McGovern
Nov 12 at 7:39





/usr/local/Cellar/perl/5.28.0/lib/perl5/site_perl/5.28.0/darwin-thread-multi-2level/Net/LibIDN.pm and in inc is here i think. add_entropy($], @INC, %ENV);
– Harry McGovern
Nov 12 at 7:39





1




1




I fear amavisd uses the system perl.
– choroba
Nov 12 at 9:12




I fear amavisd uses the system perl.
– choroba
Nov 12 at 9:12












1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










It's because amavisd uses the system perl, while cpanm was installed to a custom perl and installs modules there.



Either install the module to system perl, or try to convince amavisd to run in the custom perl (might involve manually changing the shebang lines in its source files).






share|improve this answer




















    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53248167%2fi-have-perl5-28-installed-and-netlibidn-installed-but-amavisd-cant-find-it%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote



    accepted










    It's because amavisd uses the system perl, while cpanm was installed to a custom perl and installs modules there.



    Either install the module to system perl, or try to convince amavisd to run in the custom perl (might involve manually changing the shebang lines in its source files).






    share|improve this answer
























      up vote
      1
      down vote



      accepted










      It's because amavisd uses the system perl, while cpanm was installed to a custom perl and installs modules there.



      Either install the module to system perl, or try to convince amavisd to run in the custom perl (might involve manually changing the shebang lines in its source files).






      share|improve this answer






















        up vote
        1
        down vote



        accepted







        up vote
        1
        down vote



        accepted






        It's because amavisd uses the system perl, while cpanm was installed to a custom perl and installs modules there.



        Either install the module to system perl, or try to convince amavisd to run in the custom perl (might involve manually changing the shebang lines in its source files).






        share|improve this answer












        It's because amavisd uses the system perl, while cpanm was installed to a custom perl and installs modules there.



        Either install the module to system perl, or try to convince amavisd to run in the custom perl (might involve manually changing the shebang lines in its source files).







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 12 at 10:09









        choroba

        153k14138200




        153k14138200



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53248167%2fi-have-perl5-28-installed-and-netlibidn-installed-but-amavisd-cant-find-it%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            這個網誌中的熱門文章

            Barbados

            How to read a connectionString WITH PROVIDER in .NET Core?

            Node.js Script on GitHub Pages or Amazon S3