求助,ubuntu 10.04 (386)安装google go出错,我的步骤如下:
1.设置环境变量,terminal下输入以下命令
cd
mkdir go
mkdir bin
export GOROOT=$HOME/go
export GOARCH=386
export GOOS=linux
# env |grep '^GO' 检查环境变量,OK
2.安装C 工具
sudo apt-get install bison gcc libc6-dev ed gawk make
sudo apt-get install python-setuptools python-dev build-essential gcc
sudo easy_install mercurial
hg clone -r release https://go.googlecode.com/hg/ $GOROOT
3.进入目录,编译
cd $GOROOT/src
$ ./all.bash
4.如果没有问题就安装成功了,可我出错了,出错代码如下,求原因及解决方法
cp 8c "/home/mkw/bin"/8c
%%%% making gc %%%%
LANG=C LANGUAGE="en_US.UTF8" bison -v -y -d go.y
cp builtin.c.boot builtin.c
("go.y", line 117) error: unrecognized: %error_verbose
("go.y", line 117) error: Skipping to next %
("go.y", line 168) error: type clash (`' `sym') on default action
("go.y", line 169) error: type clash (`' `sym') on default action
("go.y", line 171) error: type clash (`' `sym') on default action
./mkopnames go.h >opnames.h
make: *** [y.tab.h] Error 1
make: *** Waiting for unfinished jobs....
make: INTERNAL: Exiting with 5 jobserver tokens available; should be 4!
1.设置环境变量,terminal下输入以下命令
cd
mkdir go
mkdir bin
export GOROOT=$HOME/go
export GOARCH=386
export GOOS=linux
# env |grep '^GO' 检查环境变量,OK
2.安装C 工具
sudo apt-get install bison gcc libc6-dev ed gawk make
sudo apt-get install python-setuptools python-dev build-essential gcc
sudo easy_install mercurial
hg clone -r release https://go.googlecode.com/hg/ $GOROOT
3.进入目录,编译
cd $GOROOT/src
$ ./all.bash
4.如果没有问题就安装成功了,可我出错了,出错代码如下,求原因及解决方法
cp 8c "/home/mkw/bin"/8c
%%%% making gc %%%%
LANG=C LANGUAGE="en_US.UTF8" bison -v -y -d go.y
cp builtin.c.boot builtin.c
("go.y", line 117) error: unrecognized: %error_verbose
("go.y", line 117) error: Skipping to next %
("go.y", line 168) error: type clash (`' `sym') on default action
("go.y", line 169) error: type clash (`' `sym') on default action
("go.y", line 171) error: type clash (`' `sym') on default action
./mkopnames go.h >opnames.h
make: *** [y.tab.h] Error 1
make: *** Waiting for unfinished jobs....
make: INTERNAL: Exiting with 5 jobserver tokens available; should be 4!