Giter Club home page Giter Club logo

Comments (4)

0xTim avatar 0xTim commented on May 24, 2024

@RobinCutshaw what's the output of swift build -c release? And you don't need t run with sudo

from toolbox.

RobinCutshaw avatar RobinCutshaw commented on May 24, 2024

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.

0xTim avatar 0xTim commented on May 24, 2024

Does it work if you run make install instead of sudo make install?

from toolbox.

RobinCutshaw avatar RobinCutshaw commented on May 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.