Go丨语言package github.com/Go-SQL-Driver/MySQL: exec: "git": executable file not found in %PATH%解决方法
来源:互联网 发布:计算机云计算 编辑:程序博客网 时间:2024/04/29 16:33
go: missing Git command. See https://golang.org/s/gogetcmd
package github.com/Go-SQL-Driver/MySQL: exec: "git": executable file not found in %PATH%
根据以上报错语句可以看出来是没有找到%PATH%
missing Git command:说明实在执行获取资源命令的时候报的错,那么我们如何解决呢?
1、看你的C:盘有没有GOPATH这个目录 ,没有的话手动创建一个GOPATH目录,
2、创建好后再次执行 go get github.com/Go-SQL-Driver/MySQL 命令,执行完成后查看GOPATH下面是否有src目录和pkg目录 ,
没有的src目录和pkg目录 就需要配置一下环境变量 ,在环境变量里面添加一个变量名为:GOPATH ,变量值为:C:\GOPATH\ 再次执行,可能还是会同样的错误,怎么办呢?
3、以上步骤执行完后,查看C:\GOPATH\src\github.com\Go-SQL-Driver 这个目录下有没有 MySQL目录,没有就创建一个MySQL目录,
并且去https://github.com/Go-SQL-Driver/MySQL 这个地址下载MySQL驱动go语言些的源文件 解压放入MySQL文件夹下面。
4、再次执行 go get github.com/Go-SQL-Driver/MySQL 命令,
查看C:\GOPATH\pkg\windows_386\github.com\Go-SQL-Driver和C:\GOPATH\pkg\windows_amd64\github.com\Go-SQL-Driver目录下面有没有MySQL.a文件,有就ok了。
博文到此结束,感谢您的观看,希望对各位读者有所帮助,如果有什么意见以及建议请在评论留言......
======祝各位读者生活愉快======
- Go丨语言package github.com/Go-SQL-Driver/MySQL: exec: "git": executable file not found in %PATH%解决方法
- 调试go语言出现:exec: "gcc": executable file not found in %PATH%
- exec: "hg": executable file not found in %PATH%
- gogland出现could not launch process: exec: "lldb-server": executable file not found in $PATH错误
- axis2 File "/axis2-web/listSingleService.jsp" not found
- Bison executable not found in PATH by mysql install
- Go实战--go语言操作MySQL数据库(go-sql-driver/mysql)
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- Warning: Bison executable not found in PATH
- File "/login.jsp" not found ;StringMVC+Ibatis的后缀名
- SpringMVC之File "/WEB-INF/jsp/validate/demo2.jsp" not found
- go-sql-driver/mysql 学习
- 【Vegas原创】ORA-01103:"database name *** in control file is not @@@" 解决
- 【Vegas原创】ORA-01103:"database name *** in control file is not @@@" 解决
- CMDTUX_CAT:816: ERROR: Cannot exec, executable file not found
- class not found exception:com.mysql.jdbc.Driver解决方法
- go 语言 command not found or ‘go’ is not recognized
- 解决“The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path”问题
- linux常用操作
- Java丨角色权限控制——数据库设计
- Go丨语言学习笔记--switch
- Go丨语言学习笔记--func
- 深入浅出理解依赖注入
- Go丨语言package github.com/Go-SQL-Driver/MySQL: exec: "git": executable file not found in %PATH%解决方法
- 我的博客即将入驻“云栖社区”,诚邀技术同仁一同入驻。
- 从C#到TypeScrip
- CSS中position的absolute如何相对…
- 桶排序
- CFileFind类遍历查找文件夹下的所有文件,或者指定文件,并使用ofstream输出到制定文本
- Go丨语言对MySQL数据库的增、删、改、查操作
- Java丨DBCP连接池完整配置
- ubuntu14.04下代码托管到github中