Skip to content
This repository has been archived by the owner on Jul 13, 2019. It is now read-only.

Cant run built executable #60

Closed
nicrosengren opened this issue Dec 9, 2015 · 6 comments
Closed

Cant run built executable #60

nicrosengren opened this issue Dec 9, 2015 · 6 comments

Comments

@nicrosengren
Copy link

I can run rusti fine using cargo run, but whenever I build it using cargo build, both with and without --release and attempt to run rusti from the target/{debug|release} dir I get the following error:
dyld: Library not loaded: x86_64-apple-darwin/stage2/lib/rustlib/x86_64-apple-darwin/lib/librustc_driver-8cf6ce90.dylib Referenced from: /Users/mitur/gits/rusti/target/debug/./rusti Reason: image not found [1] 61341 trace trap ./rusti

I am building using multirust with nightly currently on rustc 1.6.0-nightly (8864f2c83 2015-12-07)

On osx 10.11.1

I would happily provide any other information that could help.

Thanks

@murarth
Copy link
Owner

murarth commented Dec 10, 2015

@mitur: Are you using multirust? Some googling has turned up what appear to be similar issues when using multirust.

@nicrosengren
Copy link
Author

@murarth Yes I am. Ok, I will check it out.
Thanks for your quick reply, sorry for bringing it up here.

@kindlychung
Copy link
Contributor

kindlychung commented Apr 14, 2016

@paulp found a solution:

multirust run nightly bash && rusti

See here: https://gist.github.com/paulp/dc018b84aeb9f7533322

@agaviria
Copy link

agaviria commented Aug 6, 2016

@murarth @kindlychung Any suggestions for rustup users? There seems to be a shared lib mismatch for the following:

        /usr/lib/libedit.3.dylib (compatibility version 2.0.0, current version 3.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1)
        /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.1.0)

Env: OSX 10.11.6 - rustup nightly 2016-08-01

@wuranbo
Copy link
Contributor

wuranbo commented Sep 8, 2016

@agaviria same as you. OSX and rustup nightly 2016-08-01. Any help? Thank you.

@wuranbo
Copy link
Contributor

wuranbo commented Sep 8, 2016

@agaviria I got

rustup run nightly-2016-08-01 ~/.cargo/bin/rusti 

work

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants