[rust-dev] Impending change in RPATH behavior when linking to Rust dynamic libraries

Alex Crichton alex at crichton.co
Wed Jul 9 07:02:40 PDT 2014


It is indeed! You'll need to ensure that
`/Users/ilya/Library/Local/Rust/current/lib` is in your
DYLD_LIBRARY_PATH environment variable for OSX.

On Wed, Jul 9, 2014 at 6:25 AM, Ilya Dmitrichenko
<errordeveloper at gmail.com> wrote:
> Is the following error cause by this change?
>
> % rustc -v
> dyld: Library not loaded:
> x86_64-apple-darwin/stage1/lib/rustlib/x86_64-apple-darwin/lib/librustc-4e7c5e5c.dylib
>   Referenced from: /Users/ilya/Library/Local/Rust/current/bin/rustc
>   Reason: image not found
> Trace/BPT trap
>
>
> On 9 July 2014 00:53, Brian Anderson <banderson at mozilla.com> wrote:
>> Yes, it does.
>>
>>
>> On 07/08/2014 04:41 PM, Simon Sapin wrote:
>>>
>>> On 08/07/14 23:57, Brian Anderson wrote:
>>>>
>>>> *Running rustc directly from the build directory will no longer work by
>>>> default*. To do this either set LD_LIBRARY_PATH or pass --enable-rpath
>>>> to the configure script.
>>>
>>>
>>> Does this also apply to running a (nightly) binary distribution from where
>>> the tarball was extracted, without installing it?
>>>
>>
>> _______________________________________________
>> Rust-dev mailing list
>> Rust-dev at mozilla.org
>> https://mail.mozilla.org/listinfo/rust-dev
> _______________________________________________
> Rust-dev mailing list
> Rust-dev at mozilla.org
> https://mail.mozilla.org/listinfo/rust-dev


More information about the Rust-dev mailing list