2014-12-27 35 views
0

当在this tutorial上面跟随时,我运行命令god -c path/to/simple.god -D,而不是如上所述获取输出,我得到下面奇怪的输出。开始使用红宝石神

0000000 G o d . w a t c h  d o  | w | 
       778334023  1668571511  1868832872  2088205344 
0000020 \n     w . n a m e  =  " s 
       538976266  1848538912  543518049  1931616317 
0000040 i m p l e " \n     w . s t a 
      1819307369  537535077  1998594080  1635021614 
0000060 r t  =  " r u b y  / U s e r 
      1025537138  1970414112  790657378  1919251285 
0000100 s / k a m a l / g o d r b / s i 
      1634414451  795631981  1919184743  1769156450 
0000120 m p l e . r b " \n     w . k 
      1701605485  576877102  538976266  1798207264 
0000140 e e p a l i v e \n e n d \n 
      1634755941  1702259052  1684956426    10 
0000155 

我不知道为什么它不起作用。

我只是跑god --version和输出

od (GNU coreutils) 8.22 
Copyright (C) 2013 Free Software Foundation, Inc. 
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. 
This is free software: you are free to change and redistribute it. 
There is NO WARRANTY, to the extent permitted by law. 

Written by Jim Meyering. 

看来实在是有些GNU god。我重新安装了上帝(sudo gem install god),并仍然运行god --version获得上述输出。任何解决方法?

以防万一:使用Mac OS X

回答

1

好像你运行该命令od而不是god

$ od -c /etc/lsb-release -D 
0000000 D I S T R I B _ I D = U b u n t 
      1414744388  1598179666  1430078537  1953396066 
0000020 u \n D I S T R I B _ R E L E A S 
      1229195893  1230132307  1163026242  1396786508 
0000040 E = 1 4 . 1 0 \n D I S T R I B _ 
       875642181  170930478  1414744388  1598179666 
0000060 C O D E N A M E = u t o p i c \n 
      1162104643  1162690894  1869903165  174287216 
0000100 D I S T R I B _ D E S C R I P T 
      1414744388  1598179666  1129530692  1414547794 
0000120 I O N = " U b u n t u  1 4 . 1 
      1028542281  1969378594  544568430  825111601 
0000140 0 " \n 
       664112 
0000143 

修正错字:god

+0

我复查像5倍,我相信我跑命令'god'而不是'od'。为了确保,我只是将它复制并粘贴在这里:'god -c simple.god -D'。 –

+0

好吧,我只是做了'上帝',我认为'上帝'我有一些'GNU od'。 –

+0

@KamalBanga,尝试'/ usr/local/bin/god'而不是'god'。 – falsetru