OSGeo / homebrew-osgeo4mac

Mac homebrew tap for maintaining a stable work environment for the OSGeo.org geospatial toolset
https://git.io/fhh3X
BSD 3-Clause "New" or "Revised" License
362 stars 111 forks source link

Missing lib armadillo #1399

Closed milosimr closed 3 years ago

milosimr commented 4 years ago

Please answers the following

I've...

Describe the bug

When trying to use gdal functions, with the gdal 3.1.2, I get this issue.

dyld: Library not loaded: /usr/local/opt/armadillo/lib/libarmadillo.9.dylib
  Referenced from: /usr/local/opt/osgeo-gdal/lib/libgdal.27.dylib
  Reason: image not found
ghost commented 4 years ago

Also experiencing the same issues as OP.

When I check the links of the osgeo-gdal formula (brew linkage osgeo/osgeo4mac/osgeo-gdal), I get the following broken dependencies:

Broken dependencies:
  /usr/local/opt/armadillo/lib/libarmadillo.9.dylib (armadillo)

Looks like armadillo pushed out version 10.11 over the weekend which caused this formula to break.

If anyone could explain how to circumvent this issue for the time being, I'd greatly appreciate it. Also happy to help resolve the issue, but will need some hand holding as I am very new to homebrew.

alazarolop commented 4 years ago

In general, building the formula from source would workaround this kind of issue.

brew install osgeo-gdal `--build-from-source

Some formulas need to be updated in the repository to avoid this.

pat-s commented 4 years ago

Unfortunately building from source errors for me and I am stuck with a broken GDAL installation.

Is there a fix coming in soon or do I need to switch to gdal for the moment?

Curios: Shouldn't the CI notice such issues in some way?

alazarolop commented 4 years ago

I'm sorry for that. I'm currently involved in a move and taking up a new position, so I think I won't be able to fix it in a short time. I would suggest using the core formulas instead as for now.

In this regard, now that gdal and proj from core are up-to-date, I have been considering to use them within the repo, while keeping the capabilities. For example, building the GDAL extensions as a complement to the core formula. I need to spend some time on it though.

pat-s commented 4 years ago

Sounds good 👍 Thanks for the quick reply.

pomadchin commented 4 years ago

It is also possible to fix GDAL via symlinking the new armadillo:

ln -s /usr/local/opt/armadillo/lib/libarmadillo.10.dylib /usr/local/opt/armadillo/lib/libarmadillo.9.dylib

/cc @pat-s

stale[bot] commented 3 years ago

This issue or pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want to keep the issue open, please comment or update the info here. Thank you for your contributions.

lseelenbinder commented 3 years ago

I can confirm this issue. Thanks for the fix @pomadchin!

stale[bot] commented 3 years ago

This issue or pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want to keep the issue open, please comment or update the info here. Thank you for your contributions.

stale[bot] commented 3 years ago

This issue or pull request has been automatically closed because it has not had recent activity. Thank you for your contributions.