Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

PHP 7.4 And Tidy-HTML 5.8#400

Answeredbyshivammathur
LiamW asked this question inQ&A / Help
Discussion options

My tidy-html package got updated to 5.8 and now I can't load php 7.4 as it gives the error looking for 5.0

httpd: Syntax error on line 185 of /usr/local/etc/httpd/httpd.conf: Cannot load /usr/local/opt/php@7.4/lib/httpd/modules/libphp7.so into server: dlopen(/usr/local/opt/php@7.4/lib/httpd/modules/libphp7.so, 10): Library not loaded: /usr/local/opt/tidy-html5/lib/libtidy.5.dylib\n Referenced from: /usr/local/opt/php@7.4/lib/httpd/modules/libphp7.so\n Reason: image not found

dyld: Library not loaded: /usr/local/opt/tidy-html5/lib/libtidy.5.dylib
Referenced from: /usr/local/bin/php
Reason: image not found

I've tried reinstalling php 7.4 but no luck.

You must be logged in to vote

@LiamW

Update: All formulae have been re-built. This should work now.

brew updatebrew reinstall shivammathur/php/php@7.4

Replies: 4 comments 9 replies

Comment options

@LiamW

Update: All formulae have been re-built. This should work now.

brew updatebrew reinstall shivammathur/php/php@7.4
You must be logged in to vote
2 replies
@LiamW
Comment options

Thanks that was quick! All good now.

@zyrup
Comment options

Why do we have these issues

Answer selected byshivammathur
Comment options

I have runbrew reinstall php@7.2 but stil get error messagedyld: Library not loaded: /usr/local/opt/tidy-html5/lib/libtidy.5.dylib

You must be logged in to vote
5 replies
@shivammathur
Comment options

@arsyadarmawan

Please run the following commands

  1. brew update
  2. brew install tidy-html5
  3. brew reinstall shivammathur/php/php@7.2 && brew link --overwrite --force php@7.2

Make sure there are no errors on each step. If you get any errors, please open a new thread with complete logs.

@jamie-selesti
Comment options

I didln -s /usr/local/Cellar/tidy-html5/5.8.0/lib/libtidy.58.dylib /usr/local/Cellar/tidy-html5/5.8.0/lib/libtidy.5.dylib to get the reference set up and then didbrew reinstall php@7.2 and everything worked

@shivammathur
Comment options

@jamie-selesti
If you reinstall from this tapbrew reinstall shivammathur/php/php@7.2, this would not be required, after I had rebuilt all formulae#400 (comment), the PHP binaries use/usr/local/opt/tidy-html5/lib/libtidy.58.dylib. So reinstalling the PHP version and tidy should fix it.

@fransyrcc
Comment options

That works for me. Thank you@shivammathur

@andyscraven
Comment options

@jamie-selesti Saved a good half a day of my time, thanks. The symlink (once I edited the path) fixed it for me.

Comment options

For my case I fixed it by :

export PATH="/usr/local/opt/php@8.0/bin:$PATH"export PATH="/usr/local/opt/php@8.0/sbin:$PATH"
You must be logged in to vote
2 replies
@tbiswal
Comment options

This worked for me :) Thanks

@tonymra
Comment options

It really worked for me as well .

Comment options

On mac I just did
brew reinstall tidy-html5
and it works

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Labels
None yet
11 participants
@LiamW@kossa@jamie-selesti@shivammathur@andyscraven@tbiswal@tonymra@zyrup@arsyadarmawan@fransyrcc@rbenli

[8]ページ先頭

©2009-2025 Movatter.jp