我想利用peershares造出自己的币执行到make -f makefile.unix 就出错了!!

根据这个教程https://github.com/Peershares/Peershares/wiki/Genesis-Block-%28Starting-a-New-Blockchain-Instance%29
执行这个命令make -f makefile.unix 就出错了。
我什么也不改动也同样出错。在搬瓦工VPS上 系统:ubuntu 14.04 32位。
然后我去usr/share/doc/gcc-4.8/README.Bugs
gcc-4.8/这个文件夹不存在了。怎么回事?
json/json_spirit_writer_template.h: In function ‘String_type json_spirit::non_printable_to_string(unsigned int)’:
json/json_spirit_writer_template.h:31:50: warning: typedef ‘Char_type’ locally defined but not used [-Wunused-local-typedefs]
typedef typename String_type::value_type Char_type;
^
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> fo

翻墙上这个论坛速度还是很快的。感觉翻墙是一种时尚了。
正在使用ubuntu 14.04 64位 执行make这一步了,希望不要出错。


////成功了。没有报错。
rm: 无法删除"/home/user/Peershares": 没有那个文件或目录
看来第二个命令是执行成功了。
拿搬瓦工VPS拿来挖素数币,不知道是否可行???听说没有专门的linux平台的挖矿程序。

当我的内容多一点点的时候就会出现这个提示:

The following error or errors occurred while posting this message:
The message body was left empty.

现在进行到这一步;



$ rm -r ~/.peershares //提示没有那个文件
$ rm -r ~/Peershares //按下两个Y 就可以了。

    if (fTestNet)
    {
        pszTimestamp="April 2, 2014 Supreme Court Strikes Down Overall Campaign Contribution Limits";
        nTimeGenesis=1445429702;  //date +%s命令生成
        nNonceGenesis=0; 
    }

就改这两个地方其余的不动。
make -f makefile.unix 等待结果:。。。。

  • Change the value for nNonceGenesis to the new nNonce value from debug.log: // 这个debug.log 我是在.peershares目录下发现的。
    nNonce=1290504, vtx=1, vchBlockSig=)
    Change the value for nNonceGenesis to the new nNonce value from debug.log:
    应该这样unsigned int nNonceGenesis=1290504;

Change the value for nNonceGenesis to the new nNonce value from debug.log:
进入testnet目录;里面还有一个debug.log文件 nNonce 的值
nNonce=653020, vtx=1, vchBlockSig=)
Main.cpp:L2268 - Change the value for nNonceGenesis to the new nNonce value from the TestNet debug.log:
unsigned int nNonceGenesis=236800; ///这是要求/但是我的main.cpp文件的
2267行
2268 行 nTimeGenesis=1445429702;
2269行 nNonceGenesis=0;

Change the value for nNonceGenesis to the new nNonce value from debug.log:
进入testnet目录;里面还有一个debug.log文件 nNonce 的值
nNonce=653020, vtx=1, vchBlockSig=)
Main.cpp:L2268 - Change the value for nNonceGenesis to the new nNonce value from the TestNet debug.log:
unsigned int nNonceGenesis=236800; ///这是要求/但是我的main.cpp文件的
2267行 pszTimestamp=“April 2, 2014 Supreme Court Strikes Down Overall Campaign Contribution Limits”;
2268 行 nTimeGenesis=1445429702;
2269行 nNonceGenesis=0;
并没有发现文章所要求的:2268行 unsigned int nNonceGenesis=236800;
我决定在2269行 写 nNonceGenesis=653020;

Change the value for block.hashMerkleRoot == uint256, to the new merkle root hash value from debug.log. Paste the value in-between the quotation marks, after the leading 0x :
main.cpp
l2313 assert(block.hashMerkleRoot == uint256(“0x449af2a3a6f268586e31696f9f9a16a78c43b58b2bec36f3be1b1b3eeb4e944d”));
debug.log
merkle root=449af2a3a6f268586e31696f9f9a16a78c43b58b2bec36f3be1b1b3eeb4e944d
main.cpp
l2315 assert(block.hashMerkleRoot == uint256(“0x2c650ef5443e7070033922eb83ca039f4a031728e30cd5b7eae6a86cdc00aaf9”));
test/debug.log
merkle root=2c650ef5443e7070033922eb83ca039f4a031728e30cd5b7eae6a86cdc00aaf9

$ (text editor) kernel.cpp
休息一下明天继续。记录执行到这一步了。

kernel.cpp
unsigned int nProtocolV03SwitchTime = 1445429702; // Wed, 21 Oct 2015 12:15:02 GMT
unsigned int nProtocolV03TestSwitchTime = 1445429702; // Wed, 21 Oct 2015 12:15:02 GMT
“1445429702"来自main.cpp中的
nTimeGenesis=1445429702;
保存后在终端执行:
make -f makefile.unix BDB_INCLUDE_PATH=”/usr/local/BerkeleyDB.4.8/include" BDB_LIB_PATH="/usr/local/BerkeleyDB.4.8/lib"
没有发生错误。

$ rm -r ~/.peershares/
$ mkdir ~/.peershares/
$ mkdir ~/.peershares2/
-------以上三个指令成功--------------
mv ppcoind ~/.peershares //出错了
mv ppcoind ~/.peershares
mv: 无法获取"ppcoind" 的文件状态(stat): 没有那个文件或目录
上面的指令全部都白费了。要是编译成功ppcoind就会出现。

main。cpp
if (fTestNet)
{
pszTimestamp=“YOUR CUSTOM, VERIFIABLE TESTNET TIMESTAMP GOES HERE”;
nTimeGenesis=1395170250;
nNonceGenesis=0; //原来在这里没有改成0
现在把它改成0
kernel。cpp文件
没有unsigned int nProtocolV03TestSwitchTime 设置成未来时间。未来1天吧。
if (!fTestNet)
assert(block.hashMerkleRoot == uint256(“0x449af2a3a6f268586e31696f9f9a16a78c43b58b2bec36f3be1b1b3eeb4e944d”)); // 这里程序帮我改好了
else
assert(block.hashMerkleRoot == uint256(“0x2c650ef5443e7070033922eb83ca039f4a031728e30cd5b7eae6a86cdc00aaf9”));//这里也是。

ppcoind
文件就是编译不出来。怎么回事?

The language barrier is killing me here and I am not sure what your trying to do or what issue u having, @Redlee would you be able to help translate??

Fuzzybear

Sent from my HTC Desire using Tapatalk 2

sorry !! you shouldn’t be here. :frowning: :frowning: :frowning:
My native language is just as bad.
Even Red Lee is Chinese people are not able to understand.
:frowning: :frowning: