• Forum has been upgraded, all links, images, etc are as they were. Please see Official Announcements for more information

Recompile code from source

DrkMiner

Active member
He

I'm trying to recompile the latest version V. 11.

In the previous versions This command worked.
(guess makefile.unix is not good anymore)

cd darkcoin/src
make -f makefile.unix darkcoind

What command should I use now?

Thanks!
 
DrkMiner You'll need to do this:

Bash:
cd darkcoin 
./autogen.sh
./configure
make

The configure part has options that you can specify before compiling. To see the list of options do "./configure -help".
To only build the daemon and not anything else do:
Bash:
./configure --with-gui=no --with-cli=no --enable-tests=no

Also note, you'll absolutely need to use Berkeley Database 4.8 and not a newer version. Even specifying --with-incompatible-bdb will cause the daemon or QT to fail when launched.

You can grab Berkeley DB 4.8 directly from Oracle and install it like so:

Bash:
wget http://download.oracle.com/berkeley-db/db-4.8.30.tar.gz
tar -zxvf db-4.8.30.tar.gz
cd db-4.8.30/build_unix
../dist/configure --prefix=/usr/local --disable-replication --enable-cxx --enable-shared=no 
make && sudo make install
 
DrkMiner You'll need to do this:

Bash:
cd darkcoin
./autogen.sh
./configure
make

The configure part has options that you can specify before compiling. To see the list of options do "./configure -help".
To only build the daemon and not anything else do:
Bash:
./configure --with-gui=no --with-cli=no --enable-tests=no

Also note, you'll absolutely need to use Berkeley Database 4.8 and not a newer version. Even specifying --with-incompatible-bdb will cause the daemon or QT to fail when launched.

You can grab Berkeley DB 4.8 directly from Oracle and install it like so:

Bash:
wget http://download.oracle.com/berkeley-db/db-4.8.30.tar.gz
tar -zxvf db-4.8.30.tar.gz
cd db-4.8.30/build_unix
../dist/configure --prefix=/usr/local --disable-replication --enable-cxx --enable-shared=no
make && sudo make install

Thanks for answering!
Didn't work for me.

cd darkcoin
./autogen.sh
./configure
make

Gives me error.

Could someone please post the commands for Ubuntu?
I need to recompile the code for P2Pool.

Thanks!
 
Thanks for answering!
Didn't work for me.

cd darkcoin
./autogen.sh
./configure
make

Gives me error.

Could someone please post the commands for Ubuntu?
I need to recompile the code for P2Pool.

Thanks!
That should work in ubuntu. What kind of error do you get?
 
I think i do, was running the previous version before and they were installed. Does the new version need new dependencies?
 
Thank you for all the help.
Was missing:
sudo apt-get install libtool autotools-dev autoconf
Berkeley DB 4.8
 
Back
Top