Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Installing Go from source on Ubuntu 14.04

133 views
Skip to first unread message

Peter McAtominey

unread,
Jan 19, 2015, 8:14:35 AM1/19/15
to golan...@googlegroups.com
Hi,

I have installed Go from source on Mac and my other Ubuntu 14.04 machine but this time it's not working, the error when running all.bash is:

/home/peter/go/src/liblink/anames9.c:6:29: fatal error: ../cmd/9l/9.out.h: No such file or directory
 #include "../cmd/9l/9.out.h"
                                          ^
compilation terminated.
go tool dist: FAILED: gcc -Wall -Wstrict-prototypes -Wextra -Wunused -Wno-sign-compare -Wno-missing-braces -Wno-parentheses -Wno-unknown-pragmas -Wno-switch -Wno-comment -Wno-missing-field-initializers -Werror -fno-common -ggdb -pipe -Wuninitialized -O2 -fmessage-length=0 -c -m64 -I /home/peter/go/include -I /home/peter/go/src/liblink -o $WORK/anames9.o /home/peter/go/src/liblink/anames9.c

I've got  gcc and libc6-dev installed as required by https://github.com/golang/go/wiki/InstallFromSource#install-c-tools

Konstantin Khomoutov

unread,
Jan 19, 2015, 8:35:36 AM1/19/15
to Peter McAtominey, golan...@googlegroups.com
On Mon, 19 Jan 2015 05:14:35 -0800 (PST)
Peter McAtominey <mcatom...@gmail.com> wrote:

> I have installed Go from source on Mac and my other Ubuntu 14.04
> machine but this time it's not working, the error when running
> all.bash is:
[...]

You forgot to specify what precise version of Go you're trying to build.

Peter McAtominey

unread,
Jan 19, 2015, 8:38:41 AM1/19/15
to golan...@googlegroups.com, mcatom...@gmail.com
Sorry, I'm trying to build 1.4.1, I ran git checkout go1.4.1 before attempting to build.

Dave Cheney

unread,
Jan 19, 2015, 8:45:58 AM1/19/15
to golan...@googlegroups.com
Looks like you checked out master, not the release-go1.4.1 branch. Check that you have removed any generated liblink/anames*.c files then it should build fine.

Peter McAtominey

unread,
Jan 19, 2015, 9:14:28 AM1/19/15
to golan...@googlegroups.com
Thanks Dave, I was just relying on git status to check if anything had been left, it's built now.
Reply all
Reply to author
Forward
0 new messages