zeropingheroes / lancache-autofill

Automatically fill a Lancache with content
GNU General Public License v3.0
132 stars 24 forks source link

No longer installable (or usable) on php 7.3.2 (Debian 9.8) #28

Closed billthecatt closed 5 years ago

billthecatt commented 5 years ago

Debian 9.8 upgraded php to 7.3.2.. Which now fails to install (it wasn't working even on a pre-installed lancache-autofill so i tried re-installing and got these errors:

user1@srv02:~/lancache-autofill$ ./install.sh Installing dependencies with Composer Loading composer repositories with package information Installing dependencies (including require-dev) from lock file

[ErrorException] "continue" targeting switch is equivalent to "break". Did you mean to use " continue 2"?

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-c ustom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest ] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] []...

Creating database file Creating your environment file

In Connection.php line 664:

could not find driver (SQL: select * from sqlite_master where type = 'table ' and name = steam_apps)

In Connector.php line 67:

could not find driver

Clearing apps from database

In Connection.php line 664:

could not find driver (SQL: delete from sqlitesequence where name = steam apps)

In Connector.php line 67:

could not find driver

Initialising SteamCMD

billthecatt commented 5 years ago

Here 's my workaround for this.. just in case someone else runs into this issue..

apt-get remove php7. <-- not a typo.. put in php7.

(this removes all installed php versions)

apt-get update && apt-get update

apt-get install php7.2

Not sure why my php got too far upgraded, but if you have to downgrade this is the trick. Hope this helps someone.

Thanks again for the great software.

billthecatt commented 5 years ago

If anyone else runs into this issue, i also had to rollback and blacklist the upgrade

I learned how to do this here via googlefoo: https://wiki.debian.org/RollbackUpdate

First remove the new php

apt-get remove php7. <insert a period after the 7 as noted above>

Then, modify /etc/apt/preferences as follows:

Package: php Pin: version 7.2.17-1 Pin-Priority: 1001

This will prevent apt-get update && apt-get upgrade from upgrading beyond what this project supports.

Then, re-install php 7.2

apt-get install php7.2 and for good measure apt install -y lib32gcc1 lib32stdc++6 lib32tinfo5 lib32ncurses5 php7.2-cli php7.2-mbstring php7.2-sqlite php7.2-bcmath composer expect zip unzip

Hope this helps some other poor debian user. It may be worth not using debian at all in order to get autofill and lancache-elk to work correctly..

ilumos commented 5 years ago

Thanks for sharing this, hopefully it helps others using Debian