gcc will not execute, responds with 'no such file or directory' and 'no input file'
UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
gcc will not execute, responds with 'no such file or directory' and 'no input file'
I am running Ubuntu 8.04 LTS on a Dell 1525n laptop. I don't know what I have to do to get gcc to execute. I have several utility programs written in 'C' that I want to compile on my laptop but each invocation yields 'no such file or directory' and 'no input file' error messages.
I have a desktop computer running Fedora 8 with KDE and I have never
encountered problems of this sort. Gcc executes just fine and has starting with the first version of Linux I installed (Red Hat version 5 or something like that as I recall).
I am strongly tempted to replace Ubuntu with Fedora 10 but don't want to run the risk of voiding the warranty on my laptop.
To be candid, I'm not thrilled with Ubuntu but will try to muddle on.
Thanks in advance for any and all advice.
Keith Haslip
Last edited by nckeecho; 01-06-2009 at 08:37 PM.
Reason: don't like the way the tag shows up
To be honest, I don't know exactly what fixed the problem.
I did the following:
1. Confirmed that build-essential was installed.
2. Executed gcc -v which pumped out some output.
3. Invoked gcc with one of my 'c' programs and it worked - I had an executable! That was the resulted I wanted, don't know why gcc worked the last time.
Spoke too soon. This morning Ubuntu informed me updates were available so I installed them. Apparently something in the update package broke gcc so now I have to install the fixes that restore audio and, hopefully, fix my gcc problem. As I stated in an earlier post, I'm becoming less than thrilled with Ubuntu.
Sorry for the delay of my reply. Problem is fixed. Fix probably occurred somewhere along the upgrade path from Ubuntu 8.04 to Xubuntu 16.04 LTS. Once again, thanks to all who responded.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.