Giter VIP home page Giter VIP logo

Comments (10)

forgedhallpass avatar forgedhallpass commented on September 15, 2024

Could you please show a screenshot/paste the command and the error you are receiving?

from notify.

njmulsqb avatar njmulsqb commented on September 15, 2024

Could you please show a screenshot/paste the command and the error you are receiving?

image

from notify.

njmulsqb avatar njmulsqb commented on September 15, 2024

notify -version is showing 1.0.0 whereas sudo notify -version is using 0.0.2

from notify.

forgedhallpass avatar forgedhallpass commented on September 15, 2024

Could you also do a which notify and sudo which notify and/or a locate notify? You might have two versions of notify installed on your machine. If you are using go get ... to install, it usually puts under $GOPATH/ but if the environmental variable is not set, it might download it under $HOME/go as a default, hence running the command with sudo could result in a different $HOME directory compared to your user home.

from notify.

njmulsqb avatar njmulsqb commented on September 15, 2024

Could you also do a which notify and sudo which notify and/or a locate notify? You might have two versions of notify installed on your machine. If you are using go get ... to install, it usually puts under $GOPATH/ but if the environmental variable is not set, it might download it under $HOME/go as a default, hence running the command with sudo could result in a different $HOME directory compared to your user home.

root@ubuntu-s-1vcpu: which notify
/root/go/bin/notify
root@ubuntu-s-1vcpu: sudo which notify
/usr/local/bin/notify

from notify.

forgedhallpass avatar forgedhallpass commented on September 15, 2024

Now you need to check whether those are symbolic links and if they point to the same binary or not. I'd assume no, which means that you have two versions installed on your machine.

from notify.

njmulsqb avatar njmulsqb commented on September 15, 2024

Now you need to check whether those are symbolic links and if they point to the same binary or not. I'd assume no, which means that you have two versions installed on your machine.

so how can I now get rid of this issue and just have one copy on my machine that is the latest one?

from notify.

forgedhallpass avatar forgedhallpass commented on September 15, 2024

You can run /root/go/bin/notify -version and then /usr/local/bin/notify -version to see which one is the old version.
You can use ls -l /usr/local/bin/notify to see where does it point. If that is the old version then you can delete it, together with where it points.

You can also try GO111MODULE=on go get -u -v github.com/projectdiscovery/notify/cmd/notify, both with and without sudo, or go clean -i github.com/projectdiscovery/notify/cmd/notify... and reinstall again with the command above.

from notify.

njmulsqb avatar njmulsqb commented on September 15, 2024

You can run /root/go/bin/notify -version and then /usr/local/bin/notify -version to see which one is the old version.
You can use ls -l /usr/local/bin/notify to see where does it point. If that is the old version then you can delete it, together with where it points.

You can also try GO111MODULE=on go get -u -v github.com/projectdiscovery/notify/cmd/notify, both with and without sudo, or go clean -i github.com/projectdiscovery/notify/cmd/notify... and reinstall again with the command above.

Hi, I have removed both the installation with rm -rf now after again installing notify, sudo notify is saying that command is not found.

from notify.

forgedhallpass avatar forgedhallpass commented on September 15, 2024

You should be able to find it under $HOME/go/bin/notify or $GOPATH/bin/notify. If you want it to be usable from anywhere, you'll have to create a symbolic link ln -s <the_path_to_notify> /usr/local/bin/notify.

from notify.

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.