2015年10月28日 星期三

在x86平台交叉編譯perl

1. 下載perl和cross-perl
$ tar -zxvf perl-5.12.3.tar.gz
$ tar -zxvf perl-5.12.3-cross-0.5.tar.gz
2. 修改以下檔案
$ vi configure
$ vi cnf/configure
$ vi cnf/configure__f.sh
$ vi Makefile.config.SH

Modify #!/bin/sh to #!/bin/bash
3. 產生Makefile
$ ./configure --prefix=/home/allen/Work/perl-5.12.3/output
4. 編譯
$ make
$ make install
5. 參考來源
http://arsv.github.io/perl-cross/
http://wenku.baidu.com/view/59dc7c33f111f18583d05a6c.html
http://stackoverflow.com/questions/5464538/cross-compile-perl-for-arm
http://www.aliog.com/34757.html
http://arsv.github.io/perl-cross/usage.html

沒有留言:

張貼留言