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".
After compiling the new version did you do: make install
?
/usr/local/eosio/bin/cleos
have made install. It's useless
@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.
@timtide agree after making install i am facing this issues
For cleos just run $ /usr/local/eosio/bin/cleos and it should work. I ran it now on v1.1.0
John Worthley
CryptalEOS
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 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
@shaqk Thank you for helping.....It works for me.
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.
But still unable to include files like asset.hpp and eosio.hpp. How to set the new include path?
what if that I haven't 'make install'?
@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.
Most helpful comment
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