Comments (4)
@RobinCutshaw what's the output of swift build -c release
? And you don't need t run with sudo
from toolbox.
That one worked:
robin@ilub20:~/Developer/git/toolbox$ swift build -c release
Fetching https://github.com/vapor/console-kit.git
Fetching https://github.com/tanner0101/mustache.git
Fetching https://github.com/apple/swift-nio.git
[15760/60160] Fetching objectsFetched https://github.com/vapor/console-kit.git (1.38s)
Fetching https://github.com/jpsim/Yams.git
[30132/67872] Fetching objectsFetched https://github.com/jpsim/Yams.git (1.48s)
[67872/67872] Fetching objects
Fetched https://github.com/tanner0101/mustache.git (5.84s)
Fetched https://github.com/apple/swift-nio.git (5.87s)
Computing version for https://github.com/tanner0101/mustache.git
Computed https://github.com/tanner0101/mustache.git at 0.1.1 (0.15s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 4.0.6 (0.15s)
Computing version for https://github.com/vapor/console-kit.git
Computed https://github.com/vapor/console-kit.git at 4.4.1 (0.16s)
Fetching https://github.com/apple/swift-log.git
[2239/2239] Fetching objects
Fetched https://github.com/apple/swift-log.git (0.35s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.4.2 (0.15s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.40.0 (0.23s)
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 4.0.6
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.4.2
Creating working copy for https://github.com/vapor/console-kit.git
Working copy of https://github.com/vapor/console-kit.git resolved at 4.4.1
Creating working copy for https://github.com/tanner0101/mustache.git
Working copy of https://github.com/tanner0101/mustache.git resolved at 0.1.1
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.40.0
'toolbox': warning: 'Executable' was identified as an executable target given the presence of a 'main.swift' file. Starting with tools version 5.4.0 executable targets should be declared as 'executableTarget()'
Building for production...
[39/39] Linking vapor
Build complete! (47.39s)
from toolbox.
Does it work if you run make install
instead of sudo make install
?
from toolbox.
Yes:
robin@ilub20:~/Developer/git/toolbox$ make install
swiftc ./scripts/build.swift
./build
$ swift build --disable-sandbox --configuration release -Xswiftc -cross-module-optimization
'toolbox': warning: 'Executable' was identified as an executable target given the presence of a 'main.swift' file. Starting with tools version 5.4.0 executable targets should be declared as 'executableTarget()'
Building for production...
[25/25] Linking vapor
Build complete! (44.56s)
rm ./build
sudo mv .build/release/vapor /usr/local/bin/vapor
[sudo] password for robin:
sudo chmod 755 /usr/local/bin/vapor
from toolbox.
Related Issues (20)
- Entity Generation HOT 3
- macOS packaging should offer alternatives to HomeBrew HOT 4
- Compiling issue on Centos7 HOT 4
- vapor --version couldn't work correctly HOT 7
- `which` fails on macOS
- Running Docker Image Fails on `git clone` HOT 5
- `vapor run migrate` on macOS 13.0.1 fails HOT 2
- Clone
- `new` fails when `--output` is an existing directory HOT 2
- Support installation as Nix package HOT 3
- Digital ocean issue: Doesn't start app HOT 1
- Logs. HOT 2
- 'vapor new ProjectName --template github/url' does not set 'name:' in Package.swift HOT 3
- [18.7.4] Code does not compile using make. HOT 2
- Issue building the toolbox on Arch HOT 1
- Compilation fails on Ubuntu 22.04 HOT 11
- Allow cloning local templates HOT 2
- Failed to install with make install HOT 7
- Building from source hangs indefinitely HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from toolbox.