伊莉討論區

標題: perl sdl module 安裝 [打印本頁]

作者: freakguy    時間: 2015-9-5 05:01 PM     標題: perl sdl module 安裝

本帖最後由 freakguy 於 2015-9-5 05:16 PM 編輯

首先,有人知道這要到哪裡求救嗎?
每隔幾次安裝module就會遇到問題,去stackoverflow發問要很久才會有答案。



首先我是用ubuntu 14.04 lts
而且,這動作做了兩次(第二次紀錄)

1:輸入
$ sudo -s cpan SDL 1>stdout.txt  2>stderr.txt


stdout.txt 內容————————————————————————————————
1 Reading '/home/freakcoco/.cpan/Metadata'
  2   Database was generated on Fri, 04 Sep 2015 16:29:02 GMT
  3 Running install for module 'SDL'
  4 Checksum for /home/freakcoco/.cpan/sources/authors/id/F/FR/FROGGS/SD    L-2.546.tar.gz ok
  5 ---- Unsatisfied dependencies detected during ----
  6 ----          FROGGS/SDL-2.546.tar.gz         ----
  7     Alien::SDL [build_requires]
  8 Running install for module 'Alien::SDL'
  9 Checksum for /home/freakcoco/.cpan/sources/authors/id/F/FR/FROGGS/Al    ien-SDL-1.446.tar.gz ok
10 Configuring F/FR/FROGGS/Alien-SDL-1.446.tar.gz with Build.PL
11 Welcome to Alien::SDL module installation
12 -----------------------------------------
13 checking operating system... linux
14 checking for cc... yes
15 checking build system type... x86_64-linux-gnu-thread-multi
16 checking platform specific module... using 'My::Builder::Unix'
17 Warning: No success on command[/usr/bin/perl Build.PL --installdirs     site]
18   FROGGS/Alien-SDL-1.446.tar.gz
19   /usr/bin/perl Build.PL --installdirs site -- NOT OK
20   FROGGS/SDL-2.546.tar.gz
21   Has already been unwrapped into directory /home/freakcoco/.cpan/bu    ild/SDL-2.546-1przxQ
22 Warning: Prerequisite 'Alien::SDL => 1.446' for 'FROGGS/SDL-2.546.ta    r.gz' failed when processing 'FROGGS/Alien-SDL-1.446.tar.gz' with 'w    ritemakefile => NO '/usr/bin/perl Build.PL --installdirs site' retur    ned status 512'. Continuing, but chances to succeed are limited.
23 Configuring F/FR/FROGGS/SDL-2.546.tar.gz with Build.PL
24 Warning: No success on command[/usr/bin/perl Build.PL --installdirs     site]
25   FROGGS/SDL-2.546.tar.gz
26   /usr/bin/perl Build.PL --installdirs site -- NOT OK
————————————————————————————————— —END—


stderr.txt 內容————————————————————————————————
1 Unknown option: installdirs
  2 Too early to specify a build action 'site'.  Do 'Build site' instead    .
  3 Can't locate Alien/SDL.pm in @INC (you may need to install the Alien    ::SDL module) (@INC contains: inc /etc/perl /usr/local/lib/perl/5.18    .2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr    /lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at B    uild.PL line 12.
  4 BEGIN failed--compilation aborted at Build.PL line 12.
————————————————————————————————— —END—



2:輸入(因為我懷疑沒有 Alien::SDL Module)
$ sudo -s cpan SDL 1>stdout2.txt  2>stderr2.txt


stdout2.txt 內容————————————————————————————————
  1 Reading '/home/freakcoco/.cpan/Metadata'
  2   Database was generated on Fri, 04 Sep 2015 16:29:02 GMT
  3 Running install for module 'Alien::SDL'
  4 Checksum for /home/freakcoco/.cpan/sources/authors/id/F/FR/FROGGS/Al    ien-SDL-1.446.tar.gz ok
  5 Configuring F/FR/FROGGS/Alien-SDL-1.446.tar.gz with Build.PL
  6 Welcome to Alien::SDL module installation
  7 -----------------------------------------
  8 checking operating system... linux
  9 checking for cc... yes
10 checking build system type... x86_64-linux-gnu-thread-multi
11 checking platform specific module... using 'My::Builder::Unix'
12 Warning: No success on command[/usr/bin/perl Build.PL --installdirs     site]
13   FROGGS/Alien-SDL-1.446.tar.gz
14   /usr/bin/perl Build.PL --installdirs site -- NOT OK
————————————————————————————————— —END—



stderr2.txt 內容————————————————————————————————
Unknown option: installdirs
  2 Too early to specify a build action 'site'.  Do 'Build site' instead    .
————————————————————————————————— —END—








歡迎光臨 伊莉討論區 (http://a401.file-static.com/) Powered by Discuz!