RejectedSoftware Forums

Sign up

How do I get vibe.d to work?

Where I have DMD, RDMD, Phobos, and druntime:
/home/me/D/dmd
/home/me/D/phobos
/home/me/D/tools/
/home/me/D/druntime

All the above works, and I can compile and run D programs.

Yesterday I decided to give vibe.d a try, but I haven't been able to get it running. I've tried all the different methods of installation as documented on the site with little success.

Currently I have vibe.d cloned at (v0.7.9):
/home/me/D/vibe.d

I have also run the setup-linux.sh. When I try to run examples/http_server with 'vibe', I get this:

std.md5 is scheduled for deprecation. Please use std.digest.md instead
std.md5 is scheduled for deprecation. Please use std.digest.md instead
Error: function std.typecons.Rebindable!(const(Package)).Rebindable.opAssign (const(Package) another) is not callable using argument types (const(Rebindable!(const(Package)))) const
Error: cannot implicitly convert expression (p.value) of type const(Rebindable!(const(Package))) to Rebindable!(immutable(Package))
Error: function vibe.data.json.Json.opAssign (Json[string] v) is not callable using argument types (const(Json)) const
Error: cannot implicitly convert expression (p.value) of type const(Json) to Json[string]

I'm currently using DMD 2.061.

Re: How do I get vibe.d to work?

On Tue, 20 Nov 2012 21:51:23 -0600, rage.d aaaabbbbcccc@gmail.com
wrote:

I really hope that's your real email address, cause I accidentally sent
something to it...

https://github.com/downloads/D-Programming-Language/dmd/dmd.2.060.zip
That should work out of the box.
It should also be prepackaged to allow running from the extract folder
directly.

I would recommend sticking with that(it can be installed normally as
well.) until
2.061 is actually released. (I'm still running on it from the last
time...)>

Using Opera's revolutionary email client: http://www.opera.com/mail/

Re: How do I get vibe.d to work?

Am 21.11.2012 05:06, schrieb 1100110:

On Tue, 20 Nov 2012 21:51:23 -0600, rage.d aaaabbbbcccc@gmail.com wrote:
I really hope that's your real email address, cause I accidentally sent
something to it...

https://github.com/downloads/D-Programming-Language/dmd/dmd.2.060.zip
That should work out of the box.
It should also be prepackaged to allow running from the extract folder directly.

I would recommend sticking with that(it can be installed normally as well.) until
2.061 is actually released. (I'm still running on it from the last time...)>

Right, on 2.061 there are still has some compilation issues. I'll look into it.

Re: How do I get vibe.d to work?

http://d.puremagic.com/issues/show_bug.cgi?id=9052

Hopefully there will be a fix before the final 2.061 release, because a workaround seems to be quite
involved.

Re: How do I get vibe.d to work?

On Tue, 20 Nov 2012 22:06:59 -0600, 1100110 wrote:

On Tue, 20 Nov 2012 21:51:23 -0600, rage.d aaaabbbbcccc@gmail.com
wrote:
I really hope that's your real email address, cause I accidentally sent
something to it...

No, it's not, sorry.

https://github.com/downloads/D-Programming-Language/dmd/dmd.2.060.zip
That should work out of the box.
It should also be prepackaged to allow running from the extract folder
directly.

I tried dmd.2.60.zip, but now I get bunch of warnings and this error:

...
std.md5 is scheduled for deprecation. Please use std.digest.md instead
Failed: 'dmd' '-g' '-w' '-property' '-I/home/me/D/vibe.d/bin/../source' '-L-levent_pthreads' '-L-levent' '-L-lssl' '-L-lcrypto' '-Jviews' '-Isource' '-v' '-o-' '/tmp/vpm.d' '-I/tmp'

I guess it has something to do with dmd.conf? Where is it supposed to go? Again, my other projects compile fine with 2.060.zip version, and it's just vibe.d that's complaining.

Thanks

Re: How do I get vibe.d to work?

On Thu, 22 Nov 2012 03:47:53 GMT, rage.d wrote:

On Tue, 20 Nov 2012 22:06:59 -0600, 1100110 wrote:

On Tue, 20 Nov 2012 21:51:23 -0600, rage.d aaaabbbbcccc@gmail.com
wrote:
I really hope that's your real email address, cause I accidentally sent
something to it...

No, it's not, sorry.

https://github.com/downloads/D-Programming-Language/dmd/dmd.2.060.zip
That should work out of the box.
It should also be prepackaged to allow running from the extract folder
directly.

I tried dmd.2.60.zip, but now I get bunch of warnings and this error:

...
std.md5 is scheduled for deprecation. Please use std.digest.md instead
Failed: 'dmd' '-g' '-w' '-property' '-I/home/me/D/vibe.d/bin/../source' '-L-levent_pthreads' '-L-levent' '-L-lssl' '-L-lcrypto' '-Jviews' '-Isource' '-v' '-o-' '/tmp/vpm.d' '-I/tmp'

I guess it has something to do with dmd.conf? Where is it supposed to go? Again, my other projects compile fine with 2.060.zip version, and it's just vibe.d that's complaining.

Thanks

Looks like it still picks up the 2.061 version of Phobos (std.md5 is not yet deprecated in 2.060), so dmd.conf sounds likely. Have you tried deleting /etc/dmd.conf?

Re: How do I get vibe.d to work?

On Thu, 22 Nov 2012 07:50:38 GMT, Sönke Ludwig wrote:

Looks like it still picks up the 2.061 version of Phobos (std.md5 is not yet deprecated in 2.060), so dmd.conf sounds likely. Have you tried deleting /etc/dmd.conf?

That did it. Thanks very much.