GithubHelp home page GithubHelp logo

64 bit compilation issue? about drive HOT 8 OPEN

rakyll avatar rakyll commented on August 19, 2024
64 bit compilation issue?

from drive.

Comments (8)

odeke-em avatar odeke-em commented on August 19, 2024

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.

from drive.

pdemilly avatar pdemilly commented on August 19, 2024

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

from drive.

odeke-em avatar odeke-em commented on August 19, 2024

@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.

from drive.

pdemilly avatar pdemilly commented on August 19, 2024

@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.

from drive.

devsmt avatar devsmt commented on August 19, 2024

go build ./cmd/drive
works for me (go version go1.2.1 linux/amd64)

from drive.

odeke-em avatar odeke-em commented on August 19, 2024

@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!

from drive.

samvise2000 avatar samvise2000 commented on August 19, 2024

@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

from drive.

odeke-em avatar odeke-em commented on August 19, 2024

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.

from drive.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.