Code Monkey home page Code Monkey logo

Comments (10)

mharnold avatar mharnold commented on June 7, 2024

I tried '%brew reinstall expat' and rebooted the machine, but the problem persists.

from homebrew-osgeo4mac.

mharnold avatar mharnold commented on June 7, 2024

koa.local 3 mha % brew info expat
expat: stable 2.1.0 (bottled)
http://expat.sourceforge.net/

This formula is keg-only.
Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.

OS X includes Expat 1.5.

/usr/local/Cellar/expat/2.1.0 (11 files, 712K)
Built from source with: --universal
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/expat.rb
==> Options
--universal
Build a universal binary

from homebrew-osgeo4mac.

mharnold avatar mharnold commented on June 7, 2024

I may have done something ill advised like 'expat link' or 'expat unlink' in response to 'brew doctor' a while back?

from homebrew-osgeo4mac.

mharnold avatar mharnold commented on June 7, 2024

*brew link expat or 'brew unlink expat' I mean.

from homebrew-osgeo4mac.

dakcarto avatar dakcarto commented on June 7, 2024

You should not force link packages that are keg-only unless you really need to, e.g. when building your own software that expects to find the dependencies in /usr/local and can resolve the symlinks back to Cellar.

Note: this issue is unrelated to the qgis-24 formula install. If you look in your initial report, the path is /usr/local/opt/qgis-20, which was already broken, and now will not load at all because it is linked to an older (extinct) version of expat. You no doubt have upgraded that with brew by now.

If you are launching QGIS from a symlink in /Applications/ or ~/Applications/ (created via brew linkapps command), you will want to refresh that setup to keep from launching QGIS 2.0.

Let me know how the launching of qgis-24 goes for you, though. Thanks.

from homebrew-osgeo4mac.

mharnold avatar mharnold commented on June 7, 2024

I start qgis from the command line as 'qgis' As you pointed out this was linked to qgis 2.0

koa.local 6 mha % ls -l /usr/local/bin/qgis
lrwxr-xr-x 1 mha admin 34 Apr 23 15:59 /usr/local/bin/qgis@ -> ../Cellar/qgis-20/2.0.1_1/bin/qgis

So I did:

koa.local 24 mha % brew link --overwrite qgis-24
Linking /usr/local/Cellar/qgis-24/2.4.0_3... 410 symlinks created

qgis starts up fine now! Thanks for all you help!

PS If I experience instability I will reinstall using '--without-globe' as you suggest.

from homebrew-osgeo4mac.

lifepillar avatar lifepillar commented on June 7, 2024

Should this be reopened? I get a similar error after installing qgis-24 (not upgrading from previous versions):

dyld: Library not loaded: /usr/local/lib/libexpat.1.dylib
  Referenced from: /usr/local/opt/qgis-24/QGIS.app/Contents/MacOS/QGIS
  Reason: Incompatible library version: QGIS requires version 8.0.0 or later, but libexpat.1.dylib provides version 7.0.0
/usr/local/bin/qgis: line 8: 14739 Trace/BPT trap: 5       /usr/local/opt/qgis-24/QGIS.app/Contents/MacOS/QGIS

In my case, the path is up to date. Besides, brew doctor does not report anything, and forcing re-linking with brew link has no effect. This is on OS X 10.7.5.

There is no expat library in /usr/local/lib, and I think there never was one, since expat is keg-only. Why does QGIS try to load a library from there?

from homebrew-osgeo4mac.

mharnold avatar mharnold commented on June 7, 2024

You might try 'brew upgrade expat'
When I do 'brew info expat' from my system (qgis-24 working now) I get:

expat: stable 2.1.0 (bottled)
http://expat.sourceforge.net/

This formula is keg-only.
Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.

OS X includes Expat 1.5.

/usr/local/Cellar/expat/2.1.0 (11 files, 712K)
Built from source with: --universal
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/expat.rb
==> Options
--universal
Build a universal binary

from homebrew-osgeo4mac.

lifepillar avatar lifepillar commented on June 7, 2024

I have tried that, and brew reinstall expat, too, to no avail.

from homebrew-osgeo4mac.

lifepillar avatar lifepillar commented on June 7, 2024

Never mind, removing and re-installing qgis-24 did the trick.

from homebrew-osgeo4mac.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.