Thread overview
[vibe-d/dub] Lin
Sep 07, 2018
MamoKupe
Sep 07, 2018
MamoKupe
Sep 07, 2018
rikki cattermole
Sep 07, 2018
MamoKupe
September 07, 2018
marcinan@marcinan-PC ~/Pulpit/d $ dub init bibe
Package recipe format (sdl/json) [json]: d
Invalid format, "d", enter either "sdl" or "json".
Package recipe format (sdl/json) [json]:
Name [bibe]:
Description [A minimal D application.]:
Author name [Marcin]:
License [proprietary]:
Copyright string [Copyright © 2018, Marcin]:
Add dependency (leave empty to skip) []: vibe-d
Added dependency vibe-d ~>0.8.4
Add dependency (leave empty to skip) []:
Successfully created an empty project in '/home/marcinan/Pulpit/d/bibe'.
Package successfully created in bibe
marcinan@marcinan-PC ~/Pulpit/d $ cd bibe/
marcinan@marcinan-PC ~/Pulpit/d/bibe $ dub run
Performing "debug" build using /usr/bin/dmd for x86_64.
taggedalgebraic 0.10.11: target for configuration "library" is up to date.
eventcore 0.8.35: target for configuration "epoll" is up to date.
stdx-allocator 2.77.2: target for configuration "library" is up to date.
vibe-core 1.4.2: target for configuration "winapi" is up to date.
vibe-d:utils 0.8.4: target for configuration "library" is up to date.
vibe-d:data 0.8.4: target for configuration "library" is up to date.
mir-linux-kernel 1.0.0: target for configuration "library" is up to date.
vibe-d:crypto 0.8.4: target for configuration "library" is up to date.
diet-ng 1.5.0: target for configuration "library" is up to date.
vibe-d:stream 0.8.4: target for configuration "library" is up to date.
vibe-d:textfilter 0.8.4: target for configuration "library" is up to date.
vibe-d:inet 0.8.4: target for configuration "library" is up to date.
vibe-d:tls 0.8.4: target for configuration "openssl" is up to date.
vibe-d:http 0.8.4: target for configuration "library" is up to date.
vibe-d:mail 0.8.4: target for configuration "library" is up to date.
vibe-d:mongodb 0.8.4: target for configuration "library" is up to date.
vibe-d:redis 0.8.4: target for configuration "library" is up to date.
vibe-d:web 0.8.4: target for configuration "library" is up to date.
vibe-d 0.8.4: target for configuration "vibe-core" is up to date.
bibe ~master: building configuration "application"...
Linking...
/usr/bin/ld: cannot find -lssl
/usr/bin/ld: cannot find -lcrypto
collect2: error: ld returned 1 exit status
Error: linker exited with status 1
/usr/bin/dmd failed with exit code 1.

On linux Mint with DUB version 1.11.0, built on Sep  1 2018

