mise use php@latest && dependency hell #4560
Replies: 5 comments 15 replies
-
|
Dependency management is called out as the top anti-goal of the project: https://mise.jdx.dev/roadmap.html#anti-goals Reason being: it's too much maintenance work and too specific to individual setups. I'd much rather give no information than wrong information. What we can do is document what is required. This does seem to be done somewhat in the current readme for mise-php which links to https://github.com/asdf-community/asdf-php/blob/248e9c6e2a7824510788f05e8cee848a62200b65/.github/workflows/workflow.yml#L30 but I think that list should just go straight into the README directly so the apt commands are right there.
is there one? This isn't something most languages offer and open source efforts for ruby and python have proven to be a ton of work for maintainers. If this is possible someone should certainly do it but it's not at all a mise problem, it's a php problem. |
Beta Was this translation helpful? Give feedback.
-
|
I'm having issues with mise too but on apple silicon. PHP Support #4720 |
Beta Was this translation helpful? Give feedback.
-
|
for macOS would it be possible to support brew as a backend? Currently PHP installs via mise on windows works smoothly but on Mac I'm forced to use brew. |
Beta Was this translation helpful? Give feedback.
-
|
if you are in linux make sure to install (or just leave it as below which if already exists then it would update existing): then reboot the machine to restart daemons, then just run |
Beta Was this translation helpful? Give feedback.
-
|
I ran into similar issues, and most of the PHP mise plugins couldn't find many versions either. I had to put together my own, with support for Composer, PECL, and PIE. In addition, I previously experimented with pre-compiled binaries provided by static-php-cli: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Alright, here is a quick one that bugs me and I think we should do something about.
I'm not sure about the right approach, let's get the brainstorm started! π€
mise use php@latest php --version # THIS SHOULD WORKBut the actual workflow for newcomers is as follows:
Okok, missing locate. Fair enough but not first shot.
Ok, autoconf, altright.
apt update && apt install -y locate autoconf mise use php@latestAnd so on, and so on. Life is pain. π
I thinkg we should, from best to worst :
I know managing libs for various OS can be painful, but maybe there are usual ways to track them down and suggest an easy install, because currently, I can install php with mise as I know the library naming convention and have time for this, but younglings are definitely lost AF when it comes to using php through mise. Why install a lib as root to install python in userland self compiled? Why isn't this easyer? Why do we still have php in 2025 and stuff! π
Have a nice one πΉ
Beta Was this translation helpful? Give feedback.
All reactions