Last active
April 12, 2016 12:10
-
-
Save ccabanero/ebe24fc3304384a88712 to your computer and use it in GitHub Desktop.
Installing Perfect on Ubuntu 14.04 (2-25-16 9:37 pm)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Trying to Install Perfect framework on Ubuntu 14.04 EC2 instance | |
| Target Ubuntu: | |
| AWS AMI Name is Ubuntu Server 14.04 LTS (HVM), SSD Volume Type - ami-9abea4fb | |
| // install dependencies | |
| $ sudo apt-get update | |
| $ sudo apt-get --assume-yes install git clang libicu-dev libssl-dev libevent-dev libsqlite3-dev libsqlite3-dev libcurl4-openssl-dev uuid-dev make | |
| // install swift snapshot | |
| $ wget https://swift.org/builds/development/ubuntu1404/swift-DEVELOPMENT-SNAPSHOT-2016-02-25-a/swift-DEVELOPMENT-SNAPSHOT-2016-02-25-a-ubuntu14.04.tar.gz | |
| $ tar -xvzf swift-DEVELOPMENT-SNAPSHOT-2016-02-25-a-ubuntu14.04.tar.gz | |
| // add swift to PATH | |
| $ cd swift-DEVELOPMENT-SNAPSHOT-2016-02-25-a-ubuntu14.04/usr/bin | |
| $ pwd | |
| $ export PATH=/home/ubuntu/swift-DEVELOPMENT-SNAPSHOT-2016-02-25-a-ubuntu14.04/usr/bin:$PATH | |
| $ cd ~ | |
| // confirm swift is installed | |
| $ swift --version | |
| Returns: | |
| Swift version 3.0-dev (LLVM b361b0fc05, Clang 11493b0f62, Swift fc261045a5) | |
| Target: x86_64-unknown-linux-gnu | |
| // Fetch Perfect Framework | |
| $ git clone https://github.com/PerfectlySoft/Perfect.git | |
| // Make PerfectLib | |
| $ cd Perfect/PerfectLib | |
| $ make | |
| $ sudo make install | |
| // Make PerfectServer | |
| $ cd ../PerfectServer | |
| $ make --> ERROR THROWN HERE (SEE BELOW) | |
| ERROR ... | |
| swift -frontend -g -Onone -Xcc -DDEBUG=1 -c -module-cache-path /tmp/modulecache -emit-module -I /usr/local/lib -I ../PerfectLib/linked/LibEvent -I ../PerfectLib/linked/OpenSSL -I ../PerfectLib/linked/ICU -I ../PerfectLib/linked/SQLite3 -I ../PerfectLib/linked/LinuxBridge -I ../PerfectLib/linked/cURL_Linux main.swift main_fcgi.swift -o perfectserverfcgi.o -module-name perfectserverfcgi -emit-module-path perfectserverfcgi.swiftmodule | |
| main_fcgi.swift:26:8: error: no such module 'PerfectLib' | |
| import PerfectLib | |
| ^ | |
| make: *** [perfectserverfcgi.o] Error 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Did anyone resolve this? I setup Swift REPL from Swift.org on Ubuntu 14.04 LTS on AWS EC2.
I've now been considering installing Perfect, MySQL, etc. now that it's 1.0
They've changed to Apache 2.0 now and I'd be nice if there was an install process on AWS EC2 Ubuntu 14.04 (Trusty) LTS, Free-tier to test.