Avr g++:error: no such file or directory

Hi

I am totally stuck!!
Win10.

When I uninstalled Arduino to install the upgrade there was files that cannot be removed...I tried everything possible from this forum to various other sources and NOTHING can remove the files.

I installed ARDUINO1.8.5 and just click on ignore when accsess to a file was denied.

After the new installation ,i open BLINK and compile failed with ...AVR G++: ERROR: NO SUCH FILE OR DIRECTORY.

The 4 file that cannot be removed:
ar.exe
id.exe
cc1plus.exe
collect2.exe

What I did:

1.uninstall

2.delete ARDUINO15 in local

3.install TOOK OWNERSHIP.....delete...access denied

4.run wise registry.....delete....access denied

5.CMD prompt-mirror empty folder with ROBOCOPY EMPTY .....access denied

6.Open each folder that still contains files tried to manually delete.......accsess denied

7.CMD prompt-rd\.\c:users.....as per sample and all variations i could find....accsess denied

8.Change ownership permissions with windows......access denied

The only option for me is to re install WINDOWS and forget that ARDUINO ever excisted.

Unless a very clever person does have a solution.

Just use the "Windows ZIP file for non admin install" download link for the Arduino IDE. Then you don't need to worry about installing it. Just unzip the downloaded file and move the unzipped folder to any convenient location on your hard drive.

Been there done it!!!

I did use the non admin install and unzipped to my DESKTOP the I decided to delete the folder and rather put the files in programfiles..arduino same as my other pc.

This folder can also not be deleted ,there is a few files inside that denies access.

So then I used the install version to get the files in program files (x86) and ARDUINO worked.

I tested to see if the installed version can be uninstalled.....and it does not uninstall all files.

I am now stuck with a few files on my desktop and a few files in program files and I connot re install!!!

Sure I can do another non admin install in a separate folder but if that does not work I have all this arduino clutter all over my pc.

Hi

My post ''avr g++'' file not found was viewed 27 times and 2 reply's (one is my own).

Wow not bad for hundreds of arduino users.(could be millions world wide)

I unzipped the non admin install to a USB memory stick and copy my library to the library folder.
Open the arduino icon from the stick and then open any of my code files.

The code compiles without any errors and even download to the pcb via USB.

The only arduino software on my pc is the USB driver and my sketches!

O....and the little useless files that did not uninstall from arduino that cannot be deleted

Not sure what you are trying to say ?

We are all just users like yourself.
Maybe your original question was not clear enough ?
Maybe it was too complex ?

Hundreds of reasons it could have gone by other people including that it was a busy day and your question may have slipped over to page 2 or 3 where most dont go !

Files not deleting could be one of a thousand reasons from simple user permissions to a virus or similar !
The fact that you had some files not deleting points to an OS specific issue and NOT to an IDE issue.

I have installed and updated several versions of the IDE on several different computers without ever seeing any of the problems that you seem to find so easily. So I couldn't help.

Glad you found something that works for you though.

Steve

I also installed over a long period the following programs on the same pc and could easy uninstall them to re install a upgrade.

Acrobat reader

Microsoft office

Winavr(programmers notepad)

Atmel studio

RADIO PROGRAMS:

Kenwood

Motorola

Mototurbo

Icom

Hytera

Vertex ... mention only a few that comes to mind.

I did not even know that there could be a problem to remove all the files after a uninstall.

Until now when I uninstall Arduino and want to install a upgrade.

By the way my post is still on page 1 and you did not read it I did mention my post ..AVR G++ FILE NOT FOUND...not clear enough....to complex...YOU DID NOT READ THAT POST!!!

I couldn't find a post "My post ''avr g++'' file not found", but I did find this

The following programs leave a lot of remnants...

Acrobat reader (BIG TIME))
Microsoft office (BIG TIME)
Atmel studio (minor remnants)

Not to mention many many more.

For the most part many program installers do not always remove ALL references to an installed program that might have been installed. Most computer literate people know this. Its also why there are so many small programs that will deal with that crud for you.

I am attaching a PDF that should help clean up your computer.
Tried and tested over time.
If that does not delete the crud then you have OTHER issues as I already referred to.
Those are windows based instructions but I gather you have multiple OS to deal with.

