New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #31503 (closed update: worksforme)

Opened 20 months ago

Last modified 20 months ago

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

ports-depending-on-netcdf (196 bytes) - added by ryandesign@… 20 months ago.

Change History

comment:1 Changed 20 months ago by ryandesign@…

  • Owner changed from macports-tickets@… to takeshi@…
  • Cc ryandesign@… added

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:

sudo port clean cdo
sudo port -v selfupdate
sudo port -n upgrade --force cdo

Changed 20 months ago by ryandesign@…

comment:2 follow-up: ↓ 3 Changed 20 months ago by takeshi@…

Ryan, I revamped revision all ports with commit older than r80310 and committed in r85049. Should I have asked that to maintainer?

I rebuilt cdo but I was unable to reproduce the problem.

comment:3 in reply to: ↑ 2 Changed 20 months ago by fischcheng@…

Thx for your kind reply, I rebuilt the whole MacPorts last night, and now both of netcdf and cdo works perfectly, though i still couldn't quiet get the point, how did it happen.

comment:4 Changed 20 months ago by takeshi@…

  • Status changed from new to closed
  • Resolution set to worksforme
Note: See TracTickets for help on using tickets.