Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4573706
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T19:49:20+00:00 2026-05-21T19:49:20+00:00

Trying to combine ccache and colorgcc. Following link text : my g++ is soft

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T19:49:21+00:00Added an answer on May 21, 2026 at 7:49 pm

    Just came across this same issue. For me, the problem could be solved by carefully setting environment variables:

    # Make "g++" command call colorgcc
    export PATH="/usr/lib/colorgcc/bin:$PATH"
    
    # Tell ccache to invoke compilers in /usr/bin
    export CCACHE_PATH="/usr/bin"
    

    Then all I had to do was edit colorgcc’s config file (/etc/colorgcc/colorgcc or ~/.colorgcc) and tell it to call ccache instead:

    g++: /usr/lib/ccache/bin/g++
    gcc: /usr/lib/ccache/bin/gcc
    c++: /usr/lib/ccache/bin/g++
    cc:  /usr/lib/ccache/bin/gcc
    g77: /usr/lib/ccache/bin/g77
    f77: /usr/lib/ccache/bin/g77
    gcj: /usr/lib/ccache/bin/gcj
    

    This of course only works if you have colorgcc’s symlinks installed in /usr/lib/colorgcc/bin and ccache’s symlinks in /usr/lib/ccache/bin – adjust accordingly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to combine Spring with Hibernate using Annotations and I'm getting the following
I'm trying to combine the following three media queries into one: @media only screen
I am trying to combine the words in td and input text entered in
I am trying to combine 11 pdf files into a single pdf file.The following
I'm trying to combine the counts for the following queries: SELECT recipient AS otheruser,
I am trying to combine the following two functions into one portable function: void
Trying to combine data into one line where some fields match. 12345,this,is,one,line,1 13567,this,is,another,line,3 14689,and,this,is,another,6
So I am trying to combine word-break with text-overflow which does work at some
I'm trying to combine the following expressions into a single expression: item => item.sub,
Good afternoon, I've run into some issues trying to combine HTTP caching with Rack::Cache

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.