eos icon indicating copy to clipboard operation
eos copied to clipboard

Cannot find commands like cleos and eosiocpp in latest release v1.1.0

Open yashbhavsar007 opened this issue 8 years ago • 13 comments

i have added the path to my bashrc file...after that cleos and eosiocpp is running but eosiocpp cannot include hpp files from eosiolib it shows error "fatal error: 'eosiolib/asset.hpp' file not found".

yashbhavsar007 avatar Jul 18 '18 13:07 yashbhavsar007

After compiling the new version did you do: make install ?

mmcs85 avatar Jul 18 '18 15:07 mmcs85

/usr/local/eosio/bin/cleos

djanngau avatar Jul 18 '18 18:07 djanngau

have made install. It's useless

timtide avatar Jul 19 '18 03:07 timtide

@niufj it's ok for cleos but what about eosiocpp i have also given path of it but it cannot able to include hpp files like " eosiolib/asset.hpp " and my contract is in the folder eos/contract and that hpp file is also present in eosiolib folder still not able to include the hpp files.

yashbhavsar007 avatar Jul 19 '18 04:07 yashbhavsar007

@timtide agree after making install i am facing this issues

yashbhavsar007 avatar Jul 19 '18 04:07 yashbhavsar007

For cleos just run $ /usr/local/eosio/bin/cleos and it should work. I ran it now on v1.1.0

John Worthley CryptalEOS

johnworthley avatar Jul 19 '18 19:07 johnworthley

Binaries are no longer under "/usr/local/bin/", presumably to avoid name conflicts. To add the eosio bin folder to your PATH (This is TEMPORARY and only valid for the current terminal session)

export PATH=$PATH:/usr/local/eosio/bin/

To make the PATH change PERMANENT you can add it to your ~/.profile

echo 'PATH=$PATH:/usr/local/eosio/bin/' >> ~/.profile

shaqk avatar Jul 19 '18 23:07 shaqk

@shaqk is right here, binaries are installed in /usr/local/eosio/bin instead of /usr/local/bin now, and the include path is /usr/local/eosio/include. If you are still using the eos binaries inside /usr/local/bin, please use the one inside /usr/local/eosio/bin instead

andriantolie avatar Jul 20 '18 04:07 andriantolie

@shaqk Thank you for helping.....It works for me.

yashbhavsar007 avatar Jul 20 '18 05:07 yashbhavsar007

I have added the path to my .profile and it is still not working.

export PATH=$PATH:/usr/local/eosio/bin/

works fine for the session, but once I exit it the commands no longer work. I have checked my .profile and the path is there.

bluabaleno avatar Jul 21 '18 21:07 bluabaleno

But still unable to include files like asset.hpp and eosio.hpp. How to set the new include path?

rajatch80 avatar Aug 08 '18 13:08 rajatch80

what if that I haven't 'make install'?

hsejin314 avatar Oct 18 '18 02:10 hsejin314

@hsejin314 Then simply specify some part of the path to the program you are trying to run. If your working directory is eos/build, you may type programs/cleos/cleos and it will run.

jgiszczak avatar Oct 18 '18 19:10 jgiszczak