dogecoin github tracing 流水帳 : 2021.9.6
https://github.com/dogecoin/dogecoin
相關檔案資料儲存位置, 可以參考 Debug Window 得到.
--
編譯: 參考 https://github.com/dogecoin/dogecoin/blob/master/doc/build-osx.md
$ ./autogen.sh
$ ./configure
遇到問題:
configure: error: Found Berkeley DB other than 5.1, required for portable wallet
先來研究 Berkeley DB
https://njiot.blogspot.com/2021/09/dogecoin-berkeley-db.html
$ make
--
遇到問題:
1. /usr/include/sys/ucred.h:94:2: error: ‘_Atomic’ does not name a type _Atomic u_long cr_ref; /* reference count */MACBOOK 的 舊的 gcc 有些狀況. 我移除原本 gcc/g++
$ sudo mv /usr/local/bin/gcc /usr/local/bin/gcc.bak
$ sudo mv /usr/local/bin/g++ /usr/local/bin/g++.bak
然後 link gcc-11 的過來
$ sudo ln -s /usr/local/bin/gcc-11 /usr/local/bin/gcc
$ sudo ln -s /usr/local/bin/g++-11 /usr/local/bin/g++
2. 找不到 openssl/sha.h
重裝 openssl 後, 修改 .bash_profile
export LDFLAGS="-L/usr/local/opt/openssl/lib -L/usr/local/lib"
export CFLAGS="-I/usr/local/opt/openssl/include -I/usr/local/include"
export CPPFLAGS="-I/usr/local/opt/openssl/include -I/usr/local/include"
重跑 configure, 應該可以看到 CFLAGS 和 CPPFLAGS 有 -I/usr/local/opt/openssl/include
3. ld: symbol(s) not found for architecture x86_64
處理中.. 看來是 gcc compile 在 mac 上 target 設定問題
--
執行:
echo -e "rpcuser=dogecoinrpc\nrpcpassword=$(xxd -l 16 -p /dev/urandom)" > "/Users/${USER}/Library/Application Support/Dogecoin/dogecoin.conf"
chmod 600 "/Users/${USER}/Library/Application Support/Dogecoin/dogecoin.conf"
--
Debug:
tail -f $HOME/Library/Application\ Support/Dogecoin/debug.log
指令:
./src/dogecoind -daemon # Starts the dogecoin daemon.
./src/dogecoin-cli --help # Outputs a list of command-line options.
./src/dogecoin-cli help # Outputs a list of RPC commands when the daemon is running.
留言
張貼留言