Trying to combine ccache and colorgcc. Following link text:
- my g++ is soft link to colorgcc
- ~/.colorgccrc contains line: “g++: ccache /usr/bin/g++”
When running g++ –version receive:
Can't exec "ccache /usr/bin/gcc": No such file or directory at /usr/lib/perl5/5.8.8/IPC/Open3.pm line 246.
open3: exec of ccache /usr/bin/gcc --version failed at /usr/local/bin/colorgcc/gcc line 208
Any ideas how to solve it?
Just came across this same issue. For me, the problem could be solved by carefully setting environment variables:
Then all I had to do was edit colorgcc’s config file (
/etc/colorgcc/colorgccor~/.colorgcc) and tell it to call ccache instead:This of course only works if you have colorgcc’s symlinks installed in
/usr/lib/colorgcc/binand ccache’s symlinks in/usr/lib/ccache/bin– adjust accordingly.