Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift not found #20

Closed
IshaShah2806 opened this issue Jul 1, 2021 · 7 comments
Closed

Swift not found #20

IshaShah2806 opened this issue Jul 1, 2021 · 7 comments

Comments

@IshaShah2806
Copy link

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

@donn
Copy link
Member

donn commented Jul 1, 2021

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?

@IshaShah2806
Copy link
Author

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

@donn
Copy link
Member

donn commented Jul 1, 2021

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.

@IshaShah2806
Copy link
Author

IshaShah2806 commented Jul 1, 2021

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

@donn
Copy link
Member

donn commented Jul 1, 2021

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

@RameenAnwar
Copy link

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

@donn
Copy link
Member

donn commented Jan 13, 2023

For future searchers: please use the AppImage.

@donn donn closed this as not planned Won't fix, can't repro, duplicate, stale Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants