Dynamic lib error on OS X
Running the steps from the README, I get the following error:
$ rustup default nightly-2016-11-25
info: using existing install for 'nightly-2016-11-25-x86_64-apple-darwin'
info: default toolchain set to 'nightly-2016-11-25-x86_64-apple-darwin'
nightly-2016-11-25-x86_64-apple-darwin unchanged - rustc 1.15.0-nightly (d9bdc636d 2016-11-24)
$ cargo install cargo-doc-coverage
Updating registry `https://github.com/rust-lang/crates.io-index`
Compiling rustc-serialize v0.3.22
Compiling matches v0.1.4
Compiling cargo-doc-coverage v1.0.0
Finished release [optimized] target(s) in 17.82 secs
Installing ~/.cargo/bin/cargo-doc-coverage
$ cargo doc-coverage
dyld: Library not loaded: /var/folders/v6/c9ym3wnn4c3c2t3r9sv4v02h0000gn/T/cargo-install.xoojPgCHxgr5/release/deps/libcargo_doc_coverage-98f2da8dcf736427.dylib
Referenced from: ~/.cargo/bin/cargo-doc-coverage
Reason: image not found
error: An unknown error occurred
To learn more, run the command again with --verbose.
And effectively, the cargo-doc-coverage
has a non rpath dependency on this library:
$ otool -L ~/.cargo/bin/cargo-doc-coverage
/Users/guillaume/.cargo/bin/cargo-doc-coverage:
@rpath/librustc_driver-1357b93f.dylib (compatibility version 0.0.0, current version 0.0.0)
[... plenty of other rust libs]
@rpath/librustc_incremental-1357b93f.dylib (compatibility version 0.0.0, current version 0.0.0)
/var/folders/v6/c9ym3wnn4c3c2t3r9sv4v02h0000gn/T/cargo-install.xoojPgCHxgr5/release/deps/libcargo_doc_coverage-98f2da8dcf736427.dylib (compatibility version 0.0.0, current version 0.0.0)
@rpath/librustc_plugin-1357b93f.dylib (compatibility version 0.0.0, current version 0.0.0)
[... plenty of other rust libs]
@rpath/libstd-1357b93f.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1238.0.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 307.4.0)
I am on macOS Sierra if this is of any help.