Giter VIP home page Giter VIP logo

Comments (9)

geerlingguy avatar geerlingguy commented on August 25, 2024

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.

geerlingguy avatar geerlingguy commented on August 25, 2024

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.

geerlingguy avatar geerlingguy commented on August 25, 2024

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.

felicianotech avatar felicianotech commented on August 25, 2024

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.

geerlingguy avatar geerlingguy commented on August 25, 2024

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.

geerlingguy avatar geerlingguy commented on August 25, 2024

@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.

geerlingguy avatar geerlingguy commented on August 25, 2024

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.

geerlingguy avatar geerlingguy commented on August 25, 2024

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.

geerlingguy avatar geerlingguy commented on August 25, 2024

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)

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.