afragen / setup-phpunit

Setup PHPUnit for use in Local Lightning
MIT License
21 stars 6 forks source link

Symbol not found: _apr_crypto_block_cleanup #5

Closed crstauf closed 3 years ago

crstauf commented 3 years ago

I'm sure this is not the fault of the script, but I did experience it while using the script, so hoping a kind soul will assist me.

MacOS
Installing PHPUnit 7... 
phpunit-7.phar                                              100%[=========================================================================================================================================>]   2.62M   534KB/s    in 6.7s    
phpunit-7.phar -> /usr/local/bin/phpunit
Installing WordPress 5.8.1... 
/tmp/wordpress.tar.gz                                       100%[=========================================================================================================================================>]  14.39M  18.5MB/s    in 0.8s    
Installing WordPress 5.8.1 Test Suite...
dyld[38480]: Symbol not found: _apr_crypto_block_cleanup
  Referenced from: /usr/local/Cellar/subversion/1.14.1_4/lib/libsvn_subr-1.0.dylib
  Expected in: /usr/lib/libaprutil-1.0.dylib
setup-phpunit.sh: line 143: 38480 Abort trap: 6           svn export --quiet --force "https://develop.svn.wordpress.org/$1/tests/phpunit/includes/" "/tmp/tmp-wordpress-tests-lib/includes/"
dyld[38481]: Symbol not found: _apr_crypto_block_cleanup
  Referenced from: /usr/local/Cellar/subversion/1.14.1_4/lib/libsvn_subr-1.0.dylib
  Expected in: /usr/lib/libaprutil-1.0.dylib
setup-phpunit.sh: line 143: 38481 Abort trap: 6           svn export --quiet --force "https://develop.svn.wordpress.org/$1/tests/phpunit/data/" "/tmp/tmp-wordpress-tests-lib/data/"
dyld[38482]: Symbol not found: _apr_crypto_block_cleanup
  Referenced from: /usr/local/Cellar/subversion/1.14.1_4/lib/libsvn_subr-1.0.dylib
  Expected in: /usr/lib/libaprutil-1.0.dylib
setup-phpunit.sh: line 143: 38482 Abort trap: 6           svn export --quiet --force "https://develop.svn.wordpress.org/$1/wp-tests-config-sample.php" "/tmp/tmp-wordpress-tests-lib/wp-tests-config.php"
WARNING Could not download 5.8.1 Test Suite. Make sure you're connected to the internet.
Installing Test Suite from trunk...
dyld[38484]: Symbol not found: _apr_crypto_block_cleanup
  Referenced from: /usr/local/Cellar/subversion/1.14.1_4/lib/libsvn_subr-1.0.dylib
  Expected in: /usr/lib/libaprutil-1.0.dylib
setup-phpunit.sh: line 143: 38484 Abort trap: 6           svn export --quiet --force "https://develop.svn.wordpress.org/$1/tests/phpunit/includes/" "/tmp/tmp-wordpress-tests-lib/includes/"
dyld[38485]: Symbol not found: _apr_crypto_block_cleanup
  Referenced from: /usr/local/Cellar/subversion/1.14.1_4/lib/libsvn_subr-1.0.dylib
  Expected in: /usr/lib/libaprutil-1.0.dylib
setup-phpunit.sh: line 143: 38485 Abort trap: 6           svn export --quiet --force "https://develop.svn.wordpress.org/$1/tests/phpunit/data/" "/tmp/tmp-wordpress-tests-lib/data/"
dyld[38486]: Symbol not found: _apr_crypto_block_cleanup
  Referenced from: /usr/local/Cellar/subversion/1.14.1_4/lib/libsvn_subr-1.0.dylib
  Expected in: /usr/lib/libaprutil-1.0.dylib
setup-phpunit.sh: line 143: 38486 Abort trap: 6           svn export --quiet --force "https://develop.svn.wordpress.org/$1/wp-tests-config-sample.php" "/tmp/tmp-wordpress-tests-lib/wp-tests-config.php"
WARNING Could not download trunk Test Suite. Make sure you're connected to the internet.
Stopping script...
afragen commented 3 years ago

How did you install SVN, via Homebrew?

brew install svn

crstauf commented 3 years ago

@afragen Correct.

brew install subversion (I believe they both install Brew)

afragen commented 3 years ago

If you still have this error you might try brew reinstall svn

crstauf commented 3 years ago
  1. Ran brew uninstall subversion
  2. Ran brew install svn
  3. Ran bash setup-phpunit.sh
  4. Encountered same error
  5. Ran brew reinstall svn
  6. Ran bash setup-phpunit.sh
  7. Encountered same error
$ which svn
/usr/local/bin/svn
afragen commented 3 years ago

I'm not sure I have an answer. I'm sorry. It seems to be related to svn.

crstauf commented 3 years ago

brew reinstall apr-util from within the site's shell fixed it! Ran bash setup-phpunit.sh and it completed. :joy:

afragen commented 3 years ago

I saw something like that in StackOverflow but it must've been installed already on my system or been in the requirements of something I installed. Also maybe cause I'm running nginx and not Apache.

crstauf commented 3 years ago

Yeah it was already installed, so don't know why it needed to be reinstalled. The Local container is also using nginx.

afragen commented 3 years ago

Looks like apr-util is a dependency for apr and openssl!1.1.

Seems Apple's builtin openssl is

arm64: ~ which openssl
/usr/bin/openssl
arm64: ~ openssl version
LibreSSL 2.8.3
sfxn commented 2 years ago

brew reinstall apr-util from within the site's shell fixed it! Ran bash setup-phpunit.sh and it completed. 😂

this fixed it for me too, brew reinstall apr-util brew reinstall subversion

hasanuzzamanbe commented 2 years ago

Thanks, @sfxn brew reinstall apr-util helps me ❤️

haktan-suren commented 2 years ago

thanks @crstauf brew reinstall apr-util worked for me!

Tianer1123 commented 2 years ago

thanks @crstauf brew reinstall apr-util worked for me!❤️

fishermans commented 2 years ago

I used: brew remove apr-util subversion && brew install subversion && svn --version

rogerioefonseca commented 2 years ago

brew reinstall apr-util

Worked for me as well! :)