ordinals / ord

👁‍🗨 Rare and exotic sats
https://ordinals.com
Creative Commons Zero v1.0 Universal
3.85k stars 1.37k forks source link

Command 'ord' not found #3638

Closed 0AAK0 closed 6 months ago

0AAK0 commented 6 months ago

Hi guys, need help pls.

I'm running a node on ubuntu 22.04, node is running fine but i can't get Ord to work! I did follow the guide and installed: libssl-dev & Rust ... Then did the build:

git clone https://github.com/ordinals/ord.git
cd ord
cargo build --release

To this point all good no error, but when I run: ord --version I get error: command 'ord' not found I tried to install it using: curl --proto '=https' --tlsv1.2 -fsLS https://ordinals.com/install.sh | bash -s install.sh: error: ord already exists in /home/btc/bin

Can anyone help? Thanks.

endangurura commented 6 months ago

@0AAK0 did you add /home/btc/bin to your PATH? Another alternataive is to copy target/release/ord to /usr/local/bin

0AAK0 commented 6 months ago

@0AAK0 did you add /home/btc/bin to your PATH? Another alternataive is to copy target/release/ord to /usr/local/bin

Hi endangurura, Thanks for your reply, I don't think I did that ... appreciate if you can guide me on how to do it. (not a dev, forgive me).

endangurura commented 6 months ago

@0AAK0 run these commands

git clone https://github.com/ordinals/ord.git
cd ord
git checkout 0.18.3
cargo build --release
sudo cp target/release/ord /usr/local/bin
ord --version
0AAK0 commented 6 months ago

@0AAK0 run these commands

git clone https://github.com/ordinals/ord.git
cd ord
git checkout 0.18.3
cargo build --release
sudo cp target/release/ord /usr/local/bin
ord --version

Man thank you sooooooooo much. it finally worked, you saved me.

Would like to ask you if you have a ready file for Rune etching? would be great if you can share with me. (it's ok if not)

Again, thank you.

0AAK0 commented 6 months ago

@0AAK0 run these commands

git clone https://github.com/ordinals/ord.git
cd ord
git checkout 0.18.3
cargo build --release
sudo cp target/release/ord /usr/local/bin
ord --version

Trying to run: ord server but i get: error: cookie file /home/btc/.bitcoin/.cookie does not exist

is it because we changed the directory?

endangurura commented 6 months ago

@0AAK0 Do you have a full bitcoin node running?

0AAK0 commented 6 months ago
/usr/local/bin

Yes I did install it using the ~snap command from the official site & synced all blocks I did run it using: bitcoin-core.daemon image

If i run: bitcoin-core.cli -getinfo image

I kept it running in the backfround: image

Also i did create the bitcoin.conf file and added txindex=1 in it.

shall I run the GUI version?

0AAK0 commented 6 months ago

@0AAK0 Do you have a full bitcoin node running?

I see the .cookie file under this path image

endangurura commented 6 months ago

add coookie file path to ord command ord --cookie-file /path/to/cookie/file server

0AAK0 commented 6 months ago

add coookie file path to ord command ord --cookie-file /path/to/cookie/file server

got it to work but,

image

I think because i'm using a normal user not a root, there's anyway i can change the port of ord server to another port?

it's okay fixed.

0AAK0 commented 6 months ago

any idea how i can change ord .cookie path to the right path? image

correct path is: /home/btc/snap/bitcoin-core/common/.bitcoin/.cookie

cryptoni9n commented 6 months ago

Hi 0AAK0 - I'd like to direct these types of questions to our #tech-support channel on the Ordicord, here: https://discord.gg/CSF5tDdR

If you run ord --help, you'll see all the various options for flags that you can provide to the ord executable. one of the most common flags is the --cookie-file flag, which is the one you're asking about here.

If you need further help, please consider the Ordicord. Thanks and good luck!

SoFTCureOrigin commented 6 months ago

@0AAK0 run these commands

git clone https://github.com/ordinals/ord.git
cd ord
git checkout 0.18.3
cargo build --release
sudo cp target/release/ord /usr/local/bin
ord --version

Hi, i think symbolic link 'ln -s' .... is better than copying....

0AAK0 commented 5 months ago

@0AAK0 run these commands

git clone https://github.com/ordinals/ord.git
cd ord
git checkout 0.18.3
cargo build --release
sudo cp target/release/ord /usr/local/bin
ord --version

Hi, i think symbolic link 'ln -s' .... is better than copying....

Hey man, thanks for the reply ... and what would be the command?

SoFTCureOrigin commented 5 months ago

for ex :sudo ln -s /home/admin/bin/ord /usr/local/bin/ord