LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


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

Rep: Reputation: 0
Unhappy Help with installing file...


I am having trouble installing this mime_magic.

I have php installed in the /usr/share/doc directory. I don't know if this matters.

I did all of this as root user. Btw, I am using RedHat Linux 3 - Enterprise.

Here is what I did.........

root@wal0575 root]# 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.
[root@wal0575 mime_magic]#
[root@wal0575 mime_magic]#
 
Old 03-28-2005, 06:34 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Blog Entries: 4

Rep: Reputation: 78
Quote:
I have php installed in the /usr/share/doc directory
Are you sure it is not just the php docs in there? Binary programs have no business being in that directory. This may be the root of your problem...

Anyway, it seems the configure script can't find php-config (which if it is in /usr/share/doc is hardly surprising).
Run 'locate php-config' to find it, then try:
./configure --with-php-config=/usr/bin/php-config

replacing '/usr/bin/php-config' with the actual PATH returned by locate.

If php really is in /usr/share/doc I reccomend reinstalling it somewhere sane (/usr/local/ is a good choice, and the default if I remember correctly).

Last edited by bulliver; 03-28-2005 at 06:36 PM.
 
  


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
installing tar file Mickaletto Linux - Newbie 2 11-29-2005 09:22 PM
Installing a '.patch' file tetrahedron SUSE / openSUSE 2 11-06-2005 03:27 PM
Installing a .deb file aznboi12321 Linux - Newbie 3 02-26-2005 08:58 PM
installing DB FILE Arch-Aradiel Linux - Software 1 06-16-2002 08:22 AM
installing DB FILE Arch-Aradiel Linux - Newbie 0 06-15-2002 12:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 12:51 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
Open Source Consulting | Domain Registration