Skip Menu |

This queue is for tickets about the ExtUtils-MakeMaker CPAN distribution.

Report information
The Basics
Id: 72104
Status: open
Priority: 0/
Queue: ExtUtils-MakeMaker

Owner: Nobody in particular
Requestors: jesse.thompson [...]

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)

Subject: Executables installed by EU::MM not compatible with -Duserelocatableinc
Download (untitled) / with headers
text/plain 1.3k
When I build perl with -Duserelocatableinc, and then move perl to another directory, and then install cpanm (it successfully installs), I am unable to run cpanm directly ./Configure \ -Dprefix=/opt \ -des \ -Duserelocatableinc ... sudo mv /opt/perl-5.14.2 /opt/perl-somethingelse sudo /opt/perl-somethingelse/bin/perl ./cpanm App::cpanminus Fetching ... OK Configuring App-cpanminus-1.5003 ... OK Building and testing App-cpanminus-1.5003 for App::cpanminus ... OK Successfully installed App-cpanminus-1.5003 head /opt/perl-somethingelse/bin/cpanm #!/opt/perl-5.14.2/bin/perl eval 'exec /opt/perl-5.14.2/bin/perl -S $0 ${1+"$@"}' if 0; # not running under some shell ... sudo /opt/perl-somethingelse/bin/cpanm sudo: unable to execute /opt/perl-somethingelse/bin/cpanm: No such file or directory ll /opt/perl-somethingelse/bin/cpanm -r-xr-xr-x 1 root root 318K Nov 1 13:45 /opt/perl-somethingelse/bin/cpanm sudo /opt/perl-somethingelse/bin/perl /opt/perl-somethingelse/bin/cpanm Some::Module (works OK) Miyagawa suggests... - " I believe it is MakeMaker that adds the shebang line like that and is common for all the executables installed by MakeMaker, not just cpanm. "
Download (untitled) / with headers
text/plain 256b
MakeMaker puts in that #! line, see ExtUtils::MM_Unix->_fixin_replace_shebang. It uses %Config to know what to do. $Config{startperl}, $Config{perlpath} and $Config{sharpbang}. If those are incorrect, it won't know any better. Please check those out.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to