Linux - NewbieThis 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.
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.
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.
[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.
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..."
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.