LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-12-2006, 03:25 PM   #1
me!
Member
 
Registered: Feb 2006
Distribution: Ubuntu Feisty, BeaFanatIX
Posts: 36

Rep: Reputation: 15
Make problem with installing foremost


Hello:

I found that my usbdrive had a trash bin on it and several times tried to delete it unsuccessfully. When I did manage it deleted the entire contents of the drive!

I'm going to try and get it back using 'foremost'. However, I'm already having problems trying to install foremost.

I have uncompressed the foremost tar but when I try and install using make, I get the following error:
[root@localhost foremost-1.1]# make
gcc -Wall -O2 -DVERSION=\"1.1\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c main.c
make: gcc: Command not found
make: *** [main.o] Error 127

I just don't get the problem. The Makefile is there in the folder ...

me!
 
Old 07-12-2006, 03:33 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 273Reputation: 273Reputation: 273
It sounds like either you haven't installed the gcc compiler or it is not in your path. Try whereis gcc and see if it is installed. Mine is in /usr/bin.
 
Old 07-13-2006, 03:30 AM   #3
me!
Member
 
Registered: Feb 2006
Distribution: Ubuntu Feisty, BeaFanatIX
Posts: 36

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pljvaldez
Try whereis gcc and see if it is installed. Mine is in /usr/bin.
It gives:
gcc: /ur/libexec/gcc

Is it in the wrong place? And what is it? Part of 'make'?

Thanks,

me!
 
Old 07-13-2006, 11:08 AM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 273Reputation: 273Reputation: 273
make is an script that basically calls gcc, which is the actual compiler that turns the text files into a binary program, and tells gcc what files and options to include when compiling. So you have to have gcc installed to have the makefile run.

Okay, so now what is the output of echo $PATH. I'm sure pretty sure you won't see /usr/libexec. So what you can do temporarily is type PATH=$PATH:/usr/libexec. If you want it to be permanent, you'll have to add this line to the end of your ~/.bash_profile
Code:
export PATH=$PATH:/usr/libexec
 
Old 07-16-2006, 02:26 PM   #5
me!
Member
 
Registered: Feb 2006
Distribution: Ubuntu Feisty, BeaFanatIX
Posts: 36

Original Poster
Rep: Reputation: 15
what is the output of echo $PATH

/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin

Is gcc in the wrong place? It is an almost fresh install from a commercially produced set :-(

me!
 
Old 07-24-2006, 06:49 AM   #6
me!
Member
 
Registered: Feb 2006
Distribution: Ubuntu Feisty, BeaFanatIX
Posts: 36

Original Poster
Rep: Reputation: 15
I tried:

PATH=$PATH:/usr/libexec

Nothing changed after I did this. So I did Export PATH=$PATH:/usr/libexec as root. The error message when I did 'make' then changed to:

make: *** No rule to make target 'main.o', neede by foremost. Stop.

Any ideas?

Mystified
 
  


Reply


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
Recovering Data Using Foremost and Knoppix Nuvious Linux - Security 1 05-17-2006 04:36 PM
Recoveing Data Using Foremost and Knoppix Nuvious Linux - Software 1 05-17-2006 08:54 AM
LXer: Foremost for Data Recovery LXer Syndicated Linux News 0 12-23-2005 12:31 AM
installing make - problem terry.trent Linux - Newbie 3 08-07-2004 05:47 PM
make dep,make clean,make bzImage problem Babba Linux - Newbie 2 01-08-2003 03:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:00 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