Giter Site home page Giter Site logo

runkit7-installer's Introduction

πŸ‘‹ Hello, there!

I'm Steve, and I love building tools to help people build better software.

By day, I'm a Staff Software Engineer at Mailchimp, improving the way we handle audience information and our general involvement in the PHP ecosystem.

PHP is my bread-and-butter, and I love building out SaaS and other products using Laravel. I'm also a WordPress plugin author and core contributor, but my real passion is building code quality tools; it shouldn't come as any surprise that I've spent a lot of time working with CI/CD pipelines and all of the tooling that gets run as part of them.

I'm also a regular conference speaker (or at least was, pre-pandemic), so you may have met me at any number of PHP, WordPress, or other software-related events.

You can learn more about me over at stevegrunwell.com, follow me on Mastodon, or connect with me on LinkedIn.

runkit7-installer's People

Contributors

stevegrunwell avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

runkit7-installer's Issues

Automatically create php-common .ini files

When running install-runkit.sh, it would be helpful to automatically be able to enable Runkit in PHP; in order to do so, we may need to create /etc/php/7.x/mods-available/runkit.ini with the following content:

; configuration for php common module
; priority=20
extension=runkit.so

With this file in place, the script should be able to run phpenmod to automatically enable the module within PHP.

Cannot install, php_dir for channel "pecl.php.net" is not writeable by the current user

When running the install-runkit.sh script on VVV, I run into the following error:

$ ./vendor/bin/install-runkit.sh
Installing Runkit7...
Downloading Runkit7 from https://github.com/runkit7/runkit7/releases/download/1.0.5b1/runkit-1.0.5b1.tgz
Cannot install, php_dir for channel "pecl.php.net" is not writeable by the current user

It appears that VVV's default pecl configuration uses /usr/share/php, which has 755 permissions and is owned/grouped "root" by default (which is reasonable):

$ pecl config-get php_dir
/usr/share/php

The documentation should be updated to note that running the install-runkit.sh script may require the use of sudo.

Verify phpize is present

When installing this package for a Laravel Homestead app, I received the following output:

$ sudo ./vendor/bin/install-runkit.sh
Installing Runkit7...
Downloading Runkit7 from https://github.com/runkit7/runkit7/releases/download/1.0.5b1/runkit-1.0.5b1.tgz
13 source files, building
running: phpize
sh: 1: phpize: not found
ERROR: `phpize' failed
Runkit7 has been installed and activated!

There are two issues here:

  1. We should be verifying that phpize is present β€”Β that's the php7.x-dev package for apt.
  2. There should most certainly not be a success message when the installation has failed.

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.