Fault icon indicating copy to clipboard operation
Fault copied to clipboard

Swift not found

Open IshaShah2806 opened this issue 4 years ago • 6 comments

I was installing Fault and I had already installed Swift in my Ubuntu 20.04 yet while installing Fault I faced an error SWIFT not found. Capture

IshaShah2806 avatar Jul 01 '21 09:07 IshaShah2806

Are you using WSL or WSL2?

At any rate it's curious that sh drops PATH. Can you replace let compilationResult = "swift build".shOutput() with let compilationResult = "echo $PATH && false".shOutput() and let me know the output?

donn avatar Jul 01 '21 11:07 donn

Thank you for your time .I am using WSL 2 and I made the necessary changes and I got this output. Capture

IshaShah2806 avatar Jul 01 '21 15:07 IshaShah2806

Ah. Gotcha, always need to confirm no one is using WSL1. It's too unpredictable. :)

The issue is your PATH has a literal tilde, not your home folder. Can you replace ~/swift-5.3.3-RELEASE-ubuntu20.04/usr/bin with an absolute path where you're setting the PATH variable? In this case, it would be /home/isha/swift-5.3.3-RELEASE-ubuntu20.04/usr/bin, I think.

donn avatar Jul 01 '21 15:07 donn

I replaced as directed .But still the same error Capture Capture

IshaShah2806 avatar Jul 01 '21 15:07 IshaShah2806

That's so weird. I'll have to come back to this later- we'll probably need a workaround.

donn avatar Jul 01 '21 15:07 donn

try export PATH=home/isha/Fault/swift-5.3.3-RELEASE-ubuntu20.04/usr/bin then swift ./install.swift

RameenAnwar avatar Apr 12 '22 09:04 RameenAnwar

For future searchers: please use the AppImage.

donn avatar Jan 13 '23 20:01 donn