Comments (18)
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.
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.
Yeah Vapor should definitely work on any device that runs Ubuntu 14.04 or 15.10.
from vapor.
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.
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.
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.
Sweet. Keep us updated.
from vapor.
Any updates on this @NielsKoole?
from vapor.
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.
Closing this for inactivity. Let me know if you have any luck.
from vapor.
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.
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.
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.
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.
@luisdelarosa What linux distort are you using?
from vapor.
@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.
@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.
If it's just a note about installing ctls
with apt-get, you can safely ignore that message.
from vapor.
Related Issues (20)
- Vapor migrations do not finish running on fly.io HOT 8
- Documentation for cache HOT 5
- Unable to test vapor using .xcodeproj project HOT 8
- Response compression handler not added for HTTP2 requests
- Updating HTTP server configuration on the fly (ie. TLS settings) HOT 3
- Double encoded post requests after recent update (4.89.3 โ 4.91.1) HOT 1
- UserAuthnetication middleware is bypassed when auth object is not used HOT 2
- Query decoding broken in 4.90 HOT 3
- vapor and toolbox compile error on arch linux HOT 1
- double slash in URL no longer matches route handlers HOT 3
- URI semantics are broken HOT 1
- commรนit
- Double slash in URLs still breaks route matching with variable parts in vapor 4.92.0 HOT 2
- Trying to build on Ubuntu 20 with swift run and getting Building for debugging... error: emit-module command failed due to signal 9 HOT 2
- Unable to shutdown server HOT 1
- Title
- Vapor URLQueryContainer no longer supports valueless query parameters HOT 4
- Swift Vapor-Save records in Mysql JSON data type during mapping with swift get error- Could not convert MySQL data to String: <MYSQL_TYPE_JSON HOT 6
- Large, streamed request body may result in noSignalReceived preconditionFailure crash HOT 6
- Websocket shouldUpgrade() fail causes empty reply from server HOT 4
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 vapor.