3 ms·
Testing the binaries on ubuntu decompressed to to $HOME/swift and trying to execute swift: Welcome to Swift version 2.2-dev (LLVM 46be9ff861, Clang 4deb154edc,
by mingodad 11y ago
Testing the binaries on ubuntu decompressed to to $HOME/swift and trying to execute swift:
Welcome to Swift version 2.2-dev (LLVM 46be9ff861, Clang 4deb154edc, Swift 778f82939c). Type :help for assistance.
1> help
opening import file for module 'SwiftShims': No such file or directory
1>
I could not find any mention to environment variables that could be used to override default locations, like SWIFT_LIBRARY_PATH or something like it.
- SixSigma 11y agoRun Systrace on it and you'll see what it is looking for.
- mingodad 11y agoI used ltrace and saw a call to getenv("SDKROOT") but pointing it to any of: export SDKROOT=$HOME/swift/usr or export SDKROOT=$HOME/swift/usr/lib or export SDKROOT=$HOME/swift/usr/lib/swift All the above do not work, maybe when github is up we can see how to do it.
- i_don_t_know 11y agoType ":help". That is, type <colon>help. The : is used to differentiate between commands to the repl and swift code.
- mingodad 11y agoThanks I didn't noticed the colon, my fault. But even after copying all to the default location /usr it still doesn't work: swift swifthello.swift <unknown>:0: error: opening import file for module 'SwiftShims': No such file or directory Also swift -I/usr/lib/swift swifthello.swift <unknown>:0: error: opening import file for module 'Swift': No such file or directory
- solidsnack9000 11y agoIt seems to want to find a `SwiftShims.swiftmodule`, fails, prints the error message and then loads the module from an alternate path but it is already too late. https://gist.github.com/solidsnack/d902a761877b0f797835 https://gist.github.com/solidsnack/d902a761877b0f797835