I certainly wont read a post if similar ones are plastered all over the forum or I am shouted at.

CLEAN UP BEFORE INSTALLING ANOTHER COPY OF THE IDE OR ARDUINO CREATE.pdf (345 KB)

mikedb:
Hi

My post ''avr g++'' file not found was viewed 27 times and 2 reply's (one is my own).

Wow not bad for hundreds of arduino users.(could be millions world wide)

I unzipped the non admin install to a USB memory stick and copy my library to the library folder.
Open the arduino icon from the stick and then open any of my code files.

The code compiles without any errors and even download to the pcb via USB.

The only arduino software on my pc is the USB driver and my sketches!

O....and the little useless files that did not uninstall from arduino that cannot be deleted

Your post about that avr g++ topic was made at 5:43 am today.
http://forum.arduino.cc/index.php?topic=538400.msg3669542#msg3669542

This current rant of yours was posted at 7:31 am today.
Do you think we can't tell what you have been posting? ? ?

Also, another prior rant of yours was posted just 3 days ago.
It is ---> Nano on Windows XP cannot find USB2.0-Serial driver - #7 by mikedb - IDE 1.x - Arduino Forum

I leave it to others to judge your capability or lack thereof.

.

@mikedb, do not cross-post. Threads merged.

mikedb:
Unless a very clever person does have a solution.

Reboot then try to remove the files.

If that fails, get better quality anti-malware software. That is very likely what is holding the files open (different kind of "access denied").

I am not trying to offend any body or shouting ,to type in capital letters just high light the key words.

Then I should ask why you shout ALL , PDF , OTHER and OS as in the previous reply?

I don't see shouting,only high lighted keywords.

I do agree that other software leave small pieces of files behind but the files is not locked and a newer version will install to the same directory.

The IT guys at my work( on the internet side ) also tried to remove the files ,they have done it so many times before with other software.

I did download that pdf file from a previous post ,tried every thing.

My list of things that I tried in the beginning of this post originates from that pdf.

I will open the pdf (got it on my pc) and slowly go through every line again.

Thanks for replying to my shouting.

Get your own laptop.

Or demand local administrator rights on the work laptop.

To: ieee488

This is my own laptop, i took it to work to get some help.

Any administrator rights in any form even ''take ownership'' that we tried failed even the dos command ones.

When I run Wise Registry Cleaner a few issues were resolved but 3 remained unresolved.

Then McAfee also resolved a few issues and 5 remain unresolved.

Avast resolved every issue that remained and reported 100% fixed.

Then I could remove all the files in both desktop and program files that access was denied.

The solution for me was to run multiple anti virus programs, each program resolves only certain issues.

Thanks....again....again.

Please do install Arduino on your pc's!

At this point, I would re-install Windows.
That stinks because you will have locate the drivers.
And then the Windows updates.
On my slow internet, it takes hours.

This is why having a hard drive image has saved me at least twice.

Having multiple anti-virus software is not a good thing.
They step on each others toes.

Lots of "its Arduino's fault" but the rest of us are not seeing it !

I do this for free and wont work with somebody who cant tell the difference between emphasis on a word and shouting.

As for IT guys...I know some good ones and some I would not let near a keyboard.
Have multiple windows boxes here specifically for Arduino testing and have not seen this type of problem despite my wilful mistreatment of these boxes with IDE's in and out.
Yes I do hold a few IT tickets myself and have done big roll outs for "Home Depot" etc. so I have a little understanding of computers having been first published in the early 70's for a computer program.

Locked files tend to be an indicator of either a low level access eg plain Jane user or something much worse. (does that sound like a broken record in here)

Putting my money on something worse.
I have a step through for that too but it would probably be wasted here.

Im OUT pending the OP calming down.

Your IT person will tell you that running AV etc within the scope of the the machine itself is no guarantee of a clean machine.

If I come across a known infected machine I boot from a special disc that has all the cleaning tools I am likely to need. That disc is also write protected to prevent back infection.

Yes that's how pros do it !
Even a copy of "Hirens" or similar would suffice.

Failing that there is another method that involves using ONLINE security software that cannot be tampered with.

But as least we know it was NOT Arduinos fault in any way whatsoever !