| 4 | |
| 5 | EDIT: |
| 6 | |
| 7 | So, in "/opt/local/lib/" I have the library that is old: |
| 8 | {{{ |
| 9 | /opt/local/lib/libgmp.10.dylib |
| 10 | }}} |
| 11 | |
| 12 | But I also have another library, which I suppose is the correct one: |
| 13 | {{{ |
| 14 | /opt/local/lib/libgmp.dylib |
| 15 | }}} |
| 16 | |
| 17 | Before I ran "sudo port -n upgrade --force gmp" I noticed that libgmp.10.dylib had a modification date going back to 2012. The aforementioned command succeeded in forcing gmp to install and, you know what, I was subsequently able to successfully install nettle! |
| 18 | |
| 19 | When I next attempted to install gnutls, I got an unsurprising error: |
| 20 | {{{ |
| 21 | Unable to execute port: can't set "depends_lib": invalid depspec: path:~/.git/nettle/nettle:nettle |
| 22 | }}} |
| 23 | |
| 24 | So, I tried again with tracemode activated -- got the same error. Then I made sure to uninstall the git build and other extra-macports builds I attempted -- same darn error. |
| 25 | |
| 26 | Finally, I surmised that there is some file floating around that points to git, most likely generated by a previous build. So, I updated Macports and then ran "sudo port upgrade outdated" and thankfully it finally let me install gnutls and everything else I had previously failed at installing. |
| 27 | |
| 28 | So, things work now, though I can't say I fully understand how this problem began. While that old gmp library had a modification date from 2012, that doesn't necessarily mean it was added to the directory back then. Even so, I'm confused as to why nettle couldn't differentiate between the newer gmp library, which, according to my own analysis, was in the same directory. |
| 29 | |
| 30 | *shrugs* |
| 31 | |
| 32 | Thank you for your valuable advice, ryandesign. |
| 33 | |
| 34 | |
| 35 | |