spin icon indicating copy to clipboard operation
spin copied to clipboard

/usr/bin/env: ‘bash\r’: No such file or directory

Open quantumwebco opened this issue 1 year ago • 3 comments

Current Behavior

In WSL2 running the commands from the docs bash -c "$(curl -fsSL https://raw.githubusercontent.com/serversideup/spin/main/tools/install.sh)" seems to install fine, but when running ~/spin/bin/spin I just get the error /usr/bin/env: ‘bash\r’: No such file or directory like it's installed it with windows line endings

I've tried rm -rf the .spin directory and reinstalling etc.

Expected Behavior

spin version should show the spin version

Steps To Reproduce

Install spin in WSL 2 run spin version

Environment

Linux QUANTUM-DESKTOP 5.15.133.1-microsoft-standard-WSL2 #1 SMP Thu Oct 5 21:02:42 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Anything else?

No response

quantumwebco avatar Jun 06 '24 11:06 quantumwebco

Running the following helped sudo apt-get install -y dos2unix sudo find ~/.spin -type f -exec dos2unix {} \;

quantumwebco avatar Jun 06 '24 11:06 quantumwebco

Are you running the command in a DOS prompt? Or are you running wsl first, then running the install commands within a bash shell?

jaydrogers avatar Jun 06 '24 12:06 jaydrogers

Running in wsl.exe with bash, in linux, not in command prompt or powershell

quantumwebco avatar Jun 06 '24 14:06 quantumwebco

Can you update to the latest version and try running this again? The Spin 2.0 release is out and it came with a ton of improvements.

A full video is available here: https://x.com/jaydrogers/status/1823751739016913178

I will close this issue for now, but can re-open if the issue persists.

jaydrogers avatar Aug 14 '24 20:08 jaydrogers

v2.1.5 [stable] (User Installed) I get this when running spin init now image

quantumwebco avatar Sep 24 '24 11:09 quantumwebco