Giter Site home page Giter Site logo

Comments (18)

vzsg avatar vzsg commented on April 27, 2024 1

Ah, I see. You'll have to install the toolbox manually, meaning:

  • git clone https://github.com/vapor/toolbox
  • cd toolbox
  • swift build -c release
  • sudo cp .build/release/Executable /usr/bin/vapor

Then the vapor commands should work just fine. In the rare chance that they don't, you can actually do everything with swift build or swift package anyway.

from vapor.

ketzusaka avatar ketzusaka commented on April 27, 2024

I personally haven't done this, but I can say with almost absolute certainty that this is possible! All you need is the latest Ubuntu Linux Swift snapshot on the machine and ensure the linker setup to use the linux libraries, and you're good to go.

from vapor.

tanner0101 avatar tanner0101 commented on April 27, 2024

Yeah Vapor should definitely work on any device that runs Ubuntu 14.04 or 15.10.

from vapor.

biscuitehh avatar biscuitehh commented on April 27, 2024

http://blog.andrewmadsen.com/post/136137396480/swift-on-raspberry-pi - I've heard of issues with Swift Package Manager and ARM devices but I imagine that'll change soon.

from vapor.

ketzusaka avatar ketzusaka commented on April 27, 2024

Ah I didn't realize Pi was on arm, but Linux Swift should generally work there (or be made to soon) since it runs fine on iOS devices, which are arm

from vapor.

bynelus avatar bynelus commented on April 27, 2024

I successfully got Swift installed on my pi 3. Didn't had the time to test it though, so I'll let you know.

First thing I'm going to try is to get Vapor working ๐Ÿ‘ would love to get this device into my product setup..

from vapor.

tanner0101 avatar tanner0101 commented on April 27, 2024

Sweet. Keep us updated.

from vapor.

tanner0101 avatar tanner0101 commented on April 27, 2024

Any updates on this @NielsKoole?

from vapor.

bynelus avatar bynelus commented on April 27, 2024

Not yet, tried to get Vapor running with Make but that unfortunately gave some errors. So now I'm waiting for the newest swift executable built for armv7 to be available. Heard from @iachievedit that he will update this somewhere in April. So to be continued.

from vapor.

tanner0101 avatar tanner0101 commented on April 27, 2024

Closing this for inactivity. Let me know if you have any luck.

from vapor.

8bit-echo avatar 8bit-echo commented on April 27, 2024

Swift 3.1.1 is available for raspberry pi now. would love to see this issue picked back up. Step by step here. Uriamo - an Update on Swift 3.1.1 for Raspberry Pi Zero, 1, 2, 3

from vapor.

vzsg avatar vzsg commented on April 27, 2024

What needs to be picked up?
After installing Swift with that guide, Vapor works just fine on RPi 3.

(There might be incompatibilities on RPi 2, for which unfortunately no one with a real device cared enough after working around locally. AFAIK the team has no such device at hand.)

from vapor.

8bit-echo avatar 8bit-echo commented on April 27, 2024

Sorry, I should have clarified. I'm unable to get the vapor CLI to work since it isn't available for arm architectures. Unless I'm missing something?

from vapor.

luisdelarosa avatar luisdelarosa commented on April 27, 2024

Verified that Vapor runs on Raspberry Pi 3 with Swift 3.1.1, using the instructions that vzsg provided above. Note that I had to install libssl-dev as well, or else it would complain about CTLS when doing vapor build on a project.

from vapor.

Andrewangeta avatar Andrewangeta commented on April 27, 2024

@luisdelarosa What linux distort are you using?

from vapor.

8bit-echo avatar 8bit-echo commented on April 27, 2024

@Andrewangeta I was able to successfully run vapor on both Raspbian and the armv7 version of ubuntu MATE when following the instructions above.

from vapor.

luisdelarosa avatar luisdelarosa commented on April 27, 2024

@Andrewangeta I'm running Ubuntu Mate 16.04 for Raspberry Pi available at https://ubuntu-mate.org/raspberry-pi/
Note that I think it still does complain about CTLS during subsequent builds, so we may want to open up an issue around that.

from vapor.

vzsg avatar vzsg commented on April 27, 2024

If it's just a note about installing ctls with apt-get, you can safely ignore that message.

from vapor.

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.