Opened 4 years ago

Closed 4 years ago

#59988 closed defect (fixed)

gdal +grass: error: --with-grass=/opt/local/share/grass76 requested, but libraries not found!

Reported by: TheLastLovemark Owned by: Veence (Vincent)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc: kencu (Ken)
Port: gdal, grass7

Description (last modified by TheLastLovemark)

Per kencu's suggestion at #59976, comment 17

I'm creating a ticket for every individual gdal variant that fails to build.

main.log and config.log are attached

Attachments (2)

gdal+grass_config.log (133.6 KB) - added by TheLastLovemark 4 years ago.
gdal+grass_main.log (32.3 KB) - added by TheLastLovemark 4 years ago.

Download all attachments as: .zip

Change History (5)

Changed 4 years ago by TheLastLovemark

Attachment: gdal+grass_config.log added

Changed 4 years ago by TheLastLovemark

Attachment: gdal+grass_main.log added

comment:1 Changed 4 years ago by TheLastLovemark

Description: modified (diff)

comment:2 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: Veence removed
Owner: set to Veence
Port: grass7 added
Status: newassigned
Summary: gdal +grass build failgdal +grass: error: --with-grass=/opt/local/share/grass76 requested, but libraries not found!

The log says:

error: --with-grass=/opt/local/share/grass76 requested, but libraries not found!

gdal +grass does declare a dependency on the grass7 port, but the grass7 port currently installs version 7.8.1 and installs to the directory /opt/local/share/grass78. So I guess all ports that depend on grass7 need to be updated whenever the major or minor version of grass7 changes. It would be a good idea to add a comment to the grass7 portfile, near where the version is, reminding whoever updates the port to do this.

comment:3 Changed 4 years ago by Veence (Vincent)

Resolution: fixed
Status: assignedclosed

That’s right. I’ll do that for the next GRASS release. I always think about changing QGIS paths, but I often overlook GDAL's.

Meanwhile, I've committed a new GDAL 3.0.3 Portfile with the proper path. Thanks for reporting!

Note: See TracTickets for help on using tickets.