Closed yanmaani closed 2 years ago
When I execute ZeroNet.sh, I get this error:
ZeroNet.sh
$ ./ZeroNet.sh --tor zsh: ./ZeroNet.sh: bad interpreter: /bin/bash^M: no such file or directory
The root cause of this appears to be the CRLF line terminators:
$ file ZeroNet.sh ZeroNet.sh: Bourne-Again shell script, ASCII text executable, with CRLF line terminators
If I switch to Unix line terminators, it works, in principle:
$ dos2unix ZeroNet.sh dos2unix: converting file ZeroNet.sh to Unix format... $ file ZeroNet.sh ZeroNet.sh: Bourne-Again shell script, ASCII text executable $ ./ZeroNet.sh --tor ./ZeroNet.sh: line 12: runtime/bin/python3: Permission denied
(This is a different error, and should go in another issue)
wget https://github.com/ZeroNetX/ZeroNet/releases/download/v0.7.6/ZeroNet-linux.zip
unzip ZeroNet-linux.zip
cd ./ZeroNet-linux
chmod +x ./ZeroNet.sh
./ZeroNet.sh
Save ZeroNet.sh without CRLF line endings
@canewsin In Linux run $ dos2unix ./ZeroNet.sh before releasing package. You created it in Windows.
$ dos2unix ./ZeroNet.sh
@nerd36 @yanmaani fixed
Step 1: Please describe your environment
Step 2: Describe the problem:
When I execute
ZeroNet.sh
, I get this error:The root cause of this appears to be the CRLF line terminators:
If I switch to Unix line terminators, it works, in principle:
(This is a different error, and should go in another issue)
Steps to reproduce:
wget https://github.com/ZeroNetX/ZeroNet/releases/download/v0.7.6/ZeroNet-linux.zip
unzip ZeroNet-linux.zip
cd ./ZeroNet-linux
chmod +x ./ZeroNet.sh
./ZeroNet.sh
Observed Results:
Expected Results:
Suggested remedy
Save ZeroNet.sh without CRLF line endings