I tried running bitcoind (abc) and in spite of setting my datadir in bitcoin.conf file which I specified ... it tried to hijack the original datadir. thanks HCP.
I ended up running it with both the conf and datadir arguments.
any idea why that's the case? shouldn't I be able to use just the conf file to specify the datadir?
waiting for the solution from jackg / others on the su issue. I will try that too!
for anyone else wondering how I did it, I specified the installation folders with
Code:
./configure --prefix=$HOME --exec-prefix=$HOME
then I created a new folder for where Application Support/Bitcoin would go instead, /Bitcoin-abc and specified them while running bitcoind and in the conf files.
lastly, I created symlinks for $HOME/bitcoind into $PATH using ln -s:
Code:
ln -s /Users/homeuser/bin/bitcoind /usr/local/bin/bitcoind-abc
ln -s /Users/homeuser/bin/bitcoin-cli /usr/local/bin/bitcoinabc-cli
test it by
Code:
$ which bitcoind-abc
/usr/local/bin/bitcoind-abc
$ which bitcoinabc-cli
/usr/local/bin/bitcoinabc-cli
hope this helps others out there.
any comments on blind spots/improvements in this jerry-rigged version very welcome!