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)
Help! :)
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.