The installation instructions for Swift on Linux imply that the tarball can be
extracted anywhere, and the PATH set, and all should be well. But
unfortunately, while that's partly true, when I try to import packages, it
fails (Ubuntu 16.04 on Parallels on macOS 10.12.3):
$ swift
Welcome to Swift version 3.1 (swift-3.1-RELEASE). Type :help for assistance.
1> 1+1
$R0: Int = 2
2> import Glibc
<module-includes>:3:10: note: in file included from <module-includes>:3:
#include "///usr/include/utmp.h"
^
///usr/include/utmp.h:23:10: note: in file included from
///usr/include/utmp.h:23:
#include <sys/types.h>
^
error: /usr/include/x86_64-linux-gnu/sys/types.h:146:10: error: 'stddef.h' file
not found
#include <stddef.h>
^
error: could not build Objective-C module 'SwiftGlibc'
2>
I'm guessing it really wants Swift to live inside /usr?
--
Rick Mann
[email protected]
_______________________________________________
swift-users mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-users