2017-04-12 64 views
0

我想安裝dbweb來管理MySQL數據庫服務器,但我在cmd中得到這個錯誤。 我試圖在我的項目中安裝它,並得到相同的錯誤。安裝dbweb時沒有遠程存儲庫

C:\Users\NakhodaSokoot>go get github.com/go-xorm/dbweb 
# cd C:\Users\NakhodaSokoot\go\src\github.com\lunny\nodb; git pull --ff-only 
fatal: No remote repository specified. Please, specify either a URL or a 
remote name from which new revisions should be fetched. 
package github.com/lunny/nodb/config: exit status 1 
# cd C:\Users\NakhodaSokoot\go\src\golang.org\x\crypto; git pull --ff-only 
fatal: No remote repository specified. Please, specify either a URL or a 
remote name from which new revisions should be fetched. 
package golang.org/x/crypto/scrypt: exit status 1 
+0

看起來像你的git配置有問題。你可以進入每個回購,確保你在主人,並試圖拉? – JimB

回答

1

它給了那些錯誤,因爲github.com/go-xorm/dbweb對那些其他兩個包依賴它,因爲你有他們在本地也不能更新,但他們沒有這樣的遠程去拿不從那裏知道拉代碼。

嘗試刪除它們:

$ rm -rf $GOPATH\src\github.com\lunny\nodb 
$ rm -rf $GOPATH\src\golang.org\x\crypto 

然後嘗試再次去得到你的包:

$ go get -u github.com/go-xorm/dbweb 

或者去分別得到他們,然後去獲得的dbWeb:

$ go get -u golang.org\x\crypto 
$ go get -u github.com\lunny\nodb 
$ go get -u github.com/go-xorm/dbweb 
+0

感謝您的回答。我刪除了這些文件夾,然後只是colud安裝nodb軟件包。當我使用'$ go get -u golang.org \ x \ crypto' cmd時得到這個錯誤:'在C:\ Users \ NakhodaSokoot \ go \ src \ golang.org \ x \ crypto'中沒有可建立的Go源文件,我試圖安裝dbweb我收到了這個錯誤:'包github.com/go-xorm/core:找不到遠程來源 包github.com/lunny/tango:找不到遠程來源' 我該怎麼辦? – Nscript

+0

'不可建立的Go源文件'不是問題,另一個應該以相同的方式解決,刪除並再次獲得包裹 –

+0

非常感謝。我刪除了所有相關的軟件包,如探戈,xorm和核心以及dbweb,然後逐個安裝它們......問題得到解決。 – Nscript