Opened 8 years ago
Closed 7 years ago
#53583 closed defect (fixed)
ncview fails on libudunits2.a test
Reported by: | basmac | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | takeshi@…, pgf, aaschwanden (Andy Aschwanden), hscolan, lvankampenhout (Leo van Kampenhout), kurthindenburg (Kurt Hindenburg) | |
Port: | ncview udunits2 |
Description
ncview @2.1.1_11 on Sierra install checks for libudunits2.a, and only has a dylib in /opt/local/lib
/opt/local/lib/libudunits2.dylib
Copying an old libudunits2.a to /opt/local/lib ncview builds fine.
maybe udunits2 needs to install a .a lib as well as a shared lib ?
Change History (14)
comment:1 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)
comment:2 Changed 8 years ago by pgf
Cc: | pgf added |
---|
comment:3 Changed 8 years ago by aaschwanden (Andy Aschwanden)
Cc: | aaschwanden added |
---|
comment:4 Changed 8 years ago by alex-robinson (Alex)
I can confirm this bug, would love to see it fixed, thanks!
comment:5 follow-up: 10 Changed 8 years ago by pgf
I was able to bypass this problem creating a symbolic link to libudunits2.dylib
:
cd /opt/local/lib sudo ln -s libudunits2.dylib libudunits2.a
It seems that libudunits2.a
is checked at configure time only.
comment:6 follow-up: 7 Changed 8 years ago by platipodium (Carsten Lemmen)
Bug confirmed. Workaround does not work for me:
> ncview dyld: Library not loaded: /opt/local/lib/libudunits2.0.dylib Referenced from: /opt/local/bin/ncview Reason: image not found
comment:7 follow-up: 8 Changed 8 years ago by pgf
Replying to platipodium:
Bug confirmed. Workaround does not work for me:
> ncview dyld: Library not loaded: /opt/local/lib/libudunits2.0.dylib Referenced from: /opt/local/bin/ncview Reason: image not found
I forgot to mention that you need to reinstall ncview
after the creation of the symlink. Sorry.
So the sequence is:
- update
udunits2
- create the symlink as explained in my previous post
- reinstall
ncview
At the end of point 1 port
tries to rebuild ncview
(due to the rev-upgrade
feature) and fails.
On my platform, once udunits2
has been updated the dylib is installed as:
/opt/local/lib/libudunits2.dylib
note the missing 0
in the name. This is why you need to reinstall ncview
.
This worked for me.
comment:8 Changed 8 years ago by platipodium (Carsten Lemmen)
Replying to pgf:
Thanks for clarification. Works for me, too.
comment:9 Changed 8 years ago by hscolan
Cc: | hscolan added |
---|
comment:10 Changed 8 years ago by hscolan
Replying to pgf:
I was able to bypass this problem creating a symbolic link to
libudunits2.dylib
:cd /opt/local/lib sudo ln -s libudunits2.dylib libudunits2.aIt seems that
libudunits2.a
is checked at configure time only.
Same problem with Yosemite config. The workaround with the symlink worked for me as well.
comment:11 Changed 8 years ago by lvankampenhout (Leo van Kampenhout)
Cc: | lvankampenhout added |
---|
comment:12 Changed 7 years ago by kurthindenburg (Kurt Hindenburg)
Cc: | kurthindenburg added |
---|
It works for me now - can you update and try again?
comment:14 Changed 7 years ago by kurthindenburg (Kurt Hindenburg)
Resolution: | → fixed |
---|---|
Status: | new → closed |
ncview should be fixed to use the dylib.