I downloaded gcodeclean-cli-1.4.2-linux-x64.zip, extracted it into my Downloads directory where my .nc and .gcode files are. Then I opened a terminal cd to Downloads and typed GCC clean filename.nc and it returned GCC: command not found. Do I have to put the gcodecleaner in a different directory? I am using Linux and the documentation from Github said it is a stand alone application. I usually install apps through “file manager” or “synaptic Package Manager” but I couldn’t find GCC in either. I am sure its my inexperience with the terminal. Any help would be greatly appreciated. It appears from the description to be a very useful utility.
Stephen Roberts wrote:
I downloaded gcodeclean-cli-1.4.2-linux-x64.zip, extracted it into my
Downloads directory where my .nc and .gcode files are. Then I opened a
terminal cd to Downloads and typed GCC clean filename.nc and it returned GCC:
command not found. Do I have to put the gcodecleaner in a different
directory? I am using Linux and the documentation from Github said it is a
stand alone application. I usually install apps through “file manager” or
“synaptic Package Manager” but I couldn’t find GCC in either. I am sure its
my inexperience with the terminal. Any help would be greatly appreciated.
It appears from the description to be a very useful utility.
by default (and for your protection), Linux does not default to automatically
running things in the current directiory
to do so, you would do ./gcc instead of just gcc (capitalization matters), if
you do a ls, you should see the gcc executable there, if not, show us the
results of the ls and we can tell you how to invoke gcc
David Lang
I can see three files (GCC, GCC.pdb, and GcodeClean. pbd) in my Downloads folder. I’ll try moving them to my usr/bin folder then try to invoke ./gcc.
That didn’t work. Before I invoke “administrator permissions” to change usr/bin, I’ll try a different approach and create a dedicated “GcodeClean” folder and move them there. Is that what you meant?
That didn’t work either.
What output do you get if you run:
gcc -h
From a fresh terminal?
Stephen Roberts wrote:
I can see three files (GCC, GCC.pdb, and GcodeClean. pbd) in my Downloads folder. I¢ll try moving them to my usr/bin folder then try to invoke ./gcc.
if you see them in your download folder, then go there and try ./GCC
David Lang
Oh, ohhhhhhhhhh, I’m an idiot
gcc (lower case) is the main compiler for C / C++, I thought there was something that needed manually building.
I’d move the GCC files to a separate directory, then if you run ‘ls -al’ in that directory it’ll show you what permissions are associated with those files. I’d guess GCC isn’t set to executable.
Thanks Dave, I did see that the permissions box “make executable” was not checked. I checked the box and got it to run with the following command “./GCC clean –filename puzzle-2.nc”. Changed the size from 500 kb to 4 kb! I noticed a few comments inserted in the .nc file. I’ll load it and do a dry run to test it.
Ah, glad to hear it! Getting to know command line stuff is well worth it, it opens up worlds of stuff you can do