第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

在 Heroku 上使用 Imagemagick 部署 Go 應(yīng)用程序

在 Heroku 上使用 Imagemagick 部署 Go 應(yīng)用程序

Go
達(dá)令說(shuō) 2021-08-23 16:28:41
我一直在嘗試使用imagick部署一個(gè)簡(jiǎn)單的 Go 應(yīng)用程序 這需要Imagemagick. 我已經(jīng)嘗試使用多 buildpack來(lái)安裝 Imagemagick 并運(yùn)行我的應(yīng)用程序。這是我的.buildpack樣子:https://github.com/mcollina/heroku-buildpack-imagemagickhttps://github.com/kr/heroku-buildpack-go.git這是我在 Heroku 上看到的錯(cuò)誤:    Fetching repository, done.Counting objects: 170, done.Compressing objects: 100% (154/154), done.Writing objects: 100% (169/169), 170.13 KiB | 0 bytes/s, done.Total 169 (delta 21), reused 0 (delta 0)-----> Fetching custom git buildpack... done-----> Multipack app detected=====> Downloading Buildpack: https://github.com/mcollina/heroku-buildpack-imagemagick=====> Detected Framework:-----> Installing libpng 1.5.14       Download completed       Installation completed-----> Installing imagemagick 6.8.2-3       Download completed       Installation completed-----> Building runtime environment for imagemagick=====> Downloading Buildpack: https://github.com/kr/heroku-buildpack-go.git=====> Detected Framework: Go-----> Installing go1.3... done-----> Running: godep go install -tags heroku ./...# github.com/gographics/imagick/imagickerror: 'RemoveAlphaChannel' undeclared (first use in this function)error: 'FlattenAlphaChannel' undeclared (first use in this function)godep: go exit status 2 !     Push rejected, failed to compile Multipack appTo git@heroku.com:philosoraptor-me.git ! [remote rejected] master -> master (pre-receive hook declined)error: failed to push some refs to
查看完整描述

2 回答

?
夢(mèng)里花落0921

TA貢獻(xiàn)1772條經(jīng)驗(yàn) 獲得超6個(gè)贊

我最終使用了imageGo 優(yōu)秀標(biāo)準(zhǔn)庫(kù)中的包,而不是依賴(lài)于imagemagick.

這也教會(huì)了我一個(gè)寶貴的教訓(xùn),那就是尋找盡可能接近問(wèn)題的解決方案,而不是嘗試使用我最熟悉的工具來(lái)解決它。


查看完整回答
反對(duì) 回復(fù) 2021-08-23
?
守候你守候我

TA貢獻(xiàn)1802條經(jīng)驗(yàn) 獲得超10個(gè)贊

您是否嘗試過(guò)更新 gographics/imagick 的本地副本并執(zhí)行操作godep update gographics/imagick?錯(cuò)誤error: 'FlattenAlphaChannel' undeclared似乎來(lái)自庫(kù)而不是構(gòu)建包


查看完整回答
反對(duì) 回復(fù) 2021-08-23
  • 2 回答
  • 0 關(guān)注
  • 201 瀏覽
慕課專(zhuān)欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)