0

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.

Błażej
  • 3,617
  • 7
  • 35
  • 62

1 Answers1

1

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.

Community
  • 1
  • 1
ambientlight
  • 7,212
  • 3
  • 49
  • 61
  • Well I'll be writing my backend in Swift 3.0, so I think I have to use second option. I've alredy installed Swift 3.0 on Ubuntu. I'm guessing there is no tuts for how to install new Perfect? – Błażej Apr 25 '16 at 08:02
  • Not sure there is something, I guess they guys are busy rolling out the full SPM support now, likely they will write new guides a bit later. But I have Swift 3.0 Perfect setup in both xCode and Ubuntu. I have integrated all dependencies through PerfectServer SPM's Package.swift, so everything builds on Ubuntu with a single make. Give me some time to edit this answer, something like 12-20 hours, alright? Also you can ask questions directly to PerfectLib team at https://gitter.im/PerfectlySoft/Perfect – ambientlight Apr 25 '16 at 08:12
  • That will be much appreciated :) – Błażej Apr 25 '16 at 09:14
  • @Dudi: Updated the answer, take a look. – ambientlight Apr 28 '16 at 06:41