sourcegraph / scip-clang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

/usr/local/bin/scip-clang: line 1: Not: command not found

Katze719 opened this issue · comments

the compiled binary https://github.com/sourcegraph/scip-clang/releases/download/v0.2.6/scip-clang-x86_64-linux does not work
why ? and then how do is use it ?

scip-clang --compdb-path=build_linux-gcc10-x64-mold/compile_commands.json

is giving me this error

/usr/local/bin/scip-clang: line 1: Not: command not found
commented

See release description, you need to manually

chmod +x scip-clang

after downloading the binary.

It is a known issue with release assets on GitHub, permission bits are not preserved. A workaround may be to put the binary into archive before uploading as asset, but this would then require an extra step of archive extraction after downloading...

still the same error /usr/local/bin/scip-clang: line 1: Not: command not found after using chmod +x scip-clang

i used

TAG=v0.2.6 \
OS="$(uname -s | tr '[:upper:]' '[:lower:]')" \
RELEASE_URL="https://github.com/sourcegraph/scip-clang/releases/download/$TAG" \
bash -c 'curl -L "$RELEASE_URL/scip-clang-x86_64-$OS" -o scip-clang' && \
chmod +x scip-clang

to download it into my bin folder

scip-clang --help
/usr/local/bin/scip-clang: line 1: Not: command not found

using

wget -O scip-clang https://github.com/sourcegraph/scip-clang/releases/download/v0.2.6/scip-clang-x86_64-linux
chmod +x scip-clang

fixed it