Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: gigabytecoin on April 14, 2011, 10:20:26 PM



Title: Downloaded Bitcoin To Debian Squeeze: "sudo: bitcoind: command not found"
Post by: gigabytecoin on April 14, 2011, 10:20:26 PM
So I have downloaded the compressed bitcoin linux file from bitcoin.org

I can navigate to bin/64/ and open bitcoin to see the graphical interface. I get quite a few connections and my block count rises quickly.

When I enter my terminal however and navigate to the same folder. Entering $bitcoin or $bitcoind or $bitcoind -server returns: bash: bitcoin: command not found

What do you think the problem is?


Title: Re: Downloaded Bitcoin To Debian Squeeze: "sudo: bitcoind: command not found"
Post by: xlcus on April 14, 2011, 10:30:36 PM
Entering $bitcoin or $bitcoind or $bitcoind -server returns: bash: bitcoin: command not found
What do you think the problem is?

Perhaps your PATH variable isn't set up to run executables from the current folder.  Try typing...
Code:
./bitcoind


Title: Re: Downloaded Bitcoin To Debian Squeeze: "sudo: bitcoind: command not found"
Post by: kevinquinnyo on June 02, 2011, 01:57:15 AM
Hey so also, check the permissions.

That's one of those things that I often forget to do when I see an error like that.

So do an
Code:
ls -la
in the /bin/64/ directory

if you don't see an at all in the "drwxrwxrwx" permissions column, then it's not executable.  You can chmod it:

Just do 755:
Code:
chmod 755 bitcoin

(make sure you're in that directory, or declare the full path)

Don't mean to be patronizing to the original poster - this is directed at all who google this -  I just love this bitcoin idea, and I want to see more people use it, so if there are some linux newbs out there, I wouldn't want a simple permissions problem to stop them from trying it out.

Then as xlcus pointed out, you may still have to execute it as
Code:
./bitcoin

Cheers,

Kevin


Title: Re: Downloaded Bitcoin To Debian Squeeze: "sudo: bitcoind: command not found"
Post by: kevinquinnyo on June 02, 2011, 01:58:15 AM
EDIT:

I mean to say "If you don't see an "x" at all in the ...

-kevin


Title: Re: Downloaded Bitcoin To Debian Squeeze: "sudo: bitcoind: command not found"
Post by: SomeoneWeird on June 02, 2011, 10:48:45 AM
EDIT:

I mean to say "If you don't see an "x" at all in the ...

-kevin

You can edit posts...


Title: Re: Downloaded Bitcoin To Debian Squeeze: "sudo: bitcoind: command not found"
Post by: Tril on June 02, 2011, 12:34:58 PM
So I have downloaded the compressed bitcoin linux file from bitcoin.org

I can navigate to bin/64/ and open bitcoin to see the graphical interface. I get quite a few connections and my block count rises quickly.

When I enter my terminal however and navigate to the same folder. Entering $bitcoin or $bitcoind or $bitcoind -server returns: bash: bitcoin: command not found

What do you think the problem is?

1. ./bitcoind - this directory is not in your $PATH. Or copy bitcoin and bitcoind to /usr/local/bin/.
2. you don't need to be root to run bitcoin, so leave off the sudo.


Title: Re: Downloaded Bitcoin To Debian Squeeze: "sudo: bitcoind: command not found"
Post by: SomeoneWeird on June 02, 2011, 12:41:55 PM
So I have downloaded the compressed bitcoin linux file from bitcoin.org

I can navigate to bin/64/ and open bitcoin to see the graphical interface. I get quite a few connections and my block count rises quickly.

When I enter my terminal however and navigate to the same folder. Entering $bitcoin or $bitcoind or $bitcoind -server returns: bash: bitcoin: command not found

What do you think the problem is?

1. ./bitcoind - this directory is not in your $PATH. Or copy bitcoin and bitcoind to /usr/local/bin/.
2. you don't need to be root to run bitcoin, so leave off the sudo.


the whole "./" makes $PATH irrelevant.
"./" = current directory.