簡體   English   中英

紅寶石上帝入門

[英]Getting started with ruby God

在God上遵循本教程時,我運行命令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 我重新安裝了God( sudo gem install god ),仍然在運行god --version獲得了以上輸出。 任何解決方法?

以防萬一:使用Mac OSX。

似乎您是在運行命令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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM