www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - import vibe.d;

reply zhangzhen <zyxbeichen hotmail.com> writes:
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
Nov 18 2023
next sibling parent Steven Schveighoffer <schveiguy gmail.com> writes:
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
Nov 18 2023
prev sibling parent Andrey Zherikov <andrey.zherikov gmail.com> writes:
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.
Nov 18 2023