LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-28-2005, 03:31 PM   #1
peryan77
LQ Newbie
 
Registered: Mar 2005
Posts: 6

Rep: Reputation: 0
Question Linux Experts - Error Installing tar file


No one has been able to help me in the software forum so here it goes...

I am a new linux user. We are using Red Hat Enterprise Linux 3.

The error - No rule to make target `/root/php-4.3.2/ext/mime_magic/mime_magic.c', needed by `mime_magic.lo'. Stop.



My objective is to install mime_magic.tar.gz.

My approach..

1-I downloaded the file into /home/pryan directory
2-I then ran the following commands (using sudo so I have root access)

tar zxvf /home/pryan/mime_magic.tar.gz

This extraction seemed to work. Here is the list of files it showed...
mime_magic/
mime_magic/CREDITS
mime_magic/EXPERIMENTAL
mime_magic/TODO
mime_magic/config.m4
mime_magic/mime_magic.c
mime_magic/mime_magic.dsp
mime_magic/php_mime_magic.h
mime_magic/build/
mime_magic/build/mkdep.awk
mime_magic/build/shtool
mime_magic/acinclude.m4
mime_magic/Makefile.global
mime_magic/scan_makefile_in.awk
mime_magic/configure.in
mime_magic/install-sh
mime_magic/mkinstalldirs
mime_magic/missing
mime_magic/aclocal.m4
mime_magic/autom4te.cache/
mime_magic/autom4te.cache/requests
mime_magic/autom4te.cache/output.0
mime_magic/autom4te.cache/traces.0
mime_magic/configure
mime_magic/config.h.in
mime_magic/config.guess
mime_magic/config.sub
mime_magic/ltmain.sh
mime_magic/config.log
mime_magic/.libs/
mime_magic/.libs/mime_magic.so
mime_magic/.libs/mime_magic.lai
mime_magic/.libs/mime_magic.la
mime_magic/include/
mime_magic/Makefile.objects
mime_magic/Makefile.fragments
mime_magic/config.nice
mime_magic/mime_magic.lo
mime_magic/mime_magic.o
mime_magic/Makefile
mime_magic/libtool
mime_magic/modules/
mime_magic/modules/mime_magic.so
mime_magic/.deps
mime_magic/config.status
mime_magic/mime_magic.la
mime_magic/config.h


I then ran the following commands.

cd mime_magic
make install

At this point I get an error message.
[root@wal0575 mime_magic]# make install
make: *** No rule to make target `/root/php-4.3.2/ext/mime_magic/mime_magic.c', needed by `mime_magic.lo'. Stop.

Can someone please help??
 
Old 03-28-2005, 03:34 PM   #2
The_Messiah
Member
 
Registered: Jan 2004
Distribution: Slackware 10.1
Posts: 119

Rep: Reputation: 15
You have to run the command "make" before "make install"
 
Old 03-28-2005, 03:35 PM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
You seem to have missed doing ./configure
Code:
$cd mime_magic
$./configure
$make
#make install
 
Old 03-28-2005, 03:36 PM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 469Reputation: 469Reputation: 469Reputation: 469Reputation: 469
And the command ./configure before make.

Also, please do not post the same question in more than one forum.
 
Old 03-28-2005, 04:11 PM   #5
peryan77
LQ Newbie
 
Registered: Mar 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Unhappy Did not work ????

It still did not work.....??


[root@wal0575 pryan]# cd mime_magic
[root@wal0575 mime_magic]# ./configure
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
./configure: line 1: php-config: command not found
configure: error: Cannot find php-config. Please use --with-php-config=PATH
[root@wal0575 mime_magic]# make
make: *** No rule to make target `/root/php-4.3.2/ext/mime_magic/mime_magic.c', needed by `mime_magic.lo'. Stop.
[root@wal0575 mime_magic]# make install
make: *** No rule to make target `/root/php-4.3.2/ext/mime_magic/mime_magic.c', needed by `mime_magic.lo'. Stop.
 
Old 03-28-2005, 04:14 PM   #6
The_Messiah
Member
 
Registered: Jan 2004
Distribution: Slackware 10.1
Posts: 119

Rep: Reputation: 15
I read his post wrong before I posted my answer. please delete this.

Last edited by The_Messiah; 03-28-2005 at 04:17 PM.
 
Old 03-28-2005, 05:11 PM   #7
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Code:
checking for gcc option to accept ANSI C... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
./configure: line 1: php-config: command not found
configure: error: Cannot find php-config. Please use --with-php-config=PATH
[root@wal0575 mime_magic]# make
make: *** No rule to make target `/root/php-4.3.2/ext/mime_magic/mime_magic.c', needed by `mime_magic.lo'. Stop.
[root@wal0575 mime_magic]# make install
make: *** No rule to make target `/root/php-4.3.2/ext/mime_magic/mime_magic.c', needed by `mime_magic.lo'. Stop.
You know sometimes I wonder if people even read error messages before posting on this site. When configure 'finished' it quite clearly says:
Quote:
./configure: line 1: php-config: command not found
configure: error: Cannot find php-config. Please use --with-php-config=PATH
That "Cannot find php-config" is a clue. My guess would be that it's part of the php package. And this is a guess, but a quick google search for php-config would probably confirm this, or reveal that php-config is an additional package in its own right. Either way the problem is not going to be hard to solve.

Excuse me for the sermon, but if people actually read the output from programs they'd be able to solve about 90% of their own problems before they posted on boards like this. So often you get posts saying "HELP! Error installing!!!" and the first response is nearly always "Did ./configure finish properly? Were there any errors? What did they say?" and the poster says "Hang on, I'll just check..."
 
Old 03-28-2005, 05:39 PM   #8
peryan77
LQ Newbie
 
Registered: Mar 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Snobby Komakino

Yes I read the error, but since this is my first day using linux I did not know how to solve it. And I did google it before posting. Still I did not know how to solve it.

Some people are just snobby....If you don't know how to solve the problem please refrain from posting read the error. Obviously, I did and most people do.
 
Old 03-28-2005, 06:10 PM   #9
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Re: Snobby Komakino

Quote:
Originally posted by peryan77
Yes I read the error, but since this is my first day using linux I did not know how to solve it. And I did google it before posting. Still I did not know how to solve it.

Some people are just snobby....If you don't know how to solve the problem please refrain from posting read the error. Obviously, I did and most people do.
I just told you how to solve the problem - install php.

In fact just to test this I installed PHP from source a few minutes ago and, lo and behold, php-config was installed along with it.
 
Old 03-28-2005, 06:27 PM   #10
mrGenixus
Member
 
Registered: Dec 2004
Location: Colorado, US
Distribution: gentoo, debian, ubuntu live gnome 2.10
Posts: 440

Rep: Reputation: 30
OH, For Crying out loud, if you're using RHEL, use the support contract you're paying for
 
Old 03-28-2005, 06:34 PM   #11
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
You need to install php first, then run the commands I posted above.
 
  


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
configure error while installing tar gz file kitsune55 Linux - Software 1 04-20-2005 09:29 AM
gave wrong syntax for tar as tar -cvzf file file.tgz how to recover the file gautham Linux - General 4 04-13-2005 04:15 AM
Tar gives error when creating a tar file archive davidas Linux - Newbie 10 04-13-2004 01:35 AM
Error while installing package.tar.tar isone Linux - Software 2 11-03-2003 12:58 PM
problem unzipping a tar.bz2 file tar: Error is not recov jyome Linux - Software 4 09-04-2003 02:04 PM


All times are GMT -5. The time now is 10:36 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration