开始使用红宝石上帝

时间:2014-12-27 12:33:20

标签: ruby god

当关注上帝的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 个答案:

答案 0 :(得分: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