Comments (9)
After playing around with all the above approaches, it looks like compiling from source might be the easiest way to go, even though it takes a bit of time to compile PHP on the Pi :(
from raspberry-pi-dramble.
On second thought, after having waited about 45 minutes to try building PHP from source, it might be easiest to use jessie
and pin to that repo for php*
packages. Trying that now... Can't easily get PHP 5.6 or 7.x that way, but at least we can get to 5.5 without waiting an hour or two :P
from raspberry-pi-dramble.
Nope, still a no-go, unless I want to upgrade everything to Jessie, which I don't really at this time. I'd rather stick to a more stable set of packages from Raspbian mainline... hopefully they upgrade to Jessie/8 sometime soon, but I won't hold my breath.
Back to building from source—I'm timing the process this time.
from raspberry-pi-dramble.
What about cross-compiling from an x86 machine?
https://www.raspberrypi.org/documentation/linux/kernel/building.md
http://openframeworks.cc/setup/raspberrypi/Raspberry-Pi-Cross-compiling-guide.html
from raspberry-pi-dramble.
It took about 45 minutes just to do the clone, configure, compile and install... but:
$ php -v
PHP 5.5.26 (cli) (built: Jul 6 2015 02:38:11)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
Next up, I'm going to wipe it all, and overnight let it compile PHP HEAD and see what happens :)
Configuration changes incoming... and there's no way you'll want to attempt compiling on a B+.
from raspberry-pi-dramble.
@felicianotech - That's a definite long-term possibility. The compile time is pretty annoyingly long. However, I wouldn't want people to have to set up a separate computer/VM to do the cross-compile just to save a few minutes—my goal is to have a configuration that runs D8 optimally on a Raspberry Pi with as little fuss as possible.
At this point, I'm getting everything to install flawlessly with PHP 5.4.x, but I'm testing 5.5, 5.6 and 7.0 to see if they're all stable as compiled on the Pi. And unfortunately, there are no package repositories that I can find with ARM packages for PHP > 5.4 on Debian Wheezy, and the only other option is to do a full dist upgrade to Jessie, which I'd rather not do at this time.
I'm guessing in 6 months to a year, Raspbian's default image/repos will have 5.5 in them, so it's just a waiting game. And since this project is more for the fun of it (there's no way I'd deliver production Drupal traffic to a Pi 2 ;-), I'm okay with compilation taking quite a while, as long as it's flexible (which encourages experimentation) and easy enough to use the playbook.
from raspberry-pi-dramble.
I've punted around the idea of using my Dramble stack to build/manage my own RPi-specific apt repo for later versions of PHP and maybe a couple other tools... but that's just a bit beyond what I'd be willing to maintain (on top of the bajillion other OSS stuff I'm involved with :P ).
from raspberry-pi-dramble.
I've added some actual code for the drupal-pi
project in geerlingguy/drupal-pi#4 — I'm still running into little issues here and there (especially with 5.6.10 and 7.0.0alpha2), so I'm trying to get things more stable before promoting that to master, and then merging it into this upstream project (especially since compilation takes 30-45 minutes minimum—no way I want someone to have to sit and wait on 4 Pis to see that an unstable release/process requires reimaging everything!).
from raspberry-pi-dramble.
Issues are no longer issues, so I'm going to work on getting up to 5.6.11 stable for now.
from raspberry-pi-dramble.
Related Issues (20)
- kubernetes-dashboard failing, exec format, I think the play installs amd64 HOT 2
- Issue ansible shutdown on Pi cluster HOT 2
- Failed to fetch package HOT 6
- No package matching 'containerd.io' is available HOT 1
- cluster provisioning failing
- Replace Blinkstick with Adafruit Neo Trinkey HOT 6
- ansible-playbook -i inventory main.yml failing HOT 2
- TASK [geerlingguy.containerd : Ensure containerd is installed.] HOT 4
- fatal: [kube4]: FAILED! => changed=false msg: apt cache update failed HOT 2
- raspberry-pi-dramble/tasks/k8s-services.yml : urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=80): Max retries exceeded HOT 21
- `nfs-client-provisioner` won't start on Ubuntu Server 64-bit HOT 2
- Silencing a PoE powered Raspberry Pi cluster
- The need of ipv4 forward HOT 1
- Add new Pi Zero 2 W power benchmarks to site HOT 1
- microsd-benchmark iozone compile error HOT 3
- Network bridging not properly enabled HOT 3
- All net.bridge tasks are being skipped HOT 2
- ansible provisioning for vagrant fails HOT 2
- Install has fatal error on pi bramble HOT 3
- error while setup HOT 3
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 raspberry-pi-dramble.