Link to a binary file => Error! [solved]

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
codepilot

Link to a binary file => Error! [solved]

Post by codepilot »

Hello,

I'm having problems to replace the link of my cc to colorgcc.

When I do

Code: Select all

sudo ln -s /usr/bin/colorgcc cc
and then try to run cc using

Code: Select all

cc
the system answers

Code: Select all

colorgcc: Error; cc is a symlink to colorgcc. Aborting.
What is wrong with my link, where is my mistake?
A hard link doesn't work as well.

~cp
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
codepilot

Re: Link to a binary file => Error!

Post by codepilot »

yikes - my fault, again.
The colorgcc script itself produces this message when executed via a link to g++, gcc, cc, and some more ;(...
Locked

Return to “Beginner Questions”