Open samvise2000 opened 9 years ago
I think this is more of an issue to do with installing go on your system than with installing Drive. If you built go from source maybe take a look similar issues on StackOverflow raised about cross compilation. Here is an article by Dave Cheney related to the topic: http://dave.cheney.net/2013/07/09/an-introduction-to-cross-compilation-with-go-1-1 Otherwise here is a repo by him to provide help for cross compilation: https://github.com/davecheney/golang-crosscompile/blob/master/crosscompile.bash Hope this can help.
Is that software insallable on linux ubuntu trsuty 64bits. When I try I can see it is downloading the software from the repo and compiling it but it looks like it stop before the building the exec.
Any help appreciated
go get -x github.com/rakyll/drive
cd .
git clone https://github.com/rakyll/drive /home/pascal/gocode/src/github.com/rakyll/drive
cd /home/pascal/gocode/src/github.com/rakyll/drive
git show-ref
cd /home/pascal/gocode/src/github.com/rakyll/drive
git checkout master
cd .
hg clone -U https://code.google.com/p/goauth2 /home/pascal/gocode/src/code.google.com/p/goauth2
cd /home/pascal/gocode/src/code.google.com/p/goauth2
hg tags
cd /home/pascal/gocode/src/code.google.com/p/goauth2
hg branches
cd /home/pascal/gocode/src/code.google.com/p/goauth2
hg update default
cd .
hg clone -U https://code.google.com/p/google-api-go-client /home/pascal/gocode/src/code.google.com/p/google-api-go-client
cd /home/pascal/gocode/src/code.google.com/p/google-api-go-client
hg tags
cd /home/pascal/gocode/src/code.google.com/p/google-api-go-client
hg branches
cd /home/pascal/gocode/src/code.google.com/p/google-api-go-client
hg update default
cd .
git clone https://github.com/cheggaaa/pb /home/pascal/gocode/src/github.com/cheggaaa/pb
cd /home/pascal/gocode/src/github.com/cheggaaa/pb
git show-ref
cd /home/pascal/gocode/src/github.com/cheggaaa/pb
git checkout master
WORK=/tmp/go-build010025712
mkdir -p $WORK/code.google.com/p/goauth2/oauth/_obj/
mkdir -p $WORK/code.google.com/p/goauth2/
cd /home/pascal/gocode/src/code.google.com/p/goauth2/oauth
/usr/lib/go/pkg/tool/linux_amd64/6g -o $WORK/code.google.com/p/goauth2/oauth/_obj/_go_.6 -p code.google.com/p/goauth2/oauth -complete -D _/home/pascal/gocode/src/code.google.com/p/goauth2/oauth -I $WORK ./oauth.go
mkdir -p $WORK/code.google.com/p/google-api-go-client/googleapi/internal/uritemplates/_obj/
mkdir -p $WORK/code.google.com/p/google-api-go-client/googleapi/internal/
cd /home/pascal/gocode/src/code.google.com/p/google-api-go-client/googleapi/internal/uritemplates
/usr/lib/go/pkg/tool/linux_amd64/6g -o $WORK/code.google.com/p/google-api-go-client/googleapi/internal/uritemplates/_obj/_go_.6 -p code.google.com/p/google-api-go-client/googleapi/internal/uritemplates -complete -D _/home/pascal/gocode/src/code.google.com/p/google-api-go-client/googleapi/internal/uritemplates -I $WORK ./uritemplates.go ./utils.go
mkdir -p $WORK/github.com/cheggaaa/pb/_obj/
mkdir -p $WORK/github.com/cheggaaa/
cd /home/pascal/gocode/src/github.com/cheggaaa/pb
/usr/lib/go/pkg/tool/linux_amd64/6g -o $WORK/github.com/cheggaaa/pb/_obj/_go_.6 -p github.com/cheggaaa/pb -complete -D _/home/pascal/gocode/src/github.com/cheggaaa/pb -I $WORK ./format.go ./pb.go ./pb_nix.go ./pb_x.go ./reader.go
mkdir -p $WORK/github.com/rakyll/drive/config/_obj/
mkdir -p $WORK/github.com/rakyll/drive/
cd /home/pascal/gocode/src/github.com/rakyll/drive/config
/usr/lib/go/pkg/tool/linux_amd64/6g -o $WORK/github.com/rakyll/drive/config/_obj/_go_.6 -p github.com/rakyll/drive/config -complete -D _/home/pascal/gocode/src/github.com/rakyll/drive/config -I $WORK ./config.go
/usr/lib/go/pkg/tool/linux_amd64/pack grcP $WORK $WORK/github.com/rakyll/drive/config.a $WORK/github.com/rakyll/drive/config/_obj/_go_.6
cd /home/pascal/gocode/src/code.google.com/p/google-api-go-client/googleapi/internal/uritemplates
/usr/lib/go/pkg/tool/linux_amd64/pack grcP $WORK $WORK/code.google.com/p/google-api-go-client/googleapi/internal/uritemplates.a $WORK/code.google.com/p/google-api-go-client/googleapi/internal/uritemplates/_obj/_go_.6
mkdir -p /home/pascal/gocode/pkg/linux_amd64/github.com/rakyll/drive/
cp $WORK/github.com/rakyll/drive/config.a /home/pascal/gocode/pkg/linux_amd64/github.com/rakyll/drive/config.a
mkdir -p /home/pascal/gocode/pkg/linux_amd64/code.google.com/p/google-api-go-client/googleapi/internal/
cp $WORK/code.google.com/p/google-api-go-client/googleapi/internal/uritemplates.a /home/pascal/gocode/pkg/linux_amd64/code.google.com/p/google-api-go-client/googleapi/internal/uritemplates.a
mkdir -p $WORK/code.google.com/p/google-api-go-client/googleapi/_obj/
mkdir -p $WORK/code.google.com/p/google-api-go-client/
cd /home/pascal/gocode/src/code.google.com/p/google-api-go-client/googleapi
/usr/lib/go/pkg/tool/linux_amd64/6g -o $WORK/code.google.com/p/google-api-go-client/googleapi/_obj/_go_.6 -p code.google.com/p/google-api-go-client/googleapi -complete -D _/home/pascal/gocode/src/code.google.com/p/google-api-go-client/googleapi -I $WORK -I /home/pascal/gocode/pkg/linux_amd64 ./googleapi.go ./types.go
cd /home/pascal/gocode/src/github.com/cheggaaa/pb
/usr/lib/go/pkg/tool/linux_amd64/pack grcP $WORK $WORK/github.com/cheggaaa/pb.a $WORK/github.com/cheggaaa/pb/_obj/_go_.6
mkdir -p /home/pascal/gocode/pkg/linux_amd64/github.com/cheggaaa/
cp $WORK/github.com/cheggaaa/pb.a /home/pascal/gocode/pkg/linux_amd64/github.com/cheggaaa/pb.a
cd /home/pascal/gocode/src/code.google.com/p/goauth2/oauth
/usr/lib/go/pkg/tool/linux_amd64/pack grcP $WORK $WORK/code.google.com/p/goauth2/oauth.a $WORK/code.google.com/p/goauth2/oauth/_obj/_go_.6
mkdir -p /home/pascal/gocode/pkg/linux_amd64/code.google.com/p/goauth2/
cp $WORK/code.google.com/p/goauth2/oauth.a /home/pascal/gocode/pkg/linux_amd64/code.google.com/p/goauth2/oauth.a
cd /home/pascal/gocode/src/code.google.com/p/google-api-go-client/googleapi
/usr/lib/go/pkg/tool/linux_amd64/pack grcP $WORK $WORK/code.google.com/p/google-api-go-client/googleapi.a $WORK/code.google.com/p/google-api-go-client/googleapi/_obj/_go_.6
mkdir -p /home/pascal/gocode/pkg/linux_amd64/code.google.com/p/google-api-go-client/
cp $WORK/code.google.com/p/google-api-go-client/googleapi.a /home/pascal/gocode/pkg/linux_amd64/code.google.com/p/google-api-go-client/googleapi.a
mkdir -p $WORK/code.google.com/p/google-api-go-client/drive/v2/_obj/
mkdir -p $WORK/code.google.com/p/google-api-go-client/drive/
cd /home/pascal/gocode/src/code.google.com/p/google-api-go-client/drive/v2
/usr/lib/go/pkg/tool/linux_amd64/6g -o $WORK/code.google.com/p/google-api-go-client/drive/v2/_obj/_go_.6 -p code.google.com/p/google-api-go-client/drive/v2 -complete -D _/home/pascal/gocode/src/code.google.com/p/google-api-go-client/drive/v2 -I $WORK -I /home/pascal/gocode/pkg/linux_amd64 ./drive-gen.go
/usr/lib/go/pkg/tool/linux_amd64/pack grcP $WORK $WORK/code.google.com/p/google-api-go-client/drive/v2.a $WORK/code.google.com/p/google-api-go-client/drive/v2/_obj/_go_.6
mkdir -p /home/pascal/gocode/pkg/linux_amd64/code.google.com/p/google-api-go-client/drive/
cp $WORK/code.google.com/p/google-api-go-client/drive/v2.a /home/pascal/gocode/pkg/linux_amd64/code.google.com/p/google-api-go-client/drive/v2.a
mkdir -p $WORK/github.com/rakyll/drive/_obj/
mkdir -p $WORK/github.com/rakyll/
cd /home/pascal/gocode/src/github.com/rakyll/drive
/usr/lib/go/pkg/tool/linux_amd64/6g -o $WORK/github.com/rakyll/drive/_obj/_go_.6 -p github.com/rakyll/drive -complete -D _/home/pascal/gocode/src/github.com/rakyll/drive -I $WORK -I /home/pascal/gocode/pkg/linux_amd64 ./changes.go ./commands.go ./diff.go ./init.go ./publish.go ./pull.go ./push.go ./remote.go ./types.go
/usr/lib/go/pkg/tool/linux_amd64/pack grcP $WORK $WORK/github.com/rakyll/drive.a $WORK/github.com/rakyll/drive/_obj/_go_.6
mkdir -p /home/pascal/gocode/pkg/linux_amd64/github.com/rakyll/
cp $WORK/github.com/rakyll/drive.a /home/pascal/gocode/pkg/linux_amd64/github.com/rakyll/drive.a
@pdemilly Looks like it installed it. Did you remember to set your $GOPATH, as well as add your $GOPATH/bin to your $PATH (this is where the drive binary will be saved) ?
After adding this in, run drive
and tell me what output you get.
@odeke-em : That's the issue. I can see that the project was checked out and that the project compiled correctly but no executable were created. If you look at the last line you get a drive.a (a lib I assume) created, but no exec. As expected when I type drive I get command not found. Also in $GOPATH/bin there is nothing.
go build ./cmd/drive works for me (go version go1.2.1 linux/amd64)
@pdemilly makes sense, since you are installing the project's root. The correct way of getting as shown in the README.MD is go get github.com/rakyll/drive/cmd/drive
instead of just from drive, you need to finish up with drive/cmd/drive.
@devsmt good catch!
@odeke-em I finally managed to update go, and now the previous error doesn't appear anymore, thanks. However I still can't install drive. I tried either with the old rakyll and your new repository, but the problem now is something about version control. For example, one of the many output statements of the go get command is: package github.com/odeke-em/drive/cmd/drive imports code.google.com/p/goauth2/oauth imports flag: directory "/home/samvise/go/src/flag" is not using a known version control system
I searched around for this kind of error message, but I couldn't find any solution. Any suggestion?
thanks.
Paolo
To be honest, I think reinstalling go from scratch should help sort this otherwise we shall have to keep going back and forth with patching things up, in which a lot might be missed. You can see how to do so here https://golang.org/doc/install. It should be something like a 6 step process. Hope this helps.
Hello
I have linux 64 bit and go1.3.3 linux/amd64 at the command go get github.com/rakyll/drive/cmd/drive the reply is always go build runtime: linux/amd64 must be bootstrapped using make.bash I couldn't find make.bash anywhere in the source root.
my uname -a: _Linux fangorn 3.17.1 #6 SMP Thu Oct 30 18:39:33 CET 2014 x8664 Intel(R) Core(TM) i3-4000M CPU @ 2.40GHz GenuineIntel GNU/Linux
thanks.
Paolo