Open
Description
Is it reproducible with SwiftPM command-line tools: swift build
, swift test
, swift package
etc?
- Confirmed reproduction steps with SwiftPM CLI. The description text must include reproduction steps with either of command-line SwiftPM commands,
swift build
,swift test
,swift package
etc.
Description
On Linux when running a binary using 'swift run' if the environment does not have a the swift runtime libraries in the LD_LIBRARY_PATH, the executable will fail to run.
.build/x86_64-unknown-linux-gnu/Products/Debug-linux/test_package: error while loading shared libraries: libswiftCore.so: cannot open shared object file: No such file or directory
Expected behavior
built binary executes and prints greeting
Actual behavior
error while loading shared libraries: libswiftCore.so: cannot open shared object file: No such file or directory
Steps to reproduce
Remove any swift runtime libraries from LD_LIBRARY_PATH and /usr/lib/swift/
swift-package init --type executable
swift-run --build-system swiftbuild