Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: jondecker76 on May 02, 2011, 04:18:58 PM



Title: [FIXED]bitcoind won't run on Ubuntu Server 10.04
Post by: jondecker76 on May 02, 2011, 04:18:58 PM
I have Bitcoin set up on all of my linux boxes but one, which is running Ubuntu Server 10.04

I downloaded and extracted the .tar.gz, and set the executable bit of bitcoind. I also have the ~/.bitcoin/bitcoin.conf file created.

When I try to launch ./bitcoind, I get an error that "-bash: ./bitcoind: No such file or directory" - though using other standard cli tools such as mv and ls clearly shows that bitcoind does exist.  I'm puzzled as to why it not only fails to execute, but why does bash think it doesn't exist only when I try to execute it (it works fine when the file is passed as a parameter in another function)?

any help would be appreciated!


Title: Re: bitcoind won't run on Ubuntu Server 10.04
Post by: dust on May 02, 2011, 05:02:09 PM
You might need to set the permissions to allow execution.

Code:
chmod +x bitcoind

Then try running it.


Title: Re: bitcoind won't run on Ubuntu Server 10.04
Post by: trentzb on May 02, 2011, 05:11:13 PM
Also try running ldd and see if anything is missing.

Code:
ldd bitcoind

x86 or 64?


Title: Re: bitcoind won't run on Ubuntu Server 10.04
Post by: jondecker76 on May 02, 2011, 05:52:43 PM
yes, the execution bit is set

I will try the ldd and see what I get


Title: Re: bitcoind won't run on Ubuntu Server 10.04
Post by: jondecker76 on May 02, 2011, 06:00:55 PM
no go with ldd :(


Code:
ldd ./bitcoind                  
        not a dynamic executable   
                     


Title: Re: bitcoind won't run on Ubuntu Server 10.04
Post by: trentzb on May 02, 2011, 06:09:58 PM
Try
Code:
ls -l bitcoind

and

Code:
file bitcoind


Title: Re: bitcoind won't run on Ubuntu Server 10.04
Post by: jondecker76 on May 02, 2011, 06:43:13 PM
here's the results:

Code:
$ ls -l bitcoind                  
-rwxr-xr-x 1 jondecker76 jondecker76 3703900 2011-04-27 12:00 bitcoind   

$ file bitcoind                   
bitcoind: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically
linked (uses shared libs), for GNU/Linux 2.6.15, stripped
   


Title: Re: bitcoind won't run on Ubuntu Server 10.04
Post by: trentzb on May 02, 2011, 06:52:46 PM
Is this x86 or 64 bit box?

Code:
uname -a
ls -l /lib/ld-linux*
ldd -v bitcoind



Title: Re: bitcoind won't run on Ubuntu Server 10.04
Post by: jondecker76 on May 02, 2011, 07:08:03 PM
Oh wow, I'm really sorry!

I thought I had set this server up as 32 bit, but apparently I did 64 bit! (its been a while!)

I knew it would be something so glaringly obvious that I'd overlook it!  All is well now, thanks!


Title: Re: bitcoind won't run on Ubuntu Server 10.04
Post by: JackSparrow on May 02, 2011, 07:33:11 PM
Oh wow, I'm really sorry!

I thought I had set this server up as 32 bit, but apparently I did 64 bit! (its been a while!)

I knew it would be something so glaringly obvious that I'd overlook it!  All is well now, thanks!

Maybe you could change your topic to: "[fixed] bitcoind won't run on Ubuntu Server 10.04"

thx :)


Title: Re: bitcoind won't run on Ubuntu Server 10.04
Post by: jlp on February 11, 2014, 05:40:54 AM
Try
Code:
ls -l bitcoind

and

Code:
file bitcoind


I'm having the same problem, but my ubuntu Linux is 32 bit.  I'm getting the following:

Code:
ldd bitcoind
ldd: ./bitcoind: No such file or directory

ls -l bitcoind
ls: cannot access bitcoind: No such file or directory

file bitcoind
bitcoind:  ERROR: cannot open `bitcoind' (no such file or directory)

I installed bitcoin with:

Code:
$ sudo apt-get install bitcoind

It outputted several lines, with the last one being:

Code:
ldconfig deferred processing now taking place

I don't know what the above means.

I have the following files in my home/user/.bitcoin folder:

addr.dat      blk0001.dat     database   __db.002   __db.004   __db.006     db.log       wallet.dat
bitcoin.conf  blkindex.dat    __db.001   __db.003   __db.005   DB.CONFIG  debug.log

Can anyone suggest on how I can run bitcoind?