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
364 stars 112 forks source link

brew install osgeo-gdal failed Error - No available formula with the name "cryptopp" #1394

Closed vishalsynerzip closed 3 years ago

vishalsynerzip commented 3 years ago

Please answers the following

I've...

Describe the bug While installing osgeo-dal the error gets thrown Error: No available formula with the name "cryptopp" (dependency of osgeo/osgeo4mac/osgeo-gdal)

To Reproduce

Steps to reproduce the behavior:

  1. Go to Terminal
  2. Type brew tap osgeo/osgeo4mac then brew install osgeo-gdal
  3. Scroll down on Terminal
  4. See error

Expected behavior

The osgeo-gdal would get installed.

Screenshots

Additional context I am running this on the Catalina macOS version - 10.15.6

brew doctor output: Your system is ready to brew.

==> Installing osgeo-gdal from osgeo/osgeo4mac
Error: No available formula with the name "cryptopp" (dependency of osgeo/osgeo4mac/osgeo-gdal)
==> Searching for a previously deleted formula (in the last month)...
cryptopp was deleted from homebrew/core in commit f5961382fd:
  cryptopp: delete formula.
  This has been without a bottle for a long time and it doesn't seem
  possible to fix. We're a binary package manager so delete it.

To show the formula before removal run:
  git -C "$(brew --repo homebrew/core)" show f5961382fd^:Formula/cryptopp.rb

If you still use this formula consider creating your own tap:
  https://docs.brew.sh/How-to-Create-and-Maintain-a-Tap

Logs

alazarolop commented 3 years ago

Hi @vishalsynerzip , thank your for posting. I'm aware of this issue. The formula isn't getting built, I don't know if related to this dependency or another bug, but I haven't been able to fix it in the bottles brunch. The log is available here

The only error I detect

jpeg2000dataset.cpp:611:28: error: assigning to 'char *' from incompatible type 'const char *'
    if ( !(pszFormatName = jas_image_fmttostr( iFormat )) )
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [../o/jpeg2000dataset.lo] Error 1
make[1]: *** [jpeg2000-install-obj] Error 2
make: *** [frmts-target] Error 2

I need to invest more time. Help would be more than welcome.

alazarolop commented 3 years ago

It should be fixed with 221f6e21ffd0ea3108d9e7a686eeee3a60e309dc

vishalsynerzip commented 3 years ago

Thanks @alazarolop ... I have tested it and it is working fine.