laravel-er-diagram-generator icon indicating copy to clipboard operation
laravel-er-diagram-generator copied to clipboard

how to install graphviz on Laravel Sail

Open noud opened this issue 10 months ago • 4 comments

i want to use your pacakge in a Laravel Sail environment.

How do i install graphviz on Laravel Sail?

thanks, Noud

noud avatar Apr 11 '24 11:04 noud

sail composer require beyondcode/laravel-er-diagram-generator --dev
sail root-shell
apt-get update
apt-get install graphviz
php artisan generate:erd

This worked for me.

romek-codes avatar May 03 '24 14:05 romek-codes

On Fri, 2024-05-03 at 07:37 -0700, Romek wrote:

sail composer require beyondcode/laravel-er-diagram-generator --dev

i use Laravel 11, could it be that it is a too new Laravel version 11 to work with beyondcode/laravel-er-diagram-generator?

if i do, i get:

./vendor/bin/sail composer require beyondcode/laravel-er-diagram- generator --dev ./composer.json has been updated Running composer update beyondcode/laravel-er-diagram-generator Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages.

Problem 1

  • doctrine/dbal[v2.5.0, ..., v2.5.2] require doctrine/common

=2.4,<2.6-dev -> satisfiable by doctrine/common[v2.4.0, ..., v2.5.3].

  • doctrine/dbal[v2.5.3, ..., v2.5.5] require doctrine/common

=2.4,<2.7-dev -> satisfiable by doctrine/common[v2.4.0, ..., v2.6.2].

  • doctrine/dbal[v2.5.6, ..., v2.5.13] require doctrine/common

=2.4,<2.8-dev -> satisfiable by doctrine/common[v2.4.0, ..., v2.7.3].

  • doctrine/dbal[v2.4.0, ..., v2.4.5] require doctrine/common ~2.4 -> satisfiable by doctrine/common[v2.4.0, ..., 2.13.3].
  • laravel/framework v11.3.1 requires nesbot/carbon ^2.72.2|^3.0 -> satisfiable by nesbot/carbon[3.2.4].
  • laravel/framework v11.3.1 requires symfony/http-foundation ^7.0 -> satisfiable by symfony/http-foundation[v7.0.6].
  • beyondcode/laravel-er-diagram-generator[0.1.0, ..., 0.2.3, 1.0.0, ..., 1.5.0] require php ^7.1 -> your php version (8.3.4) does not satisfy that requirement.
  • doctrine/common[v2.9.0, ..., 2.13.0] require php ^7.1 -> your php version (8.3.4) does not satisfy that requirement.
  • doctrine/dbal[v2.6.0, ..., v2.9.3] require php ^7.1 -> your php version (8.3.4) does not satisfy that requirement.
  • beyondcode/laravel-er-diagram-generator 2.0.0 requires nikic/php- parser ^2.0|^3.0|^4.0 -> found nikic/php-parser[v2.0.0, v2.0.1, v2.1.0, v2.1.1, v3.0.0, ..., v3.1.5, v4.0.0, ..., v4.19.1] but the package is fixed to v5.0.2 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
  • doctrine/common[v2.4.0, ..., v2.5.3] require doctrine/inflector 1.* -

found doctrine/inflector[v1.0, ..., 1.4.4] but the package is fixed to 2.0.10 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.

  • doctrine/common[v2.6.0, ..., v2.6.2] require php ~5.5|~7.0 -> your php version (8.3.4) does not satisfy that requirement.
  • doctrine/common[v2.7.0, ..., v2.7.3] require php ~5.6|~7.0 -> your php version (8.3.4) does not satisfy that requirement.
  • doctrine/common[v2.8.0, ..., v2.8.1] require php ~7.1 -> your php version (8.3.4) does not satisfy that requirement.
  • doctrine/common[2.13.1, ..., 2.13.3] require doctrine/inflector ^1.0 -> found doctrine/inflector[v1.0, ..., 1.4.4] but the package is fixed to 2.0.10 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
  • doctrine/dbal[v2.10.0, ..., 2.10.4] require php ^7.2 -> your php version (8.3.4) does not satisfy that requirement.
  • doctrine/dbal[2.11.0, ..., 2.11.3] require php ^7.3 -> your php version (8.3.4) does not satisfy that requirement.
  • laravel/framework is locked to version v11.3.1 and an update of this package was not requested.
  • carbonphp/carbon-doctrine-types 3.2.0 conflicts with doctrine/dbal 3.8.4.
  • beyondcode/laravel-er-diagram-generator 3.0.0 requires doctrine/dbal ~2.3|^3.3 -> satisfiable by doctrine/dbal[2.3.0, ..., 2.13.9, 3.3.0, ..., 3.8.4].
  • nesbot/carbon 3.2.4 requires carbonphp/carbon-doctrine-types * -> satisfiable by carbonphp/carbon-doctrine-types[3.2.0].
  • symfony/http-foundation v7.0.6 conflicts with doctrine/dbal 3.5.4.
  • symfony/http-foundation v7.0.6 conflicts with doctrine/dbal 3.4.6.
  • symfony/http-foundation v7.0.6 conflicts with doctrine/dbal 3.3.8.
  • symfony/http-foundation v7.0.6 conflicts with doctrine/dbal 3.3.5.
  • symfony/http-foundation v7.0.6 conflicts with doctrine/dbal 2.13.9.
  • symfony/http-foundation v7.0.6 conflicts with doctrine/dbal 2.13.8.
  • symfony/http-foundation v7.0.6 conflicts with doctrine/dbal 2.13.1.
  • symfony/http-foundation v7.0.6 conflicts with doctrine/dbal 2.12.1.
  • symfony/http-foundation v7.0.6 conflicts with doctrine/dbal 2.3.5.
  • symfony/http-foundation v7.0.6 conflicts with doctrine/dbal 2.3.2.
  • Root composer.json requires beyondcode/laravel-er-diagram-generator * -> satisfiable by beyondcode/laravel-er-diagram-generator[0.1.0, ..., 0.2.3, 1.0.0, ..., 1.5.0, 2.0.0, 3.0.0].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions. You can also try re-running composer require with an explicit version constraint, e.g. "composer require beyondcode/laravel-er-diagram- generator:*" to figure out if any version is installable, or "composer require beyondcode/laravel-er-diagram-generator:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content. $

noud avatar May 03 '24 14:05 noud

@noud It seems you're having the same issue as people in this issue: #112

romek-codes avatar May 03 '24 14:05 romek-codes

Romek,

yes, same issue, Laravel is too new.

Can you make a new distribution with these patches to composer.json

-        "php": "^7.1|^8.0",
+        "php": "^7.1|^8.0|^8.1|^8.2",

-        "doctrine/dbal": "~2.3|^3.3",
+        "doctrine/dbal": "~2.3|^3.3|^3.8|^4.0",

-        "phpunit/phpunit": "^7.0| ^8.0|^9.5.10",
+        "phpunit/phpunit": "^7.0| ^8.0|^9.5.10|^10.5.20|^11.1.3",

and make a new distribution?

thanks, Noud

noud avatar May 05 '24 16:05 noud