Changes on dynamic shared library writing

Rikki Cattermole via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jul 29 20:52:08 PDT 2015


On 30/07/2015 8:27 a.m., tcak wrote:
> On Wednesday, 29 July 2015 at 19:41:14 UTC, tcak wrote:
>> After a long time (Failed many times before), I checked the page
>> http://dlang.org/dll-linux.html again. It shows a message on top
>> saying that preliminary and subject to change.
>>
>> Exactly what changes are expected? Where can I learn about them? I
>> would do tests again with dynamic library writing on Linux.
>
> Still same problem. I copied and pasted the latest codes from that web
> page. A D library, and a D executable is created. I copied the
> libphobos2.so from /usr/lib/x86_64-linux-gnu/libphobos2.so to current
> directory. Changed both of rpath values to "." to indicated local phobos
> library.
>
> Everything works correctly. Then I copied main, dll, and libphobos to
> UbuntuMATE on VirtualBox. It runs on Live CD. Then tried to execute main
> there. Result is as below:
>
> ./app.exe: error while loading shared libraries: libphobos2.so.0.67:
> cannot open shared object file: No such file or directory
>
> This was happening before and still same. I want to develop the app and
> library, and copy it to web server where DMD won't be installed. This is
> creating problem to me.

Did you try renaming "libphobos2.so" to "libphobos2.so.0.67"? After all, 
that is what it is looking for.


More information about the Digitalmars-d-learn mailing list