2

Is there an alias or PATH that we need to set for eosio-cpp to be accessible?

Here's what I'm seeing:

~/eos/contracts/youvote $ eosio-cpp --help eosio-cpp: command not found

I can access it via:

~/eos/contracts/youvote $ sudo /usr/local/eosio.cdt/bin/eosio-cpp --help [sudo] password for user: OVERVIEW: eosio-cpp (Eosio C++ -> WebAssembly compiler) USAGE: eosio-cpp [options] <input file> ...

But, it's dangerous to run sudo for this script. Should the executable eosio-cpp be placed in a different folder or called some other way without sudo?

Thanks -Gunnar

1
  • I'm on Ubuntu 18.04 Commented Sep 23, 2018 at 14:49

2 Answers 2

2

I needed to add read write permission to the eosio-cpp folder for non-sudo access.

$ sudo chmod 755 /usr/local/eosio.cdt/bin/eosio-cpp

and that solved it.

0

According to this link, in order to make tools accessible anywhere, you have to run:

sudo ./install.sh
2
  • 1
    Thanks, kolkhi. I found out that I had to add read and execute permissions to the eosio-cpp folder using `$ sudo chmod 755 /usr/local/eosio.cdt/bin/eosio-cpp' Commented Sep 24, 2018 at 14:09
  • updated doc link developers.eos.io/eosio-home/docs Commented Feb 6, 2019 at 8:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.