【问题标题】:Errors in sdl install and use in perl on windowssdl 在 windows 上的 perl 安装和使用中的错误
【发布时间】:2016-12-09 03:06:09
【问题描述】:

我试过了:

  • 在菜单开始:CPAN Client
  • install Alien::SDL SDL
  • 我选择了 64 位,过了很长时间后出现错误:

怎么了?看似简单,其实不然

所以我尝试了:cpan -i --force SDL

没有错误,但我不能再运行 Padre 了:/ 我尝试perl name.pl(带有sdl代码程序),它给出了:

在 Windows 7 中的“cmd”中:cpan -i SDL 它给了我(最后一部分):

<pre>
t\sdlx_controller_interface.t ... ok
t\sdlx_fps.t .................... ok
t\sdlx_layermanager.t ........... ok
t\sdlx_music.t .................. ok
t\sdlx_rect.t ................... ok
t\sdlx_sfont.t .................. ok
t\sdlx_sound.t .................. ok
t\sdlx_sprite.t ................. ok
t\sdlx_sprite_animated.t ........ ok
t\sdlx_surface.t ................ ok
t\sdlx_text.t ................... ok
t\sdlx_validate.t ............... ok
t\smpeg.t ....................... skipped: smpeg support not compiled
t\ttf.t ......................... ok
t\ttf_font.t .................... ok

Test Summary Report
-------------------
t\core.t                      (Wstat: 0 Tests: 28 Failed: 0)
  TODO passed:   21-22
t\core_video.t                (Wstat: 768 Tests: 71 Failed: 0)
  TODO passed:   57, 59
  Non-zero exit status: 3
  Parse errors: No plan found in TAP output
Files=59, Tests=3788, 188 wallclock secs ( 0.56 usr +  0.08 sys =  0.64 CPU)
Result: FAIL
Failed 1/59 test programs. 0/3788 subtests failed.
  FROGGS/SDL-2.546.tar.gz
  E:\_win_7\Dwimperl\perl\bin\perl.exe ./Build test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports FROGGS/SDL-2.546.tar.gz
Running Build install
  make test had returned bad status, won't install without force

所以...我试过“cpan -i SDL --force”

给予:

Test Summary Report
-------------------
t\core.t                      (Wstat: 0 Tests: 28 Failed: 0)
  TODO passed:   21-22
t\core_video.t                (Wstat: 768 Tests: 71 Failed: 0)
  TODO passed:   57, 59
  Non-zero exit status: 3
  Parse errors: No plan found in TAP output
Files=59, Tests=3788, 147 wallclock secs ( 0.47 usr +  0.13 sys =  0.59 CPU)
Result: FAIL
Failed 1/59 test programs. 0/3788 subtests failed.
  FROGGS/SDL-2.546.tar.gz
  E:\_win_7\Dwimperl\perl\bin\perl.exe ./Build test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports FROGGS/SDL-2.546.tar.gz
Running Build install
  make test had returned bad status, won't install without force
Warning: Cannot install --force, don't know what it is.
Try the command

    i /--force/

to find objects with matching identifiers.

【问题讨论】:

    标签: windows perl sdl cpan


    【解决方案1】:

    所以我尝试了:

    cpan -i --force SDL
    

    没有错误,但我不能再运行 Padre。我试过了

    perl name.pl
    

    (带有 sdl 代码程序)它给出:

    【讨论】:

    • 我已将其编辑到问题中:请删除它,因为它不是答案
    猜你喜欢
    • 2011-02-04
    • 1970-01-01
    • 2018-11-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-11-27
    • 2014-07-28
    相关资源
    最近更新 更多