[Vim plugin]fedora22 compile vim7.4 support for Perl components

Source: Internet
Author: User
Tags perl script



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


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.