請問有人成功在 jb 後的 iDevices 上 成功編譯過 perl DBI 嗎?

因為想在我的 iDevice 上安裝如同我 Utuntu server 一樣的LAMP開發環境

外加 perl

我的iDEVICE: ipod touch 3

ios: 5.0.1

現在安裝了 gcc, perl , mySQL,

但在 make Perl DBI 時 出現錯誤

/usr/local/lib/perl5/5.10.0/arm-iphoneos/CORE/perl.h:5685:63: error: libutil.h: No such file or directory
make: *** [Perl.o] Error 1
TIMB/DBI-1.622.tar.gz
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
TIMB/DBI-1.622.tar.gz : make NO


請問有大大知道SOLUTION嗎?

感謝
2012-11-05 0:45 發佈
lutalu wrote:
因為想在我的 iDe...(恕刪)




有人有遇到和樓主一樣的問題:
iPad の Perl に DBD::CSV をインストールする
http://shyunsei.9ten.net/?p=472

解決方式:
cd /usr/local/lib/perl5/5.10.0/arm-iphoneos/CORE/
wget http://src.gnu-darwin.org/src/lib/libutil/libutil.h

樓主可以試看看
太感謝您了

libutil.h 的問題解決了

編譯似乎完成, 但好像仍不能順利 use DBI;

Can't locate loadable object for module DBI in @INC (@INC contains: /usr/local/lib/perl5/5.10.0/arm-iphoneos /usr/local/lib/perl5/5.10.0 /usr/local/lib/perl5/site_perl/5.10.0/arm-iphoneos /usr/local/lib/perl5/site_perl/5.10.0 /usr/local/lib/perl5/5.10.0/arm-iphoneos /usr/local/lib/perl5/5.10.0 . .) at /usr/local/lib/perl5/5.10.0/arm-iphoneos/DBI.pm line 266
BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.10.0/arm-iphoneos/DBI.pm line 266.


Compilation failed in require at createTableTest1.pl line 7.
BEGIN failed--compilation aborted at createTableTest1.pl line 7.

line 7 就是 use DBI;

不知是不是路徑問題, 不能偷懶, 要看一下 DBI 的 readme 了

THANKS AGAIN!!!
內文搜尋
X
評分
評分
複製連結
Mobile01提醒您
您目前瀏覽的是行動版網頁
是否切換到電腦版網頁呢?