2

I am facing an issue while compiling the token contract.

    cd eos/contract/eosio.token

    eosiocpp -o eosio.token.wast eosio.token.cpp

But it shows the following response,

    eosiocpp: command not found

Shall I need to install the compiler for doing the operation. I have installed the EOSIO using the Source.

4
  • 1
    cd to build directory, sudo make install, check the output at the end to see where the binaries were installed, add that to your $PATH. maybe this answer helps too
    – confused00
    Commented Aug 1, 2018 at 8:47
  • @confused00 Issue fixed...Thank you
    – cmr
    Commented Aug 1, 2018 at 9:47
  • Possible duplicate of Can not find <eosiolib/eosio.hpp> when compiling with eosiocpp #2 Commented Aug 1, 2018 at 14:23
  • added an answer so people who come here don't have to search through comments and so the question doesn't show up as having no answer
    – confused00
    Commented Aug 2, 2018 at 11:19

1 Answer 1

0

After building, if you want your binaries installed system-wide, you need to run in the build folder

$ sudo make install 

Afterwards, the script should output where the binaries have been copied, and, if it's not already in the $PATH, you can extend your $PATH to look for them there. Example:

$ export PATH=/usr/local/eosio/bin/:$PATH
$ which eosiocpp
/usr/bin/eosio/bin/eosiocpp
$ eosiocpp -n hello
$ eosiocpp -o hello/hello.wasm hello/hello.cpp

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.