LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-06-2009, 08:33 PM   #1
nckeecho
LQ Newbie
 
Registered: Apr 2006
Location: Raleigh, North Carolina
Distribution: Fedora 20 desktop, Ubuntu 12.04 LTS laptop
Posts: 10

Rep: Reputation: 0
Question 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
 
Old 01-06-2009, 09:02 PM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
Do you have the package build-essential installed?

Last edited by {BBI}Nexus{BBI}; 01-06-2009 at 11:22 PM. Reason: Spelling error
 
Old 01-06-2009, 11:18 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to Linux Questions.

sudo apt-get build-essential

will get you the most.

Good luck !
 
Old 01-07-2009, 11:26 AM   #4
nckeecho
LQ Newbie
 
Registered: Apr 2006
Location: Raleigh, North Carolina
Distribution: Fedora 20 desktop, Ubuntu 12.04 LTS laptop
Posts: 10

Original Poster
Rep: Reputation: 0
build-essential is installed, still no joy
 
Old 01-08-2009, 02:04 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Well, try this command : gcc -v
If you get an output, gcc is probably working.

Being no "search machine" , gcc needs to know,
where the file to handle is located.

Either with the command 1) ' cd /home/nckeecho/my_c_programs/ '
( or wherever the source file is located. )
And next 2) ' gcc codename.c ' .

Or the full path : gcc /home/nckeecho/my_c_programs/c_code.c
Please use actual names for directories and files and without
the quote marks.
....

Last edited by knudfl; 01-08-2009 at 07:17 AM.
 
Old 01-08-2009, 06:53 PM   #6
nckeecho
LQ Newbie
 
Registered: Apr 2006
Location: Raleigh, North Carolina
Distribution: Fedora 20 desktop, Ubuntu 12.04 LTS laptop
Posts: 10

Original Poster
Rep: Reputation: 0
Thumbs up

Thanks for all your help. Problem solved.
 
Old 01-08-2009, 07:37 PM   #7
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
Quote:
Originally Posted by nckeecho View Post
Thanks for all your help. Problem solved.
Please post the solution (to help others) if it is not already present in this thread.
 
Old 01-09-2009, 11:17 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
.
Or may be click the blue "Thumb up" in the post
with the solution ??
 
Old 01-10-2009, 01:18 PM   #9
nckeecho
LQ Newbie
 
Registered: Apr 2006
Location: Raleigh, North Carolina
Distribution: Fedora 20 desktop, Ubuntu 12.04 LTS laptop
Posts: 10

Original Poster
Rep: Reputation: 0
Question

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.
 
Old 07-24-2016, 01:04 PM   #10
nckeecho
LQ Newbie
 
Registered: Apr 2006
Location: Raleigh, North Carolina
Distribution: Fedora 20 desktop, Ubuntu 12.04 LTS laptop
Posts: 10

Original Poster
Rep: Reputation: 0
Thumbs up

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.
 
  


Reply

Tags
directory, file, gcc, input, ubuntu



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to execute gcc: No such file or directory lies Linux - Kernel 10 06-26-2008 01:06 PM
how to execute a script file? Have file/directory not found error sirius57 Linux - Software 2 11-21-2007 11:43 PM
Using ./ to execute a file in current directory benchmarkman Linux - General 25 06-18-2007 08:48 PM
no such file or directory exists when trying to execute a exe ryedawg Linux - Software 5 12-05-2005 05:42 AM
gcc: ./remote-@REMOTE@.c: No such file or directory gcc: no input files pracslipkerm Linux - Newbie 3 06-15-2005 06:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 01:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration