I'd like to also know the answer to your problem.  I get the same error.

I have a plain 7.0 RH installation, Apache from the install of RH, PHP4 from
the RH and mysql that I compiled.  The problem I believe is that php does not
know what to do with mysql.  I'm trying to get it working with recompiling php
but I'm not sure what I need to do to get mysql.so used by php.

I have tried from the  README.SELF-CONTAINED-EXTENSIONS

  Just to show you how easy it is to create a self-contained
  extension, we will convert an embedded extension into a
  self-contained one. Install PHP and execute the following
  commands.

     $ mkdir /tmp/newext
     $ cd /tmp/newext

  You now have an empty directory. We will copy the files from
  the mysql extension:

     $ cp -rp php-4.0.X/ext/mysql/* .
  It is time to finish the module. Run:

     $ phpize

  You can now ship the contents of the directory - the extension
  can live completely on its own.

  The user instructions boil down to

     $ ./configure \
            [--with-php-config=/path/to/php-config] \
            [--with-mysql=MYSQL-DIR]
     $ make install

  The MySQL module will either use the embedded MySQL client
  library or the MySQL installation in MYSQL-DIR.

What to do after that is a mystery to me...

When I try to configure php like below I get that error.
./configure --with-mysql
./configure: whether: command not found
./configure: 6: Bad file descriptor
./configure: 5: Bad file descriptor
./configure: line 746: syntax error near unexpected token `shared"'
./configure: line 746: `shared"'

thanks,
Ken

Fred Ross wrote:

> I wasn't clear in my earlier message: I configured PHP to use MySQL
> ('configured MySQL') with --with-mysql.
>
> Fred Ross
> s.k.a. Philippe de Minerve
> a.k.a. Sgath
> http://www.ls.net/~fred/
>
> On Mon, 5 Jun 2000, Sam Masiello wrote:
>
> > For starters, wouldn't you want PHP configured with "-with-mysql" and not
> > MySQL?  Why would you do a "-with-mysql" when configuring MySQL?
> >
> > Sam Masiello
> > System Analyst
> > Chek.Com
> > (716) 853-1362 x289
> > [EMAIL PROTECTED]
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to