-1

enter image description here

I was about to begin learning about blockchain, DApp and Internet Computer. I was installing the necessary things in my PC. When I began to install dfx, it was successfully installed, but when I asked for the version it said permission denied how to fix this issue?

  • 1
    Do you know how to check its permissions? Try that first. It looks like you don't have read access. – wjandrea Jun 25 '22 at 03:00
  • 1
    Also, beside the point, but why did you add the executable path to the `PATH` variable? Was that in the installation instructions? I ask because the `PATH` should contain only directories, not regular files. – wjandrea Jun 25 '22 at 03:02
  • Firstly, I don't know how to check permissions. Secondly, yes, it was in the installation instructions regarding PATH variable. @wjandrea – Parth Yadav Jun 25 '22 at 03:06
  • 1
    To start, run `ls /usr/local/bin/dfx` and edit the output into the question. LMK when you do. FWIW, on second thought, it doesn't seem to be read access. I'm guessing it's actually missing execute access. – wjandrea Jun 25 '22 at 03:10

1 Answers1

0

enter image description here

Thank you everyone. Happy to inform that the issue was resolved. I just typed:

sudo chmod +x /usr/local/bin/dfx