Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

This is probably a simple question but I can't seem to figure it out. This is what I've done: started the cpan shell on my Mac OS X box and installed Alien::wxWidgets and took all the defaults. Everything worked great, I'm able to use wxPerl to build some nice looking apps but when trying to use PAR to package them it's referring to shared libs that don't exist. Looking online it seems the solution is to build wxWidgets with the following option: --disable-shared. I know I can pass the arg to the Makefile but is it possible to pass this same arg to the cpan shell? (e.g. cpan> install Alien::wxWidgets --disable-shared )?

Thanks

Replies are listed 'Best First'.
Re: cpan and install question
by ikegami (Patriarch) on Nov 16, 2009 at 16:36 UTC

    You said Makefile. Did you actually mean Makefile.PL? You can configure cpan to pass extra args to Makefile.PL via o conf makepl_arg. As long as you don't do o conf commit, the change will only last the session.

    If you meant make, o conf make_arg is probably the equivalent.

      I guess my issue is a bit differnet and applies specifically to the Alien::wxWidgets module. From the cpan prompt I use 'install Alien::wxWidgets' and starts to do it's thing and then asks if I would like to build Wx 2.8.10. If I choose yes it prompts me with a pre-set configuration for Wx Widgets 2.8.10 and one of the settings is shared libraries. This is what I want to disable but I'm not sure how to via the cpan shell.

      Any thoughts?

        Seems to me you shouldn't be using the cpan shell for this one.

        How do you disable it without using the shell?