Giter Club home page Giter Club logo

Comments (13)

adrianreber avatar adrianreber commented on July 24, 2024

Just run make. Doesn't that work for you?

from checkpointctl.

anshitha1706 avatar anshitha1706 commented on July 24, 2024

Yes, I tried it now, but now it saya that the module required go version 1.15. Mine is 1.12. I will try fixing it. Thank you! :)

from checkpointctl.

adrianreber avatar adrianreber commented on July 24, 2024

go.mod says 1.15 because that is the version I am using locally. I am not aware of any special Golang features I am using. So you could try to change that and see if it also works with 1.12.

from checkpointctl.

anshitha1706 avatar anshitha1706 commented on July 24, 2024

I changed the version to 1.15 now. But now the error is as follows:make
go build -buildmode=pie -o checkpointctl -ldflags "-X main.name=checkpointctl"
go build github.com/checkpoint-restore/checkpointctl: copying /tmp/go-build423642275/b001/exe/a.out: open checkpointctl: permission denied
make: *** [Makefile:12: checkpointctl] Error 1

What must be the reason? How do I solve this?

from checkpointctl.

anshitha1706 avatar anshitha1706 commented on July 24, 2024

I also tried using sudo as it says permission denied, it still does'nt work.

from checkpointctl.

adrianreber avatar adrianreber commented on July 24, 2024

Works for me locally on Fedora 33 and in CI on Ubuntu 20.04. Closing this as it seems to be a problem with your setup.

from checkpointctl.

anshitha1706 avatar anshitha1706 commented on July 24, 2024

I git cloned the repository again and then ran the 'make' command again. It worked. But how do I test if the tool is working? I ran checkpoint command on the CLI, but it said command not found.

from checkpointctl.

adrianreber avatar adrianreber commented on July 24, 2024

Run ./checkpointctl

from checkpointctl.

anshitha1706 avatar anshitha1706 commented on July 24, 2024

Done, it shows all the commands and usage of the tool. but running the command still shows output 'command not found'. Is there something I am doing wrong? :(

from checkpointctl.

adrianreber avatar adrianreber commented on July 24, 2024

Done, it shows all the commands and usage of the tool. but running the command still shows output 'command not found'. Is there something I am doing wrong? :(

What you mean by 'running the command'? First you say ' it shows all the commands and usage' and then 'command not found'.

Not sure what your problem is. Does it work or not?

from checkpointctl.

anshitha1706 avatar anshitha1706 commented on July 24, 2024

I mean when I run './checkpointctl' on the CLI, it shows me all the commands and usage. Then when I run 'checkpointctl show' on the CLI, its says 'checkpointctl: command not found'. Is it the right way of using it or am I missing something?

from checkpointctl.

adrianreber avatar adrianreber commented on July 24, 2024

If a binary cannot be found in $PATH you will get 'command not found'. By using ./checkpointctl you are telling your shell exactly where to find the binary: in the current directory. This is the same with all commands you are using. Either you add the location of checkpointctl to your $PATH, or you copy the binary to a location that is already in your search path or you just always use ./checkpointctl.

from checkpointctl.

anshitha1706 avatar anshitha1706 commented on July 24, 2024

Ohh Alright! Thank you so much for your help and patience! :)

from checkpointctl.

Related Issues (19)

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.