Under Fedora22, when you recompile the installation vim7.4, the following error occurs when compiling support for Perl components:
/bin/perl -e ‘unless ( $] >= 5.005 ) { for (qw(na defgv errgv)) { print "#define PL_$_ $_\n" }}‘ > auto/if_perl.c
/bin/perl /usr/share/perl5/ExtUtils/xsubpp -prototypes -typemap /usr/share/perl5/ExtUtils/typemap if_perl.xs >> auto/if_perl.c
Can‘t open perl script "/usr/share/perl5/ExtUtils/xsubpp": No such file or directory
Makefile:2453: recipe for target ‘auto/if_perl.c‘ failed
make[1]: *** [auto/if_perl.c] Error 2
make[1]: Leaving directory ‘/home/$usr/vim/src/vim74/src‘
Makefile:26: recipe for target ‘first‘ failed
make: *** [first] Error 2
Find the next, found that the Fedora22 perl5 $lib path and the original system is not the same, in the $pelr5/vendor_perl/extutil/has a connection file XSUBPP.
Then modify the direction of the compilation of the path, and then compile, but error:
objects/buffer.o: In function `free_buffer‘:
/home/$usr/vim/src/vim74/src/buffer.c:661: undefined reference to `perl_buf_free‘
objects/ex_docmd.o:(.rodata+0x4678): undefined reference to `ex_perl‘
objects/ex_docmd.o:(.rodata+0x4690): undefined reference to `ex_perldo‘
objects/window.o: In function `win_free‘:
/home/$usr/vim/src/vim74/src/window.c:4554: undefined reference to `perl_win_free‘
objects/main.o: In function `getout‘:
/home/$usr/vim/src/vim74/src/main.c:1488: undefined reference to `perl_end‘
collect2: error: ld returned 1 exit status
link.sh: Linking failed
Makefile:1733: recipe for target ‘vim‘ failed
make[1]: *** [vim] Error 1
make[1]: Leaving directory ‘/home/$USR/vim/src/vim74/src‘
Makefile:26: recipe for target ‘first‘ failed
make: *** [first] Error 2
Check the src/auto/in the if_perl.c file, found that it was empty, the build failed.
According to makefile or the first error guidelines, find the command to generate IF_PERL.C, manually generated can:
/bin/perl -e ‘unless ( $] >= 5.005 ) { for (qw(na defgv errgv)) { print "#define PL_$_ $_\n" }}‘ > auto/if_perl.c
/bin/perl /usr/share/perl5/ExtUtils/xsubpp -prototypes -typemap /usr/share/perl5/ExtUtils/typemap if_perl.xs >> auto/if_perl.c
Note the path of the XSUBPP.
[Vim plugin]fedora22 compile vim7.4 support for Perl components