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/ cardano-node)” ~/.local/bin
-bash: ./scripts/ 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 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

1 Like

after running that it reports it is a directory

echo $PATH

vim .bashrc
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/ cardano-node)" ~/.local/bin/
cp -p "$(./scripts/ cardano-cli)" ~/.local/bin/