Cannot install Dolphin from Homebrew
I tried to run brew install kde-mac/kde/dolphin
but it fails with the following error:
CMake Error at /opt/homebrew/lib/cmake/KF5KCMUtils/KF5KCMUtilsToolingTargets.cmake:77 (message):
The imported target "KF5::kcmdesktopfilegenerator" references the file
"/opt/homebrew/lib/libexec/kf5/kcmdesktopfilegenerator.app/Contents/MacOS/kcmdesktopfilegenerator"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/opt/homebrew/lib/cmake/KF5KCMUtils/KF5KCMUtilsToolingTargets.cmake"
but not all the files it references.
Call Stack (most recent call first):
/opt/homebrew/lib/cmake/KF5KCMUtils/KF5KCMUtilsConfig.cmake:74 (include)
/opt/homebrew/share/ECM/find-modules/FindKF5.cmake:52 (find_package)
CMakeLists.txt:53 (find_package)
-
I ran "$(brew --repo kde-mac/kde)/tools/do-caveats.sh"
and am still able to reproduce my issue. -
I have resolved all warnings from brew doctor
and that did not fix my problem. -
I added output from brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
output below.
`brew config` output
HOMEBREW_VERSION: 3.6.3
ORIGIN: https://github.com/Homebrew/brew
HEAD: d5b6b068c15a8df60f0f5e34a4ca80dcf82c48e3
Last commit: 5 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: ac3a5cf0e6ad0f58c0ae45d75220c7c9f1383f90
Core tap last commit: 3 hours ago
Core tap branch: master
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_GITHUB_API_TOKEN: set
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.8 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 14.0.0 build 1400
Git: 2.37.0 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.79.1 => /usr/bin/curl
macOS: 12.6-arm64
CLT: 14.0.0.0.1.1661618636
Xcode: N/A
Rosetta 2: false
`brew doctor` output
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and which additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew-provided
script of the same name. We found the following "config" scripts:
/Users/[user]/Library/Python/3.10/bin/pylint-config
`CMakeError.log`
Determining if the __GLIBC__ exist failed with the following output:
Change Dir: /tmp/dolphin-20221001-2189-z817fl/dolphin-22.04.3/build/CMakeFiles/CMakeTmp
Run Build Command(s):/opt/homebrew/bin/ninja cmTC_c06fa && [1/2] Building C object CMakeFiles/cmTC_c06fa.dir/CheckSymbolExists.c.o
FAILED: CMakeFiles/cmTC_c06fa.dir/CheckSymbolExists.c.o
/opt/homebrew/Library/Homebrew/shims/mac/super/clang -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -MD -MT CMakeFiles/cmTC_c06fa.dir/CheckSymbolExists.c.o -MF CMakeFiles/cmTC_c06fa.dir/CheckSymbolExists.c.o.d -o CMakeFiles/cmTC_c06fa.dir/CheckSymbolExists.c.o -c /tmp/dolphin-20221001-2189-z817fl/dolphin-22.04.3/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/tmp/dolphin-20221001-2189-z817fl/dolphin-22.04.3/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: use of undeclared identifier '__GLIBC__'
return ((int*)(&__GLIBC__))[argc];
^
1 error generated.
ninja: build stopped: subcommand failed.
File /tmp/dolphin-20221001-2189-z817fl/dolphin-22.04.3/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <stdlib.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef __GLIBC__
return ((int*)(&__GLIBC__))[argc];
#else
(void)argc;
return 0;
#endif
}