I'm trying to compile any smart contract. Let's say the skeleton one. When running eosiocpp -o it can't find the header file for eosio. Not a duplicate of Can not find <eosiolib/eosio.hpp> when compiling with eosiocpp because changing to 16.04 didn't work for me. Experienced this issue on both 18.04 and 16.04.
Also as you can see the programs haven't installed properly so I have to run the executables from where they were built.
cd $EOS_ROOT/build;
sudo make install;
cd contracts;
sudo ./../tools/eosiocpp -n hello2;
sudo ./../tools/eosiocpp -o hello2/hello2.wast hello2/hello2.cpp
yields
hello2/hello2.cpp:1:10: fatal error: 'eosiolib/eosio.hpp' file not found
#include <eosiolib/eosio.hpp>
^~~~~~~~~~~~~~~~~~~~
1 error generated.
Any ideas?