Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GRASS fails to start - wrong libgeos version #247

Closed
petrasovaa opened this issue Jul 31, 2017 · 16 comments
Closed

GRASS fails to start - wrong libgeos version #247

petrasovaa opened this issue Jul 31, 2017 · 16 comments

Comments

@petrasovaa
Copy link

When you open grass in text mode and run g.version, I get:

dyld: Library not loaded: /usr/local/opt/geos/lib/libgeos-3.6.1.dylib
Referenced from: /usr/local/Cellar/grass7/7.2.0/grass-7.2.0/bin/g.version
Reason: image not found
Abort trap: 6

there is no libgeos-3.6.1:

ls /usr/local/opt/geos/lib/
libgeos-3.6.2.dylib	libgeos.dylib		libgeos_c.a		python2.7
libgeos.a		libgeos_c.1.dylib	libgeos_c.dylib

This is fresh installation of OS Sierra and homebrew

@pat-s
Copy link
Contributor

pat-s commented Aug 3, 2017

Try reinstalling grass7 so that it links against the recently updated geos (now v3.6.2)

@petrasovaa
Copy link
Author

Sorry I am not familiar with using homebrew that much, how do I do that? brew options grass7 doesn't give me geos as option.

@pat-s
Copy link
Contributor

pat-s commented Aug 3, 2017

brew reinstall grass7

@petrasovaa
Copy link
Author

Well, I tried that, but it's still the same problem, nothing has changed in this repository.

@pat-s
Copy link
Contributor

pat-s commented Aug 3, 2017

try brew unlink geos && brew link geos && brew reinstall grass7 && brew unlink grass7 && brew link grass7

@petrasovaa
Copy link
Author

still the same problem...

@pat-s
Copy link
Contributor

pat-s commented Aug 3, 2017

do you still have 3.6.1 besides 3.6.2 in /usr/local/Cellar/geos?

I had a similar problem after the recent geos update but cant exactly remember what I did to solve it.

Instead of brew reinstall, please try also brew remove grass7 && brew install grass7 && brew link grass7 after having removed any instance of geos 3.6.1

@petrasovaa
Copy link
Author

Still the same. Thanks for working with me on this. I don't have 3.6.1 anywhere, that's what's weird about this.

@pat-s
Copy link
Contributor

pat-s commented Aug 4, 2017

you start grass in text mode via grass72 -text?

Is the GUI startup grass72 working?

@petrasovaa
Copy link
Author

You might need to set the homebrew python first:

export GRASS_PYTHON=python2.7

and then run

grass72

You have to create a new location to actually test it

  1. create somewhere a directory grassdata and browse to it (the top entry field)
  2. press New to create new Location, Next, then select _Create a generic Cartesian coordinate system`, Next, Finish, No, OK and finally then Start GRASS session.
  3. now it crashes

@cmbarton
Copy link

cmbarton commented Aug 6, 2017

This is not just a HomeBrew issue. I have the same problem when trying to build and run GRASS from the terminal just using dependencies in Anaconda instead of /usr... or /Library/Frameworks.

I worry that there are hardwire links to standard Linux (and perhaps Mac Frameworks) locations of things that prevent GRASS from finding libraries, headers, etc in other places.

It doesn't seem to want to link Anaconda libraries as needed. And if I try to start GRASS that has built successfully in an environment without initial paths to Frameworks or /usr... I get an error message telling me I must use a Framework build of Python.

So perhaps this needs to go on the GRASS bug list instead of here.

Michael

@petrasovaa
Copy link
Author

I realized it installs GRASS from a bottle. So when I use --build-from-source, I am getting errors, basically what is reported in #239. Looking at the log, this error is repeated:

dyld: Library not loaded: /usr/local/opt/jpeg/lib/libjpeg.8.dylib
  Referenced from: /usr/local/opt/gdal2/lib/libgdal.20.dylib
  Reason: image not found
make[3]: *** [i.landsat.toar.tmp.html] Error 1

I have only /usr/local/opt/jpeg/lib/libjpeg.9.dylib on my system.
So the gdal2 bottle is outdated? I tried to recompile gdal2 formula, but I get this problem: #252

So now I am stuck, please advise.

@petrasovaa
Copy link
Author

This is fixed by 524a5f7, which updates gdal2 formula, now grass can be built from source.

@cmbarton
Copy link

cmbarton commented Aug 10, 2017 via email

@petrasovaa
Copy link
Author

Homebrew update, this problem was just because of outdated bottles.

@cmbarton
Copy link

cmbarton commented Aug 10, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants