Reputation: 3635
I'm tring to setup Perfect server on my ubuntu and I'm stuck at part when I have to clone & build PerfectLib
According to this tutorial I should do
git clone https://github.com/PerfectlySoft/Perfect.git
cd Perfect/PerfectLib
make
sudo make install
But there isn't such directory Perfect/PerfectLib
. I can find only Perfect/Sources/PerfectLib
and if I run make
then error make: *** No targets specified and no makefile found. Stop.
I'm not sure how I should approach it.
Upvotes: 0
Views: 479
Reputation: 7332
So the thing is that you have cloned the version from master branch. (which is only compatible with Swift 3.0 March 24 Snapshot at this moment [Apr 25 2016], you can't find the PerfectLib(now it is just Perfect) folder because repository structure has been modified in order to comply with Swift Package Manager)
You can clone from release-1.0 branch and follow the tutorial.
Alternatively if you want to leverage Swift Package Manager and easily deploy on Ubuntu, you can go with Swift 3.0. But you need to install Swift 3.0 toolchain to be able to use it in xCode. Swift.org
(Also you would need to clone both PerfectServer, Perfect repositories and put it together into single xCode workspace for it to pick up the dependencies)
Please also refer to my Building Perfect Server on Ubuntu (April 28, 2016) answer for information on how you can build PerfectLib with Swift Package Manager on Ubuntu.
Upvotes: 1