RejectedSoftware Forums

Sign up

Unable to get started on Fedora/Ubuntu

I am just getting started with vibe.d, but I was not able to get to a "hello world" stage on either Fedora or ubuntu. I posted the stdout below. Please help me get started.

-- on ubuntu , after dub init <proj> -t vibe.d
dub
Performing "debug" build using dmd for x86_64.
vibe-d:utils 0.7.29: target for configuration "library" is up to date.
vibe-d:data 0.7.29: target for configuration "library" is up to date.
vibe-d:core 0.7.29: target for configuration "libevent" is up to date.
vibe-d:http 0.7.29: target for configuration "library" is up to date.
vibe-d:diet 0.7.29: target for configuration "library" is up to date.
vibe-d:mail 0.7.29: target for configuration "library" is up to date.
vibe-d:mongodb 0.7.29: target for configuration "library" is up to date.
vibe-d:redis 0.7.29: target for configuration "library" is up to date.
vibe-d:web 0.7.29: target for configuration "library" is up to date.
vibe-d 0.7.29: target for configuration "libevent" is up to date.
testdub ~master: building configuration "application"...
Linking...
cc: No such file or directory
--- errorlevel 255
dmd failed with exit code 255

--------on Fedora -----------
dub init hello2 -t vibe.d
Package recipe format (sdl/json) [json]:
Name [hello2]:
Description [A simple vibe.d server application.]:
Author name [root]:
License [proprietary]:
Copyright string [Copyright © 2016, root]:
Add dependency (leave empty to skip) []:
Successfully created an empty project in '/root/hello2'.
Package sucessfully created in hello2
[root@fedora-2gb-blr1-01 ~]# cd hello2
[root@fedora-2gb-blr1-01 hello2]# dub
Performing "debug" build using ldc2 for x8664.
vibe-d:utils 0.7.29: target for configuration "library" is up to date.
vibe-d:data 0.7.29: target for configuration "library" is up to date.
vibe-d:core 0.7.29: target for configuration "libevent" is up to date.
vibe-d:http 0.7.29: target for configuration "library" is up to date.
vibe-d:diet 0.7.29: target for configuration "library" is up to date.
vibe-d:mail 0.7.29: target for configuration "library" is up to date.
vibe-d:mongodb 0.7.29: target for configuration "library" is up to date.
vibe-d:redis 0.7.29: target for configuration "library" is up to date.
vibe-d:web 0.7.29: target for configuration "library" is up to date.
vibe-d 0.7.29: target for configuration "libevent" is up to date.
hello2 ~master: building configuration "application"...
.dub/obj/app.o: In function `
D3std6digest3sha20T3SHAVii512Vii160Z3SHA21_sharedStaticCtor3644FNbNiNfZv':
/usr/include/d/std/digest/sha.d:224: undefined reference to `_D3std8internal6digest9sha_SSSE314transformSSSE3FNaNbNiPG5kPxG64hZv'
../.dub/packages/vibe-d-0.7.29/vibe-d/libvibe-d.a(vibe.vibe.o): In function `_D3std6digest3sha20
T3SHAVii512Vii160Z3SHA21sharedStaticCtor3643FNbNiNfZv':
/usr/include/d/std/digest/sha.d:224: undefined reference to `
D3std8internal6digest9shaSSSE314transformSSSE3FNaNbNiPG5kPxG64hZv'
../.dub/packages/vibe-d-0.7.29/vibe-d/libvibe-d
redis.a(vibe.db.redis.sessionstore.o): In function _D3std6digest3sha20__T3SHAVii512Vii160Z3SHA21_sharedStaticCtor3125FNbNiNfZv':<br>/usr/include/d/std/digest/sha.d:224: undefined reference to D3std8internal6digest9shaSSSE314transformSSSE3FNaNbNiPG5kPxG64hZv'
../.dub/packages/vibe-d-0.7.29/vibe-d/libvibe-dweb.a(vibe.web.common.o): In function `D3std6digest3sha20T3SHAVii512Vii160Z3SHA21_sharedStaticCtor3291FNbNiNfZv':
/usr/include/d/std/digest/sha.d:224: undefined reference to `_D3std8internal6digest9sha_SSSE314transformSSSE3FNaNbNiPG5kPxG64hZv'
../.dub/packages/vibe-d-0.7.29/vibe-d/libvibe-d_diet.a(vibe.templ.utils.o): In function `_D3std6digest3sha20
T3SHAVii512Vii160Z3SHA21sharedStaticCtor3140FNbNiNfZv':
/usr/include/d/std/digest/sha.d:224: undefined reference to `
D3std8internal6digest9shaSSSE314transformSSSE3FNaNbNiPG5kPxG64hZv'
../.dub/packages/vibe-d-0.7.29/vibe-d/libvibe-d
http.a(vibe.http.session.o):/usr/include/d/std/digest/sha.d:224: more undefined references to `D3std8internal6digest9shaSSSE314transformSSSE3FNaNbNiPG5kPxG64hZv' follow
collect2: error: ld returned 1 exit status

Re: Unable to get started on Fedora/Ubuntu

On Mon, 24 Oct 2016 04:58:04 GMT, amana wrote:

I am just getting started with vibe.d, but I was not able to get to a "hello world" stage on either Fedora or ubuntu. I posted the stdout below. Please help me get started.

-- on ubuntu , after dub init <proj> -t vibe.d
dub
Performing "debug" build using dmd for x86_64.
vibe-d:utils 0.7.29: target for configuration "library" is up to date.
vibe-d:data 0.7.29: target for configuration "library" is up to date.
vibe-d:core 0.7.29: target for configuration "libevent" is up to date.
vibe-d:http 0.7.29: target for configuration "library" is up to date.
vibe-d:diet 0.7.29: target for configuration "library" is up to date.
vibe-d:mail 0.7.29: target for configuration "library" is up to date.
vibe-d:mongodb 0.7.29: target for configuration "library" is up to date.
vibe-d:redis 0.7.29: target for configuration "library" is up to date.
vibe-d:web 0.7.29: target for configuration "library" is up to date.
vibe-d 0.7.29: target for configuration "libevent" is up to date.
testdub ~master: building configuration "application"...
Linking...
cc: No such file or directory
--- errorlevel 255
dmd failed with exit code 255

Looks like the C/C++ build tools are not installed. Try to install the "gcc" and "g++" packages to see if that fixes the error. The .deb package of DMD should make sure that these are installed. So if you used the .tar.xz archive, I'd recommend to instead use that. If you already used it, this sounds like a bug in the package dependency list.

--------on Fedora -----------

 dub init hello2 -t vibe.d
Package recipe format (sdl/json) [json]: 
Name [hello2]: 
Description [A simple vibe.d server application.]: 
Author name [root]: 
License [proprietary]: 
Copyright string [Copyright © 2016, root]: 
Add dependency (leave empty to skip) []: 
Successfully created an empty project in '/root/hello2'.
Package sucessfully created in hello2
[root@fedora-2gb-blr1-01 ~]# cd hello2
[root@fedora-2gb-blr1-01 hello2]# dub
Performing "debug" build using ldc2 for x86_64.
vibe-d:utils 0.7.29: target for configuration "library" is up to date.
vibe-d:data 0.7.29: target for configuration "library" is up to date.
vibe-d:core 0.7.29: target for configuration "libevent" is up to date.
vibe-d:http 0.7.29: target for configuration "library" is up to date.
vibe-d:diet 0.7.29: target for configuration "library" is up to date.
vibe-d:mail 0.7.29: target for configuration "library" is up to date.
vibe-d:mongodb 0.7.29: target for configuration "library" is up to date.
vibe-d:redis 0.7.29: target for configuration "library" is up to date.
vibe-d:web 0.7.29: target for configuration "library" is up to date.
vibe-d 0.7.29: target for configuration "libevent" is up to date.
hello2 ~master: building configuration "application"...
.dub/obj/app.o: In function `_D3std6digest3sha20__T3SHAVii512Vii160Z3SHA21_sharedStaticCtor3644FNbNiNfZv':
/usr/include/d/std/digest/sha.d:224: undefined reference to `_D3std8internal6digest9sha_SSSE314transformSSSE3FNaNbNiPG5kPxG64hZv'
../.dub/packages/vibe-d-0.7.29/vibe-d/libvibe-d.a(vibe.vibe.o): In function `_D3std6digest3sha20__T3SHAVii512Vii160Z3SHA21_sharedStaticCtor3643FNbNiNfZv':
/usr/include/d/std/digest/sha.d:224: undefined reference to `_D3std8internal6digest9sha_SSSE314transformSSSE3FNaNbNiPG5kPxG64hZv'
../.dub/packages/vibe-d-0.7.29/vibe-d/libvibe-d_redis.a(vibe.db.redis.sessionstore.o): In function `_D3std6digest3sha20__T3SHAVii512Vii160Z3SHA21_sharedStaticCtor3125FNbNiNfZv':
/usr/include/d/std/digest/sha.d:224: undefined reference to `_D3std8internal6digest9sha_SSSE314transformSSSE3FNaNbNiPG5kPxG64hZv'
../.dub/packages/vibe-d-0.7.29/vibe-d/libvibe-d_web.a(vibe.web.common.o): In function `_D3std6digest3sha20__T3SHAVii512Vii160Z3SHA21_sharedStaticCtor3291FNbNiNfZv':
/usr/include/d/std/digest/sha.d:224: undefined reference to `_D3std8internal6digest9sha_SSSE314transformSSSE3FNaNbNiPG5kPxG64hZv'
../.dub/packages/vibe-d-0.7.29/vibe-d/libvibe-d_diet.a(vibe.templ.utils.o): In function `_D3std6digest3sha20__T3SHAVii512Vii160Z3SHA21_sharedStaticCtor3140FNbNiNfZv':
/usr/include/d/std/digest/sha.d:224: undefined reference to `_D3std8internal6digest9sha_SSSE314transformSSSE3FNaNbNiPG5kPxG64hZv'
../.dub/packages/vibe-d-0.7.29/vibe-d/libvibe-d_http.a(vibe.http.session.o):/usr/include/d/std/digest/sha.d:224: more undefined references to `_D3std8internal6digest9sha_SSSE314transformSSSE3FNaNbNiPG5kPxG64hZv' follow
collect2: error: ld returned 1 exit status

This one looks like there might be a problem (maybe a mismatch between the library and the compiler) with the compiler installation. Which version of LDC2 are you using and how did the installation process look like?