-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Description
| Previous ID | SR-2743 |
| Radar | None |
| Original Reporter | @Bouke |
| Type | Bug |
Environment
Swift 3.0 GM, Swift 4.0.2
Additional Detail from JIRA
| Votes | 9 |
| Component/s | |
| Labels | Bug, Website |
| Assignee | None |
| Priority | Medium |
md5: c299a808f90d17978665ba28d5c425ac
relates to:
- SR-2744 Errors when running REPL on Ubuntu 16.04
Issue Description:
If the package libpython2.7-dev is not installed, the following error is thrown when running swift:
...swift/usr/bin/lldb: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directoryThis was on both a fresh Ubuntu server 14.04 and 16.04, with OpenSSH in addition to the default options. Solution; the installation instructions on the site should also instruct to install libpython2.7-dev.
Update: Additionally, if libcurl3 is not installed, which it isn't by default on Ubuntu Server, then a different and more cryptic error may occur: the REPL may emit "error: Couldn't lookup symbols" errors when trying to import Foundation and other libraries. Unlike the libpython error, this one gives no clue as to what is missing. (See SR-2744 for full details.)