Last active
February 25, 2016 21:24
-
-
Save ccabanero/f221d718852bfd8d0898 to your computer and use it in GitHub Desktop.
Installing Perfect on Ubuntu 14.04 (2-5-16 10:23 am)
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 | |
| $ wget https://swift.org/builds/development/ubuntu1404/swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a/swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a-ubuntu14.04.tar.gz | |
| $ tar -xvzf swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a-ubuntu14.04.tar.gz | |
| // add swift to PATH | |
| $ cd swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a-ubuntu14.04/usr/bin | |
| $ pwd | |
| $ export PATH=/home/ubuntu/swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a-ubuntu14.04/usr/bin:$PATH | |
| $ cd ~ | |
| // confirm swift is installed | |
| $ swift --version | |
| Returns: | |
| Swift version 3.0-dev (LLVM a7663bb722, Clang 4ca3c7fa28, Swift 1c2f40e246) | |
| Target: x86_64-unknown-linux-gnu | |
| // Fetch Perfect Framework | |
| $ git clone https://github.com/PerfectlySoft/Perfect.git | |
| // Make PerfectLib | |
| $ cd Perfect/PerfectLib | |
| $ make -> ERROR IS THROWN AT THIS STEP ... SEE BELOW | |
| $ sudo make install | |
| ERROR WHEN RUNNING MAKE $ make .... | |
| -emit-module-path ./tmp/cURL.swiftmodule \ | |
| -emit-module-doc-path ./tmp/cURL.swiftdoc \ | |
| -emit-dependencies-path ./tmp/cURL.d \ | |
| -emit-reference-dependencies-path ./tmp/cURL.swiftdeps \ | |
| -g -Onone -Xcc -DDEBUG=1 -DUbuntu_14_04=1 -emit-module -I /usr/include/ -I linked/LibEvent -I linked/OpenSSL_Linux -I linked/ICU -I linked/SQLite3 -I linked/cURL_Linux -module-cache-path /tmp/modulecache -module-name PerfectLib -I linked/LinuxBridge -g -Onone -Xcc -DDEBUG=1 -DUbuntu_14_04=1 -emit-module -I /usr/include/ -I linked/LibEvent -I linked/OpenSSL_Linux -I linked/ICU -I linked/SQLite3 -I linked/cURL_Linux -module-cache-path /tmp/modulecache -module-name PerfectLib -I linked/LinuxBridge \ | |
| -o cURL.o | |
| cURL.swift:89:13: error: use of unresolved identifier 'CURLOPT_HEADERDATA' | |
| setOption(CURLOPT_HEADERDATA, v: opaqueMe) | |
| ^~~~~~~~~~~~~~~~~~ | |
| cURL.swift:90:13: error: use of unresolved identifier 'CURLOPT_WRITEDATA' | |
| setOption(CURLOPT_WRITEDATA, v: opaqueMe) | |
| ^~~~~~~~~~~~~~~~~ | |
| cURL.swift:91:13: error: use of unresolved identifier 'CURLOPT_READDATA' | |
| setOption(CURLOPT_READDATA, v: opaqueMe) | |
| ^~~~~~~~~~~~~~~~ | |
| make: *** [cURL.o] Error 1 | |
| // Make PerfectServer | |
| $ cd ../PerfectServer | |
| $ make | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment