Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: java.dev on January 03, 2015, 11:27:58 AM



Title: compiling error !!
Post by: java.dev on January 03, 2015, 11:27:58 AM
Hi,

Iam trying to compile bitcoind (also tried litecoind) on my Ubuntu vps (Description:Ubuntu 12.04.5 LTS      Release:12.04) but getting error every time i do: make -f makefile.unix USE_UPNP=-


Error :

leveldb/libleveldb.a: could not read symbols: Archive has no index; run ranlib to add one
collect2: ld returned 1 exit status




Thanks in advance.

 


Title: Re: compiling error !!
Post by: Madness on January 03, 2015, 11:40:16 AM
Hi,

Iam trying to compile bitcoind (also tried litecoind) on my Ubuntu vps (Description:Ubuntu 12.04.5 LTS      Release:12.04) but getting error every time i do: make -f makefile.unix USE_UPNP=-

Error :

leveldb/libleveldb.a: could not read symbols: Archive has no index; run ranlib to add one
collect2: ld returned 1 exit status


Thanks in advance.


I don't really have knowldege with Native programming languages but im pretty sure you will find help on "Development & Technical Discussion" Section . just move your thread day and you will certaintly get the needed help there

~ Madness


Title: Re: compiling error !!
Post by: SeymourSkinner on January 03, 2015, 01:56:30 PM
You'll probably find an awnser here:

    
Building headless Bitcoin and Bitcoin-qt on Windows  (https://bitcointalk.org/index.php?topic=149479.0;all)

edit: oh, linux...

Maybe this one is better:

    
[Solved] Compile Bitcoin 0.9.0 from source linux  (https://bitcointalk.org/index.php?topic=543009.0)

Or this one:

compiling bitcoind on ubuntu-server 12.04 (https://gist.github.com/WyseNynja/2503687)


Title: Re: compiling error !!
Post by: java.dev on January 03, 2015, 06:27:11 PM
Thanks but iam still looking for a solution.... :( Sadly i still can't get rid of that error !!


Title: Re: compiling error !!
Post by: grue on January 03, 2015, 10:20:56 PM
aren't you supposed to do
Code:
./autogen.sh
./configure
make
rather than using the makefile directly?


Title: Re: compiling error !!
Post by: activebiz on January 03, 2015, 10:38:57 PM
what version of bitcoin are u trying to compile. newer versions are compiled with
./autogen.sh
./configure
make
make install # optional


Title: Re: compiling error !!
Post by: java.dev on January 03, 2015, 11:29:18 PM
aren't you supposed to do
Code:
./autogen.sh
./configure
make
rather than using the makefile directly?

what version of bitcoin are u trying to compile. newer versions are compiled with
./autogen.sh
./configure
make
make install # optional


Thanks a lot i was just missing that  :) Now i have successfully compiled bitcoind and litecoind both.

Here is one issue if anyone can help with iam tiered of pulling searches for it:
I did an altcoin ( a litecoin clone) just for my learning as i won't release it, for that coin iam still having the same error though i can compile it easily on my windows32 bit...... I guess a problem with my libleveldb.a libmemenv.a ??? any idea how to fix it ?


Title: Re: compiling error !!
Post by: activebiz on January 04, 2015, 09:55:30 AM
u should post the error msg.
some altcoins need to set permission to libleveldb;
cd litecoin
chmod 755 src/leveldb/build_detect_platform
to compile them.

.on windows u might need to build libleveldb.a libmenenv.a before compile.


Title: Re: compiling error !!
Post by: java.dev on January 04, 2015, 12:56:26 PM
u should post the error msg.
some altcoins need to set permission to libleveldb;
cd litecoin
chmod 755 src/leveldb/build_detect_platform
to compile them.

.on windows u might need to build libleveldb.a libmenenv.a before compile.

Hi this is the error iam getting:

leveldb/libleveldb.a: could not read symbols: Archive has no index; run ranlib to add one
collect2: ld returned 1 exit status



on windows i can compile the qt easily for my altcoin using the source but on linux only iam having this error.

Edit this is my os info:
Debian:
Release Kali Linux 1.0.6 32-bit
Kernel Linux 3.12-kali1-486
GNOME 3.4.2


Title: Re: compiling error !!
Post by: java.dev on January 04, 2015, 06:09:01 PM
Its finally working the wallet is in sync with others and giving outputs as well


What i did was :

just copy the liblevel.db.a   and   libmemenv.a from the litecoin source i compiled on the same linux to my testcoin and then compiled my testcoind and it worked :)