Tôi đang cố gắng cài đặt ứng dụng Yesod giàn giáo đầu tiên của mình. Khi tôi chạy cabal-dev install && yesod --dev devel
nó không thành công với ExitFailure 1. Tôi đang sử dụng sqlite cho liên tục.Yesod ExitFailure 1 khi cài đặt ứng dụng giàn giáo
Application.hs:49:44:
No instance for (monad-logger-0.3.1:Control.Monad.Logger.MonadLogger
IO)
arising from a use of `runMigration'
Possible fix:
add an instance declaration for
(monad-logger-0.3.1:Control.Monad.Logger.MonadLogger IO)
In the second argument of `Database.Persist.Store.runPool', namely
`(runMigration migrateAll)'
In a stmt of a 'do' block:
Database.Persist.Store.runPool dbconf (runMigration migrateAll) p
In the expression:
do { manager <- newManager def;
s <- staticSite;
dbconf <- withYamlEnvironment
"config/sqlite.yml" (appEnv conf) Database.Persist.Store.loadConfig
>>= Database.Persist.Store.applyEnv;
p <- Database.Persist.Store.createPoolConfig
(dbconf :: PersistConfig);
.... }
Failed to install testProject-0.0.0
cabal.exe: Error: some packages failed to install:
testProject-0.0.0 failed during the building phase. The exception was:
ExitFailure 1
Tôi đã thử làm theo hướng dẫn ở đây: http://www.yesodweb.com/book/scaffolding-and-the-site-template đã không được quản lý để tìm thấy bất kỳ thông tin liên quan đến vấn đề này. Bất kỳ manh mối nào về những gì còn thiếu?
Đó đã làm nó. Cảm ơn rất nhiều! –