LinuxQuestions.org
Help answer threads with 0 replies.
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 09-10-2005, 09:47 AM   #1
aaryan72
LQ Newbie
 
Registered: Sep 2005
Posts: 2

Rep: Reputation: 0
Question Not able to Run/find "configure" command


Hi Everybody !

I am a bignner in Linux,I am not able to run the " ./configure " command .
what I am trying to do is to configure PHP with MySQL so that both can work on my system. but when I give the command

#./configure -with-mysql -with-apxs

The message comes configure command not found.

First how and where to locate this configure script/command

and Secondly when I use mysql_connect() in my php code file and when I run that file at command prompt the message comes

PHP Fatal error: Call to undefined function

I think my second problem is related to first
How to solve this problem?
 
Old 09-10-2005, 10:04 AM   #2
blindcoder
ROCK Linux
 
Registered: Dec 2003
Location: Berlin, Germany
Distribution: Crystal ROCK
Posts: 108

Rep: Reputation: 15
Hello.

Firstly, as a beginner it is probably unwise to try and compile something by yourself. It is difficult, time consuming and usually not worth it anyway.
Secondly, which Distribution are you using? SuSE? Fedora? Debian?
Usually your distributions has a PHP package that you can and should use. It also generally comes with mysql support.

In the off-chance that you really need to compile it yourself, get the PHP sources from www.php.net, extract them and change into the directory where they extracted into. There you'll find the configure program.

Hope that helps,
Benjamin
 
Old 09-10-2005, 10:23 AM   #3
aaryan72
LQ Newbie
 
Registered: Sep 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks blindcoder

I am using Fedora Core 3, yes I know that this distribution comes with php and mysql
but after installing I found that mysql was not running properly so I reinstalled mysql on my own by using RPM's So I think now I have to reconfigure php with mysql ,on my system php and Apache server is running very fine and mysql itself is running ok but when I try to connect to mysql through php then the error comes ,so it is very clear that after configuring php with mysql this problem will be solved now could u help me to find the active php directory and to configure it with mysql ,that would be really a great help

Thanks.
 
Old 09-10-2005, 10:28 AM   #4
blindcoder
ROCK Linux
 
Registered: Dec 2003
Location: Berlin, Germany
Distribution: Crystal ROCK
Posts: 108

Rep: Reputation: 15
First you should create a phpfile with this content:
Code:
<?
phpinfo();
?>
Put this file into a directory your webserver knows and open that location with your browser. In there you will find information about how your php was compiled and for which databases it has support for.

If there is no mysql support you can - as described - get the php sources from www.php.net and use them as described above.

Greetings,
Benjamni
 
Old 09-10-2005, 11:16 AM   #5
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
To get MySQL support with PHP on FC3, you'll need to install the php-mysql package.
 
  


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
Shell Script: Find "Word" Run "Command" granatica Linux - Software 5 07-25-2007 07:42 AM
error: "c compiler cannot create executables" when trying to run ./configure fedoraemu Linux - Software 2 04-24-2007 07:43 PM
amarok-svn configure on Gentoo: "can't find designer plugins" ghrellin Linux - Software 1 07-31-2005 11:09 AM
Can't install "glibmm" library. "configure" script can't find "sigc++-2.0&q kornerr Linux - General 4 05-10-2005 02:32 PM
Help,I can't find my USB mouse when I run "kudzu" command in RH9. aeolus Red Hat 0 03-27-2004 09:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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