Bin-path.sh no such directory

my node build completed with no issues. following the doc, i ran the next set of commands which failed. any ideas?

cp -p “$(./scripts/bin-path.sh cardano-node)” ~/.local/bin
-bash: ./scripts/bin-path.sh: No such file or directory
cp: cannot stat ‘’: No such file or directory

It tells you the path does not exist. Find your compiled executable - the cardano-node and copy it to the local bin folder manually.

thank you, all of the files have been copied into local / bin and getting

cardano-cli: command not found

the script bin-path.sh only available with 1.27.0 version
but first verify that you have the executable by calling it with full path like:
/home/user/.local/bin/cardano-node version

if you got back the version, that it is ok - and what you need is this step:

Verify that ~/.local/bin is in your PATH:

echo $PATH
If ~/.local/bin is not in the PATH, you need to add the following line to your .bashrc file

export PATH="~/.local/bin:$PATH"
and source the file:

source .bashrc

https://docs.cardano.org/projects/cardano-node/en/latest/getting-started/install.html#downloading-unpacking-installing-and-updating-cabal

1 Like

after running that it reports it is a directory

echo $PATH
/home/node/.local/bin:/home/node/.local/bin:/home/node/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/node/.cabal/bin:/home/node/.local/bin

vim .bashrc
export
PATH=~/.local/bin:/home/node/.local/bin:~/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:~/.cabal/bin:~/.local/bin
export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"
“.bashrc” 122L, 4081C

good - so if that is a directory that something went wrong during the copy of binaries… so remove the directories like rm -rf ~/.local/bin/cardano-node
and try again this step:

cp -p "$(./scripts/bin-path.sh cardano-node)" ~/.local/bin/
cp -p "$(./scripts/bin-path.sh cardano-cli)" ~/.local/bin/