Skip to content

Instantly share code, notes, and snippets.

@perplexes
Created December 20, 2012 07:20
Show Gist options
  • Save perplexes/4343520 to your computer and use it in GitHub Desktop.
Save perplexes/4343520 to your computer and use it in GitHub Desktop.
brew install go fails (HB 0.9.3, go 1.0.3)
Colins-MacBook-Pro:local colin$ ls -lah /usr/local/opt/go
ls: /usr/local/opt/go: No such file or directory
Colins-MacBook-Pro:local colin$ brew -v install go
Homebrew 0.9.3
==> Downloading http://go.googlecode.com/files/go1.0.3.src.tar.gz
Already downloaded: /Users/colin/Library/Caches/Homebrew/go-1.0.3.tar.gz
/usr/bin/tar xf /Users/colin/Library/Caches/Homebrew/go-1.0.3.tar.gz
==> ./make.bash --no-clean
./make.bash --no-clean
# Building C bootstrap tool.
cmd/dist
# Building compilers and Go bootstrap tool for host, darwin/amd64.
lib9
libbio
libmach
misc/pprof
cmd/addr2line
cmd/cov
cmd/nm
cmd/objdump
cmd/pack
cmd/prof
cmd/cc
cmd/gc
cmd/6l
cmd/6a
cmd/6c
cmd/6g
pkg/runtime
pkg/errors
pkg/sync/atomic
pkg/sync
pkg/io
pkg/unicode
pkg/unicode/utf8
pkg/unicode/utf16
pkg/bytes
pkg/math
pkg/strings
pkg/strconv
pkg/bufio
pkg/sort
pkg/container/heap
pkg/encoding/base64
pkg/syscall
pkg/time
pkg/os
pkg/reflect
pkg/fmt
pkg/encoding/json
pkg/flag
pkg/path/filepath
pkg/path
pkg/io/ioutil
pkg/log
pkg/regexp/syntax
pkg/regexp
pkg/go/token
pkg/go/scanner
pkg/go/ast
pkg/go/parser
pkg/os/exec
pkg/net/url
pkg/text/template/parse
pkg/text/template
pkg/go/doc
pkg/go/build
cmd/go
# Building packages and commands for darwin/amd64.
runtime
errors
sync/atomic
unicode
unicode/utf8
math
unicode/utf16
crypto/subtle
container/list
container/ring
sync
image/color
io
syscall
hash
crypto/cipher
crypto
hash/crc32
crypto/hmac
hash/adler32
crypto/md5
crypto/sha1
crypto/sha256
crypto/sha512
hash/crc64
hash/fnv
bytes
strings
path
time
bufio
text/tabwriter
html
os
strconv
sort
math/rand
math/cmplx
os/signal
path/filepath
container/heap
compress/bzip2
reflect
regexp/syntax
io/ioutil
net/url
os/exec
encoding/base64
crypto/aes
crypto/rc4
encoding/pem
encoding/ascii85
encoding/base32
image
image/draw
image/jpeg
regexp
fmt
encoding/binary
debug/dwarf
crypto/des
index/suffixarray
flag
go/token
text/template/parse
log
encoding/json
encoding/xml
debug/elf
go/scanner
debug/macho
debug/pe
go/ast
compress/flate
math/big
mime
text/template
runtime/debug
encoding/gob
runtime/pprof
text/scanner
cmd/yacc
archive/tar
html/template
go/doc
go/parser
go/printer
crypto/elliptic
crypto/rand
crypto/dsa
go/build
encoding/asn1
crypto/rsa
cmd/cgo
cmd/fix
compress/gzip
archive/zip
cmd/gofmt
cmd/api
crypto/x509/pkix
cmd/vet
compress/lzw
compress/zlib
crypto/ecdsa
database/sql/driver
debug/gosym
encoding/csv
database/sql
encoding/hex
image/gif
image/png
testing
testing/iotest
testing/quick
runtime/cgo
crypto/x509
net
os/user
crypto/tls
net/textproto
log/syslog
mime/multipart
net/mail
net/http
net/smtp
cmd/go
expvar
net/http/pprof
net/http/cgi
net/http/httptest
net/http/httputil
net/rpc
cmd/godoc
net/http/fcgi
net/rpc/jsonrpc
---
Installed Go for darwin/amd64 in /private/tmp/go-nLVi/go
Installed commands in /usr/local/opt/go/bin
The binaries expect /private/tmp/go-nLVi/go to be copied or moved to /usr/local/Cellar/go/1.0.3
==> Cleaning
rmdir: /usr/local/Cellar/go/1.0.3/misc/zsh (empty)
rmdir: /usr/local/Cellar/go/1.0.3/misc/bash (empty)
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
==> Caveats
zsh completion has been installed to:
/usr/local/share/zsh/site-functions
==> Finishing up
ln -s ../../Cellar/go/1.0.3/etc/bash_completion.d/go-completion.bash go-completion.bash
ln -s ../../../Cellar/go/1.0.3/share/zsh/site-functions/_go _go
ln -s ../Cellar/go/1.0.3/lib/time time
ln -s ../Cellar/go/1.0.3/lib/godoc godoc
ln -s ../../Cellar/go/1.0.3 go
Warning: Could not link go. Unlinking...
rm /usr/local/etc/bash_completion.d/go-completion.bash
rm /usr/local/lib/time
rm /usr/local/lib/godoc
rm /usr/local/share/zsh/site-functions/_go
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using `brew link go'
Error: Directory not empty - /usr/local/opt/go
Colins-MacBook-Pro:local colin$ brew -v link go
Homebrew 0.9.3
Linking /usr/local/Cellar/go/1.0.3... ln -s ../../Cellar/go/1.0.3/etc/bash_completion.d/go-completion.bash go-completion.bash
ln -s ../../../Cellar/go/1.0.3/share/zsh/site-functions/_go _go
ln -s ../Cellar/go/1.0.3/lib/time time
ln -s ../Cellar/go/1.0.3/lib/godoc godoc
ln -s ../../Cellar/go/1.0.3 go
Warning: Could not link go. Unlinking...
rm /usr/local/etc/bash_completion.d/go-completion.bash
rm /usr/local/lib/time
rm /usr/local/lib/godoc
rm /usr/local/share/zsh/site-functions/_go
Error: Directory not empty - /usr/local/opt/go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment