Ticket #31503 (closed update: worksforme)
updated cdo@1.5.2 cannot link to netcdf.4.dylib
| Reported by: | fischcheng@… | Owned by: | takeshi@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.0.3 |
| Keywords: | cdo, netcdf | Cc: | ryandesign@… |
| Port: | cdo |
Description
I just updated my netcdf library to version 4.1.3 and cleaned all the old versions of netcdf. Then I tried to use CDO but all in vain, since it cannot find the netcdf.4.dylib library anymore.
I tried the solution suggested in Ticket #24063, After uninstalled all netcdf version and then installed a netCDF without any variants, finally the variant i need. I still couldn't find the netcdf.4.dylib, instead, there is a netcdf.7.dylib in /opt/local/lib directory.
And the selfupdate, and forced upgrade the port of CDO are useless as well. How can I install a correct netcdf.4.dylib, or simply find an older version of netcdf? By the well, i cannot find older netcdf on MacPorts anymore!!
Attachments
Change History
comment:1 Changed 20 months ago by ryandesign@…
- Owner changed from macports-tickets@… to takeshi@…
- Cc ryandesign@… added
Note: See
TracTickets for help on using
tickets.


That's strange... You shouldn't need an older version of netcdf; rather, all programs that use netcdf need to be rebuilt with the newer netcdf library.
When netcdf's library version was increased to 7 in r80310 as a consequence of updating the program version to 4.1.3, all ports that use netcdf should have simultaneously had their revisions increased. Since that wasn't done at that time, it should be done now. Takeshi, can you do that, for all ports that haven't already had their version or revision increased for other reasons since then? I'll attach a list of ports that depend on netcdf.
However, cdo was updated to 1.5.2 in r83073, after netcdf was updated to 4.1.3, so that should have already taken care of rebuilding cdo with netcdf library version 7. That is, it should not have been possible for you to get cdo 1.5.2 installed without already having netcdf libraryn version7.
Try forcibly rebuilding cdo, and selfupdate beforehand just to make sure your ports definitions are up to date: