Мы недавно сделали эту миграцию на работе. Я настоятельно рекомендую:
Немного больше детали здесь .
In general, trying to override the settings in Config.pm is an exercise in futility. The more normal reason for wanting to change them is to change the compiler on a machine where Perl was compiled with a non-GNU compiler but you want to use GCC. This is so hard to do that it is by far simpler to rebuild Perl with your chosen compiler, install all the auxilliary modules, and then use build your chosen new module rather than try to fight 'the system'.
You can therefore do one of two things - build your GNU Readline library with the same options that Perl would use, or build your Perl with the options used to build GNU Readline. Trying to bend one to meet the other is not recommended if you value your machine and the hair on your head (please don't hit the machine that hard - it is the software you should be frustrated with, not the hardware; Mac's are nice!).
Of the two options, rebuilding GNU Readline is probably the easier - it is smaller and has fewer add-ons.
Информация, представленная в разделе Hintsfile Support документации, может быть актуальной, хотя я не пробовал ее.