homebrew-osgeo4mac: brew install osgeo/osgeo4mac/qgis3 fails on macOSX HighSierra
When running brew install osgeo/osgeo4mac/qgis3 I run into an error during the make process… I am working on MacOS High Sierra (10.13.6)
==> /usr/local/Cellar/qgis3/3.4.1/libexec/vendor/bin/pip install -v --no-deps --
==> cmake -G Ninja -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-D
==> cmake --build . --target all -- -j 4
Last 15 lines from /Users/Johannes_Radinger/Library/Logs/Homebrew/qgis3/30.cmake:
QgsPythonUtilsImpl::PyObjectToQString(_object*) in qgspythonutilsimpl.cpp.o
"_Py_Finalize", referenced from:
QgsPythonUtilsImpl::exitPython() in qgspythonutilsimpl.cpp.o
"_Py_Initialize", referenced from:
QgsPythonUtilsImpl::init() in qgspythonutilsimpl.cpp.o
"__Py_NoneStruct", referenced from:
QgsPythonUtilsImpl::getTraceback() in qgspythonutilsimpl.cpp.o
QgsPythonUtilsImpl::PyObjectToQString(_object*) in qgspythonutilsimpl.cpp.o
QgsPythonUtilsImpl::getError(QString&, QString&) in qgspythonutilsimpl.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[4865/5104] cd /tmp/qgis3-20181109-98868-1gc7lru/QGIS-final-3_4_1/build/i18n && /usr/local/opt/qt/bin/lrelease -silent /tmp/qgis3-20181109-98868-1gc7lru/QGIS-final-3_4_1/i18n/qgis_cs.ts -qm /tmp/qgis3-20181109-98868-1gc7lru/QGIS-final-3_4_1/build/output/i18n/qgis_cs.qm
[4866/5104] cd /tmp/qgis3-20181109-98868-1gc7lru/QGIS-final-3_4_1/build/i18n && /usr/local/opt/qt/bin/lrelease -silent /tmp/qgis3-20181109-98868-1gc7lru/QGIS-final-3_4_1/i18n/qgis_da.ts -qm /tmp/qgis3-20181109-98868-1gc7lru/QGIS-final-3_4_1/build/output/i18n/qgis_da.qm
[4867/5104] cd /tmp/qgis3-20181109-98868-1gc7lru/QGIS-final-3_4_1/build/i18n && /usr/local/opt/qt/bin/lrelease -silent /tmp/qgis3-20181109-98868-1gc7lru/QGIS-final-3_4_1/i18n/qgis_es.ts -qm /tmp/qgis3-20181109-98868-1gc7lru/QGIS-final-3_4_1/build/output/i18n/qgis_es.qm
ninja: build stopped: subcommand failed.
So how can I proceed to get the new QGIS3 installed on my Mac?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 2
- Comments: 48
@luispuerto I pass through here the formula, while verifying that it builds well.
Do not forget to use #584.
p/d: change to
--with-saga
, it’s simpler.Ok! I will apply the changes in
qgis3
.@fjperini No, I didn’t download that pull request, I forgot. I’m building in this moment without orfeo… I can try again later or tomorrow.
@luispuerto I’ll leave the new parch for you to try. Later I apply the changes.
https://gist.githubusercontent.com/fjperini/009a5dda278c1a10e0758865d149820c/raw/1f854f223466a6309b1a9bd1b002595300ef43f6/OTBAlgorithmProvider.patch
https://gist.githubusercontent.com/fjperini/53f53daf78ab5e203fd81322ea5c3a2f/raw/a337ba3467ad5b3ca7e1c6ed3d54c81a06fbe567/OTBUtils.patch
Hug!
I did not need to change anything after the unlink && link step. It installed easily thereafter.
On Tue, Dec 18, 2018 at 06:23 jradinger notifications@github.com wrote:
@fjperini Sorry, I cannot remember if I needed to change any Python related entries in PATH (I needed to change some other unrelated things and double entries)…and I did not test if just doing the
unlink-link
thing would have been sufficient.I also just want to confirm that I tested the suggested approach:
unlink python3 && brew link python3 -force
and then checking the PATH. After that QGIS3 it installed without problems. So it seems, as already mentioned by others, related to the installed versions of Python (without having a clue whats the reason behind that).Just want to add me to the pile of people that had this issue. I’m on Mojave (10.14.2) I had to do what @mdmadhu suggested in the end. I did
brew unlink python3 && brew link python3 -force
and then it installed quickly. Something clearly going on with python that isn’t clear until trying to install it here. I had the same exact error as above. I thought I had only installed python 3.7 from homebrew over the top of the Apple python 2.X. I guess that was not the case.