有時候編 perl 會失敗..錯誤訊息如下

===> Building for perl-5.8.8
`sh cflags "optimize='-O2 -pipe -march=opteron'" toke.o` -fpic toke.c
CCCMD = cc -DPERL_CORE -c -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.8/BSDPAN" -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -O2 -pipe -march=opteron -Wall
toke.c: In function `S_scan_formline':
toke.c:10596: error: invalid operands to binary +
toke.c:10596: error: invalid lvalue in unary `&'
toke.c:10596: error: invalid lvalue in unary `&'
*** Error code 1

Stop in /usr/ports/lang/perl5.8/work/perl-5.8.8.
*** Error code 1

Stop in /usr/ports/lang/perl5.8.

結果這 bug 出現的原因有點鳥

原因是因為跑這程式的人家目錄下有一隻叫 test 的程式
造成用 ports 安裝 perl 時會先去跑那程式而出問題
所以遇到這問題就看你自己家裡有沒有 test 這程式..有的話表示 ports 跑到你家去跑你那隻不知道幹嘛的 test 了......
創作者介紹
創作者 Ronny's BLOG 的頭像
榮尼王

Ronny's BLOG

榮尼王 發表在 痞客邦 留言(5) 人氣( 647 )