Thread overview
import vibe.d;
Nov 18, 2023
zhangzhen
Nov 18, 2023
Andrey Zherikov
November 18, 2023

2023/11/18 10:33 137 web.d

D:\Documents>dmd web.d
web.d(3): Error: unable to read module d
web.d(3): Expected 'vibe\d.d' or 'vibe\d\package.d' in one of the followi
ng import paths:
import path[0] = D:\dmd.2.105.3.windows\dmd2\windows\bin....\src\phobos
import path[1] = D:\dmd.2.105.3.windows\dmd2\windows\bin....\src\druntime\import

November 18, 2023

On Saturday, 18 November 2023 at 10:43:39 UTC, zhangzhen wrote:

>

2023/11/18 10:33 137 web.d

D:\Documents>dmd web.d
web.d(3): Error: unable to read module d
web.d(3): Expected 'vibe\d.d' or 'vibe\d\package.d' in one of the followi
ng import paths:
import path[0] = D:\dmd.2.105.3.windows\dmd2\windows\bin....\src\phobos
import path[1] = D:\dmd.2.105.3.windows\dmd2\windows\bin....\src\druntime\import

Vibe is a dub based framework.

https://github.com/vibe-d/vibe.d#installation

-Steve

November 18, 2023

On Saturday, 18 November 2023 at 10:43:39 UTC, zhangzhen wrote:

>

2023/11/18 10:33 137 web.d

D:\Documents>dmd web.d
web.d(3): Error: unable to read module d
web.d(3): Expected 'vibe\d.d' or 'vibe\d\package.d' in one of the followi
ng import paths:
import path[0] = D:\dmd.2.105.3.windows\dmd2\windows\bin....\src\phobos
import path[1] = D:\dmd.2.105.3.windows\dmd2\windows\bin....\src\druntime\import

I guess you do "import vibe.d". It means "d" module in "vibe" package so it looks for "vibe/d.d" file. Do "import vibe" instead - it will look for "vibe.d" file.