carbontwelve,
@carbontwelve@notacult.social avatar

My method of installing different versions with homebrew is now broken; the versions install but trying to run php results in :"Library not loaded: /usr/local/opt/libvmaf/lib/libvmaf.1.dylib"

Ugh.

danielsiepmann,

@carbontwelve I'm not using Mac myself any more. But may I ask whether you tried macports.org/ as an alternative to and whether you might share your experience?

I guess MacPorts is older and still maintained. I never tried it as homebrew was "the way to go" back when I started to play around with such things on my Mac.

carbontwelve,
@carbontwelve@notacult.social avatar

@danielsiepmann I did give MacPorts a go and it worked, I would install the two versions of PHP I needed, however some things I needed to install had missing dependencies such as sudo port install php74-openssl would error on Dependency 'kerberos5' not found; with kerberos5 itself being listed on their website but trying to install it would error with "Port kerberos5 not found".

Homebrew only supports macOS versions that Apple supports, this is what started the problems I was encountering...

carbontwelve,
@carbontwelve@notacult.social avatar

@danielsiepmann ... because once your OS version becomes unsupported, homebrew will no longer ship binaries and will instead compile everything on your computer with unsuported results.

In my case, this lead to broken installs because some things failed to compile.

I then upgraded my macOS to the latest version forgetting that I still had broken libraries installed.

That is why running brew reinstall libvmaf fixed the install for me, I still had the broken compile installed...

carbontwelve,
@carbontwelve@notacult.social avatar

@danielsiepmann ... MacPorts is easy to use; although the installer hung for me right upon completion and required a force quit.

When I ask homebrew to install php@8.2 it will install the command line tools and setup php-fpm. This is handy, for MacPorts that is two install commands and you have to then do the configuration yourself.

I find homestead more useful because some tooling I use is designed to work with it.

danielsiepmann,

@carbontwelve Thanks for sharing your experiences :) Might be worth a small blog post on your blog, so others can benefit as well.

neverpanic,
@neverpanic@chaos.social avatar

@carbontwelve @danielsiepmann The installer likely didn't hang, but was downloading the initial copy of the Portfiles, which can take a while. Killing it may also explain why kerberos5 was missing. Running sudo port selfupdate should fix that.

carbontwelve,
@carbontwelve@notacult.social avatar

@neverpanic @danielsiepmann interesting, running that now and it does seem to sit on "updating the ports tree" with tcl hammering a single core so I believe you're right and I just wasn't patient enough (after six hours of debugging I was running out of patience.)

If the installer could split that out as a final stage with a "this will take x minutes" or even better a display of something happening as a comfort would make the install process a better experience.

outofcontrol,
@outofcontrol@phpc.social avatar

@carbontwelve Perhaps a path issue somewhere in a config, as the path should not be under /usr/local instead should be under /opt. Unless of course you changed it to be under /usr/local.

carbontwelve,
@carbontwelve@notacult.social avatar

@outofcontrol after having spent the past 3 hours debugging this the problem was solved by brew reinstall libvmaf :sootsprite:

outofcontrol,
@outofcontrol@phpc.social avatar

@carbontwelve So obvious… once you know the solution. Happy to hear you solved it.

danielsiepmann,

@carbontwelve That's due the broken concept of homebrew. It should work to re install the broken PHP version if I remember correctly.

carbontwelve,
@carbontwelve@notacult.social avatar

@danielsiepmann I thought so too, so I uninstalled and reinstalled.

I'm using shivammathur/php to get some older versions of PHP and none of them install and function at the moment.

danielsiepmann,

@carbontwelve Thanks, good to know. A colleague uses the same... Will inform him

carbontwelve,
@carbontwelve@notacult.social avatar

@danielsiepmann the solution was to run ‘brew reinstall libvmaf’ I suspect that something caused it to not install correctly the first time around and I didn’t notice due to the five miles of console output at the time.

danielsiepmann,

@carbontwelve Thanks for the update :) hope everything will work for you again.

Pol,
@Pol@mathstodon.xyz avatar

@carbontwelve Alternative and long term viable solution: Nix.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • php
  • rosin
  • cisconetworking
  • GTA5RPClips
  • osvaldo12
  • khanakhh
  • DreamBathrooms
  • magazineikmin
  • Youngstown
  • everett
  • mdbf
  • slotface
  • InstantRegret
  • kavyap
  • cubers
  • megavids
  • modclub
  • normalnudes
  • Durango
  • thenastyranch
  • ethstaker
  • tacticalgear
  • ngwrru68w68
  • Leos
  • anitta
  • provamag3
  • tester
  • JUstTest
  • lostlight
  • All magazines