前提・実現したいこと
YesodのStart Guideを実行したときエラーが生じました。
記載通りに進めており、下記サイト(公式)の手順3にてエラーメッセージが生じています。
stack new my-project yesodweb/sqlite && cd my-project stack install yesod-bin --install-ghc --ここでエラー stack build stack exec -- yesod devel
発生している問題・エラーメッセージ
コード
kazuhiro@Kazuhiros-MacBook-Air ~ % stack install yesod-bin --install-ghc appar > using precompiled package auto-update > using precompiled package base-compat > using precompiled package base-orphans > using precompiled package base64-bytestring > using precompiled package basement > using precompiled package blaze-builder > using precompiled package bsb-http-chunked > using precompiled package byteorder > using precompiled package cabal-doctest > using precompiled package base-compat-batteries> using precompiled package cereal > using precompiled package clock > using precompiled package colour > using precompiled package data-default-class > using precompiled package dlist > using precompiled package easy-file > using precompiled package exceptions > using precompiled package file-embed > using precompiled package hashable > using precompiled package hfsevents > using precompiled package ansi-terminal > using precompiled package cookie > using precompiled package hourglass > using precompiled package integer-logarithms > using precompiled package memory > using precompiled package mime-types > using precompiled package async > using precompiled package case-insensitive > using precompiled package ansi-wl-pprint > using precompiled package network > using precompiled package network-byte-order > using precompiled package network-uri > using precompiled package asn1-types > using precompiled package cryptonite > using precompiled package old-locale > using precompiled package http-types > using precompiled package pem > using precompiled package iproute > using precompiled package primitive > using precompiled package psqueues > using precompiled package asn1-encoding > using precompiled package random > using precompiled package old-time > using precompiled package say > using precompiled package semigroups > using precompiled package simple-sendfile > using precompiled package scientific > using precompiled package socks > using precompiled package asn1-parse > using precompiled package split > using precompiled package tagged > using precompiled package tar > using precompiled package th-abstraction > using precompiled package time-compat > using precompiled package attoparsec > using precompiled package time-manager > using precompiled package transformers-compat > using precompiled package unix-compat > using precompiled package unix-time > using precompiled package unliftio-core > using precompiled package unordered-containers > using precompiled package uuid-types > using precompiled package http-date > using precompiled package http2 > using precompiled package optparse-applicative > using precompiled package fsnotify > using precompiled package fast-logger > using precompiled package resourcet > using precompiled package typed-process > using precompiled package unliftio > using precompiled package vault > using precompiled package vector > using precompiled package void > using precompiled package word8 > using precompiled package x509 > using precompiled package zlib > using precompiled package wai > using precompiled package aeson > using precompiled package vector-algorithms > using precompiled package x509-store > using precompiled package streaming-commons > using precompiled package wai-logger > using precompiled package mono-traversable > using precompiled package x509-system > using precompiled package x509-validation > using precompiled package http-client > using precompiled package warp > using precompiled package wai-extra > using precompiled package conduit > using precompiled package tls > using precompiled package conduit-extra > using precompiled package libyaml > using precompiled package connection > using precompiled package tls-session-manager > using precompiled package http-reverse-proxy > using precompiled package project-template > using precompiled package yaml > using precompiled package http-client-tls > using precompiled package warp-tls > using precompiled package yesod-bin > configure yesod-bin > Configuring yesod-bin-1.6.0.6... yesod-bin > build yesod-bin > Preprocessing executable 'yesod' for yesod-bin-1.6.0.6.. yesod-bin > Building executable 'yesod' for yesod-bin-1.6.0.6.. yesod-bin > [1 of 7] Compiling AddHandler yesod-bin > [2 of 7] Compiling Devel yesod-bin > <command line>: can't load framework: Cocoa (not found) Completed 101 action(s). -- While building package yesod-bin-1.6.0.6 (scroll up to its section to see the error) using: /Users/kazuhiro/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_3.0.1.0_ghc-8.8.4 --builddir=.stack-work/dist/x86_64-osx/Cabal-3.0.1.0 build --ghc-options " -fdiagnostics-color=always" Process exited with code: ExitFailure 1
補足情報(FW/ツールのバージョンなど)
似た記事をいくつか散見しましたが、OSが原因かもしれないとのことでした。
もし解決された方や詳しい方がいらっしゃいましたらぜひご教示いただければ幸いです。
「YesodでQuick Startを実行したがエラーが出る」
Cocoa framework not found on macOS Big Sur 11.0.1
https://github.com/digitallyinduced/ihp/issues/543#issuecomment-729824675
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。