nazgul26 / PHPRecipebook

Cookbook and Meal planning software. Runs on PHP with MySQL/PostgreSQL.
62 stars 39 forks source link

php composer.phar install fails on Debian 10 #99

Closed afc54 closed 2 years ago

afc54 commented 3 years ago

Trying again to get phprecipebook going. Just did a git pull from a Debian 10 system completely up to date and

php composer.phar install

fails with this message: [Composer\Json\JsonValidationException]
"./composer.json" does not match the expected JSON schema:

In red background. Not sure if this is one of the issues that is being resolved with the upgrade to 6.0 (not yet available apparently) but I thought I'd note it here. Also, for quite a while now php-mcrypt has not been available. Is the manual procedure described here:

https://askubuntu.com/questions/1031921/php-mcrypt-package-missing-in-ubuntu-server-18-04-lts

still necessary? or is this another issue that's being resolved in the 6.0 release? I've tried 2 installations: on a system where I had tried before and on freshly installed system. On the first phprecipebook at least starts but doesn't really work. On the latter all I get is a blank page.

afc54 commented 3 years ago

Got a little further. The "name" field in composer.json has to be changed to: "name": "nazgul26/phprecipebook", as the new composer requires a vendor name, a forward slash and an all-lowercase package name. After a php composer.phar update, which gave this warning:

The "composer/installers" plugin was skipped because it requires a Plugin API version ("^1.0") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.

php composer.phar install

succeeded.

nazgul26 commented 2 years ago

Fixed in v6.0