相关疑难解决方法(0)

同意Xcode/iOS许可证需要管理员权限,请通过sudo重新运行root操作系统更新后无法运行git

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)

java xcode homebrew intellij-idea macos-sierra

14
推荐指数
1
解决办法
6385
查看次数

编译器g ++无法创建a.out文件?

所以,我正在为我的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)

c++ xcode gcc compiler-errors c++14

5
推荐指数
1
解决办法
3035
查看次数

我设置了我的$ GOPATH,但它不起作用

$ 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)

有什么问题?

go

2
推荐指数
1
解决办法
4378
查看次数

标签 统计

xcode ×2

c++ ×1

c++14 ×1

compiler-errors ×1

gcc ×1

go ×1

homebrew ×1

intellij-idea ×1

java ×1

macos-sierra ×1