`
ipython
  • 浏览: 289223 次
  • 性别: Icon_minigender_1
  • 来自: 佛山
社区版块
存档分类
最新评论

install google go出错,求助

阅读更多
求助,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 楼 bluky999 2010-06-22  
我只在windows上安装过;linux的没有试过 

相关推荐

Global site tag (gtag.js) - Google Analytics