September 07, 2018
Whats wrong with vibe-d? It cant be linked?
September 08, 2018
On 08/09/2018 4:20 AM, MamoKupe wrote:
> marcinan@marcinan-PC ~/Pulpit/d $ dub init bibe
> Package recipe format (sdl/json) [json]: d
> Invalid format, "d", enter either "sdl" or "json".
> Package recipe format (sdl/json) [json]:
> Name [bibe]:
> Description [A minimal D application.]:
> Author name [Marcin]:
> License [proprietary]:
> Copyright string [Copyright © 2018, Marcin]:
> Add dependency (leave empty to skip) []: vibe-d
> Added dependency vibe-d ~>0.8.4
> Add dependency (leave empty to skip) []:
> Successfully created an empty project in '/home/marcinan/Pulpit/d/bibe'.
> Package successfully created in bibe
> marcinan@marcinan-PC ~/Pulpit/d $ cd bibe/
> marcinan@marcinan-PC ~/Pulpit/d/bibe $ dub run
> Performing "debug" build using /usr/bin/dmd for x86_64.
> taggedalgebraic 0.10.11: target for configuration "library" is up to date.
> eventcore 0.8.35: target for configuration "epoll" is up to date.
> stdx-allocator 2.77.2: target for configuration "library" is up to date.
> vibe-core 1.4.2: target for configuration "winapi" is up to date.
> vibe-d:utils 0.8.4: target for configuration "library" is up to date.
> vibe-d:data 0.8.4: target for configuration "library" is up to date.
> mir-linux-kernel 1.0.0: target for configuration "library" is up to date.
> vibe-d:crypto 0.8.4: target for configuration "library" is up to date.
> diet-ng 1.5.0: target for configuration "library" is up to date.
> vibe-d:stream 0.8.4: target for configuration "library" is up to date.
> vibe-d:textfilter 0.8.4: target for configuration "library" is up to date.
> vibe-d:inet 0.8.4: target for configuration "library" is up to date.
> vibe-d:tls 0.8.4: target for configuration "openssl" is up to date.
> vibe-d:http 0.8.4: target for configuration "library" is up to date.
> vibe-d:mail 0.8.4: target for configuration "library" is up to date.
> vibe-d:mongodb 0.8.4: target for configuration "library" is up to date.
> vibe-d:redis 0.8.4: target for configuration "library" is up to date.
> vibe-d:web 0.8.4: target for configuration "library" is up to date.
> vibe-d 0.8.4: target for configuration "vibe-core" is up to date.
> bibe ~master: building configuration "application"...
> Linking...
> /usr/bin/ld: cannot find -lssl
> /usr/bin/ld: cannot find -lcrypto
> collect2: error: ld returned 1 exit status
> Error: linker exited with status 1
> /usr/bin/dmd failed with exit code 1.
> 
> On linux Mint with DUB version 1.11.0, built on Sep  1 2018

Nothing wrong with vibe-d. You're just missing the required -dev packages (apt).

September 07, 2018
On Friday, 7 September 2018 at 16:20:40 UTC, MamoKupe wrote:
> marcinan@marcinan-PC ~/Pulpit/d $ dub init bibe
> Package recipe format (sdl/json) [json]: d
> Invalid format, "d", enter either "sdl" or "json".
> Package recipe format (sdl/json) [json]:
> Name [bibe]:
> Description [A minimal D application.]:
> Author name [Marcin]:
> License [proprietary]:
> Copyright string [Copyright © 2018, Marcin]:
> Add dependency (leave empty to skip) []: vibe-d
> Added dependency vibe-d ~>0.8.4
....
> /usr/bin/ld: cannot find -lssl
> /usr/bin/ld: cannot find -lcrypto
> collect2: error: ld returned 1 exit status
> Error: linker exited with status 1
> /usr/bin/dmd failed with exit code 1.
>
> On linux Mint with DUB version 1.11.0, built on Sep  1 2018


sudo apt-get install libssl-dev

Solved linking problem for now.
September 10, 2018
On Friday, 7 September 2018 at 16:37:18 UTC, MamoKupe wrote:
> On Friday, 7 September 2018 at 16:20:40 UTC, MamoKupe wrote:
>> marcinan@marcinan-PC ~/Pulpit/d $ dub init bibe
>> Package recipe format (sdl/json) [json]: d
>> Invalid format, "d", enter either "sdl" or "json".
>> Package recipe format (sdl/json) [json]:
>> Name [bibe]:
>> Description [A minimal D application.]:
>> Author name [Marcin]:
>> License [proprietary]:
>> Copyright string [Copyright © 2018, Marcin]:
>> Add dependency (leave empty to skip) []: vibe-d
>> Added dependency vibe-d ~>0.8.4
> ....
>> /usr/bin/ld: cannot find -lssl
>> /usr/bin/ld: cannot find -lcrypto
>> collect2: error: ld returned 1 exit status
>> Error: linker exited with status 1
>> /usr/bin/dmd failed with exit code 1.
>>
>> On linux Mint with DUB version 1.11.0, built on Sep  1 2018
>
>
> sudo apt-get install libssl-dev
>
> Solved linking problem for now.

Yes, but this should be detected by dub before compilation as a missing dependency not after.
Someone told, that is is possible by adding the right params to dub.sdl/.json.
As an traditional error most "lets try vibe.d"-people see, I would like to ask for changing this.

Regards mt.