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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
03-28-2005, 02:31 PM
|
#1
|
LQ Newbie
Registered: Mar 2005
Posts: 6
Rep:
|
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??
|
|
|
03-28-2005, 02:34 PM
|
#2
|
Member
Registered: Jan 2004
Distribution: Slackware 10.1
Posts: 119
Rep:
|
You have to run the command "make" before "make install"
|
|
|
03-28-2005, 02:35 PM
|
#3
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
You seem to have missed doing ./configure
Code:
$cd mime_magic
$./configure
$make
#make install
|
|
|
03-28-2005, 02:36 PM
|
#4
|
Moderator
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
|
And the command ./configure before make.
Also, please do not post the same question in more than one forum.
|
|
|
03-28-2005, 03:11 PM
|
#5
|
LQ Newbie
Registered: Mar 2005
Posts: 6
Original Poster
Rep:
|
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.
|
|
|
03-28-2005, 03:14 PM
|
#6
|
Member
Registered: Jan 2004
Distribution: Slackware 10.1
Posts: 119
Rep:
|
I read his post wrong before I posted my answer. please delete this.
Last edited by The_Messiah; 03-28-2005 at 03:17 PM.
|
|
|
03-28-2005, 04:11 PM
|
#7
|
Senior Member
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938
Rep:
|
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..."
|
|
|
03-28-2005, 04:39 PM
|
#8
|
LQ Newbie
Registered: Mar 2005
Posts: 6
Original Poster
Rep:
|
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.
|
|
|
03-28-2005, 05:10 PM
|
#9
|
Senior Member
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938
Rep:
|
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.
|
|
|
03-28-2005, 05:27 PM
|
#10
|
Member
Registered: Dec 2004
Location: Colorado, US
Distribution: gentoo, debian, ubuntu live gnome 2.10
Posts: 440
Rep:
|
OH, For Crying out loud, if you're using RHEL, use the support contract you're paying for
|
|
|
03-28-2005, 05:34 PM
|
#11
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
You need to install php first, then run the commands I posted above.
|
|
|
All times are GMT -5. The time now is 10:07 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|