IDE正在给出一条错误消息
can't start git: /usr/bin/git但是路径是正确的,它之前是有效的.idea.log包含以下错误:
Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
Run Code Online (Sandbox Code Playgroud) 所以,我正在为我的C++课做功课.我正在g++-5.2.0 -std=c++14 -Wall -Wextra -pedantic <file_name> 终端编写这个声明很长一段时间,因为某些原因我不知道,我收到了这样的信息:Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo..
天真地,我运行了命令sudo g++-5.2.0 -std=c++14 -Wall -Wextra -pedantic hw2pr3.cpp,输入了我的密码,并同意这些条款.
现在,当我尝试编译时g++-5.2.0 -std=c++14 -Wall -Wextra -pedantic hw2pr3.cpp,我得到这样的声明:
ld: can't write output file: a.out for architecture x86_64
collect2: error: ld returned 1 exit status
有人知道怎么办吗?
我现在尝试运行的文件(hw2pr3.cpp)与之前的文件有什么不同:
std::cout << std::setprecision(2) << "You should give away about $" << donate << ", save about $" << save <<", and live …Run Code Online (Sandbox Code Playgroud) $ sudo go get -u github.com/golang/lint/golint
package github.com/golang/lint/golint: cannot download, $GOPATH not set. For more details see: go help gopath
Run Code Online (Sandbox Code Playgroud)
我设置了我的$ GOPATH :(在~/.bash_profile我的Mac上)导出GOPATH = $ HOME/gocode
我的go env:
$ go env
GOARCH="amd64"
GOBIN=""
GOCHAR="6"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/wildcat/gocode"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fno-common"
CXX="g++"
CGO_ENABLED="1"
Run Code Online (Sandbox Code Playgroud)
有什么问题?