3

http://vibed.org/docs#first-stepsに記載されているように、vibe.d をダブで実行しようとしています。それに続いて、次のような dub.json が生成されました。

{
 "name": "accounts",
 "description": "A simple vibe.d server application.",
 "copyright": "Copyright © 2014, aaron",
 "authors": ["aaron"],
 "dependencies": {
    "vibe-d": ">=0.7.17"
 },
 "versions": ["VibeDefaultMain"] 
}

を実行するdubと、リンク エラーが発生します。

Linking...
/usr/bin/ld: cannot find -levent
/usr/bin/ld: cannot find -levent_pthreads
collect2: ld returned 1 exit status
--- errorlevel 1

libevent をbrew install libeventでインストールしようとしましたが、フィールドを dub.json に追加して少し遊んでみまし"dflags_dmd"たが、正しくリンクできないようです。

助けてくれてありがとう!

4

1 に答える 1