LinuxQuestions.org
Help answer threads with 0 replies.
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, 09:33 PM   #1
nckeecho
LQ Newbie
 
Registered: Apr 2006
Location: Raleigh, North Carolina
Distribution: Fedora 20 desktop, Ubuntu 12.04 LTS laptop
Posts: 9

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 09:37 PM. Reason: don't like the way the tag shows up
 
Old 01-06-2009, 10:02 PM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 4
Posts: 4,305

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

Last edited by {BBI}Nexus{BBI}; 01-07-2009 at 12:22 AM. Reason: Spelling error
 
Old 01-07-2009, 12:18 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,266

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

sudo apt-get build-essential

will get you the most.

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

Original Poster
Rep: Reputation: 0
build-essential is installed, still no joy
 
Old 01-08-2009, 03:04 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,266

Rep: Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661
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 08:17 AM.
 
Old 01-08-2009, 07:53 PM   #6
nckeecho
LQ Newbie
 
Registered: Apr 2006
Location: Raleigh, North Carolina
Distribution: Fedora 20 desktop, Ubuntu 12.04 LTS laptop
Posts: 9

Original Poster
Rep: Reputation: 0
Thumbs up

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

Rep: Reputation: 205Reputation: 205Reputation: 205
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, 12:17 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,266

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

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.
 
  


Reply

Tags
directory, file, gcc, input, ubuntu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 02:06 PM
how to execute a script file? Have file/directory not found error sirius57 Linux - Software 2 11-22-2007 12:43 AM
Using ./ to execute a file in current directory benchmarkman Linux - General 25 06-18-2007 09:48 PM
no such file or directory exists when trying to execute a exe ryedawg Linux - Software 5 12-05-2005 06:42 AM
gcc: ./remote-@REMOTE@.c: No such file or directory gcc: no input files pracslipkerm Linux - Newbie 3 06-15-2005 07:09 AM


All times are GMT -5. The time now is 03:57 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration