Posted Wed, 29 May 2013 15:36:50 GMT in reply to Sönke Ludwig
On Wed, 29 May 2013 15:22:29 GMT, Sönke Ludwig wrote:
On Wed, 29 May 2013 15:02:53 GMT, Øivind Loe wrote:
Thanks for the quick update. Now I get the following error when trying to run DUB:
$ dub -h
Fatal Error while loading '/usr/lib/x86_64-linux-gnu/libphobos2.so.0.63':
The module 'std.regex' is already defined in 'dub'.
Segmentation fault (core dumped)
Eeek, that looks like a problem with the new shared runtime support in DMD 2.063. I didn't expect that using the shared version of libphobos was going to be the default right from the start... I think that should go as a DMD bug report before 2.063 is actually released (almost too late), as this is probably not a problem specific to DUB.
To fix it, I guess it should suffice to copy "dmd2/linux/lib64/libphobos2.so" from the dmd zip file to "/usr/lib/x86_64-linux-gnu/" and possibly run
ldconfig as root.
Hmm. If so, could you post this, as I don't have the full picture here?
Also, I am actually building everything from source. I already have libphobos2.so
ls /usr/lib/x86_64-linux-gnu/ | grep phobos
I tried to delete the .0.63 ones, but when I run "sudo ldconfig", libphobos2.so.0.63 keeps coming back. If I try to build and run dub without the .0.63 ones there, I get this error:
dub: error while loading shared libraries: libphobos2.so.0.63: cannot open shared object file: No such file or directory