gabrielmoreira / craftman

Craft CMS Manager
MIT License
124 stars 11 forks source link

Fresh craftman install fails with missing libpng12-dev dependency in Debian repo #17

Closed qbunt closed 6 years ago

qbunt commented 6 years ago

On a fresh install, it appears that one of the dependencies may have fallen off the repo and is forcing installs to either stall or fail completely. I get the following output on install.

craftman --port=8080 install
===> Installing Craft...
===> Preparing to download Craft CMS
===> +  Using Craft CMS from local cache
===> Extracting Craft CMS tar.gz
===> +  Extracting craft.tar.gz to /Users/envoy/git/test-craftman/site
===> Generating Craft CMS configurations
===> +  Generating 'scripts/install/010_dependencies.sh'
===> +  Generating 'site/craft/config/db.php'
===> +  Generating 'site/craft/config/general.php'
===> +  Generating 'docker-compose.yml'
===> +  Generating 'scripts/override/usr/local/etc/php/php.ini'
===> +  Generating 'scripts/install/100_composer.sh'
===> Starting Craft CMS containers
testcraftman_craft_1
Starting testcraftman_mysql_data_1 ...
Starting testcraftman_mysql_data_1 ... done
testcraftman_mysql_1 is up-to-date
Recreating testcraftman_craft_1 ...
Recreating testcraftman_craft_1 ... done
===> Copying all files and directories from '/Users/envoy/git/test-craftman/scripts/override' to craft container root '/'.'
===> All configuration files synced
===> Prepare to run install scripts
===> Running install script 010_dependencies.sh
===> Installing dependencies
===> +  Configuring user and group
===> +    User id: 0
===> +    Group id: 0
root:x:0:
usermod: UID '0' already exists
User 0 already exists
===> +  Configuring site permissions
===> +    Set 775 permissions to /var/www
===> +  Update and install apt-get libraries
Get:1 http://security.debian.org stretch/updates InRelease [63.0 kB]
Get:4 http://security.debian.org stretch/updates/main amd64 Packages [323 kB]
Ign:2 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Get:3 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:5 http://cdn-fastly.deb.debian.org/debian stretch Release [118 kB]
Get:6 http://cdn-fastly.deb.debian.org/debian stretch Release.gpg [2434 B]
Get:7 http://cdn-fastly.deb.debian.org/debian stretch-updates/main amd64 Packages [6499 B]
Get:8 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages [9531 kB]
Fetched 10.1 MB in 2s (3758 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libpng12-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libpng12-dev' has no installation candidate

I suspect that the libpng12-dev dep is no longer satisfied by the current repo.

Also completely possible that it's something on my machine as well. I'm on a 2017 Macbook Pro running 10.13.2 of MacOS. Let me know if you're interested in a PR, it may be solved by moving to a different container.

gabrielmoreira commented 6 years ago

If you can contribute a PR I would appreciate it.

It's been a while since I installed a new project.

Thank you.

qbunt commented 6 years ago

Hey there, this issue was more complex than I thought it'd be. Once you get past the libpng issues, there are further issues (mcrypt specifically), I ultimately went a simpler way. This project might benefit from some tagged containers or installing less dependencies, maybe by switching for different base containers. For now, I'm going to forego a PR until I can find a way to fix the mcrypt issues.