Hello,
I am trying to create a simple website with vibe.d on Linux Mint but I cannot get anything linked with dub. Here is my output:
dave@minty ~/Documents/test $ dub
Checking dependencies in '/home/dave/Documents/test'
Building configuration "application", build type debug
Running dmd (compile)...
Compiling diet template 'index.dt' (compat)...
../../.dub/packages/vibe-d-0.7.16/source/vibe/http/fileserver.d(133): Deprecation: function std.file.dirEntry is deprecated - Please use DirEntry constructor directly instead.
../../.dub/packages/vibe-d-0.7.16/source/vibe/core/file.d(146): Deprecation: function std.file.dirEntry is deprecated - Please use DirEntry constructor directly instead.
../../.dub/packages/vibe-d-0.7.16/source/vibe/core/file.d(146): Deprecation: function std.file.dirEntry is deprecated - Please use DirEntry constructor directly instead.
Linking...
/usr/bin/ld: cannot find -levent
/usr/bin/ld: cannot find -levent_pthreads
/usr/bin/ld: cannot find -lssl
/usr/bin/ld: cannot find -lcrypto
collect2: error: ld returned 1 exit status
--- errorlevel 1
Error: Link command failed with exit code 1
Run 'dub help' for usage information.
My directory structure was created by dub init:
.
├── package.json
├── public
├── source
│ └── app.d
└── views
├── index.dt
└── layout.dt
3 directories, 4 files
package.json contains the following:
dave@minty ~/Documents/test $ cat package.json
{
"name": "test",
"description": "An example project skeleton",
"homepage": "http://example.org",
"copyright": "Copyright © 2000, Your Name",
"authors": [
"Your Name"
],
"dependencies": {
"vibe-d": "~master"
}
}
A quick look in the /home/dave/.dub/packages folder reveals that all the code has been downloaded, but I cannot find any trace of the .a files although, curiously, I do find win-amd64 and win-i386 folders in the vibe-d-master folder that contains .lib and *.dll.
Clearly I have missed something... Any help would be greatly appreciated :)
/Dave