Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

mod_auth_mysql config file won't run

0 views
Skip to first unread message

mike c

unread,
Jan 2, 2002, 11:20:14 PM1/2/02
to
hi:

from the build directions for mod_auth_mysql:

./configure --with-mysql=dir --with-apache=dir

bash: ./configure: No such file or directory

if i do:

configure --with- ...

bash: configure: command not found

configure is in the working directory, it has exec privileges and root
ownership, i'm running as root...

i have searched redhat, apache, and mysql for more info and have come up
with nothing additional. any help would be greatly appreciated.

thanks in advance,
mike


Kosh Vader

unread,
Jan 3, 2002, 1:46:00 AM1/3/02
to

Interesting problem...

Since making assumptions can lead to missed solutions, I ask if you
can post the outputs of the following commands:

[Change directory to the your source tree for "mod_auth_mysql" first.]

1) pwd

2) ls -l

3) head -1 configure

4) echo $PATH

Then we can going on from there...

Chris

mike c

unread,
Jan 3, 2002, 12:14:43 PM1/3/02
to
sure:

1) pwd
/tmp/mod_auth_mysql-2.20
2) ls -l
[root@xu mod_auth_mysql-2.20]# ls -l
total 125
-rwxr--r-- 1 root root 366 Oct 3 1998 acconfig.h
-rwxr--r-- 1 root root 2361 Oct 2 1998 aclocal.m4
-rwxr--r-- 1 root root 256 Oct 2 1998 apMakefile.libdir
-rwxr--r-- 1 root root 2225 Oct 2 1998 apMakefile.tmpl
-rwxr--r-- 1 root root 776 Oct 3 1998 config.h
-rwxr--r-- 1 root root 692 Oct 3 1998 config.h.in
-rwxr--r-- 1 root root 61030 Oct 3 1998 configure
-rwxr--r-- 1 root root 10716 Oct 3 1998 configure.in
-rwxr--r-- 1 root root 194 Oct 3 1998
libauth_mysql.module.in
-rwxr--r-- 1 root root 573 Oct 3 1998 Makefile.in
-rwxr--r-- 1 root root 19490 Oct 3 1998 mod_auth_mysql.c
-rwxr--r-- 1 root root 9036 Oct 3 1998 README
-rwxr--r-- 1 root root 690 Oct 2 1998
update_htaccess_files.sh
-rwxr--r-- 1 root root 9364 Oct 3 1998 USAGE

3) head -1 configure
#!/bin/sh

4) echo $PATH
/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/mike/bin

the Apache instructions are the same and i even moved apache's Configure
file to / and tried ./Configure --help ... -same results. the " ./ " ...
rings a bell can't remember what it means other then working directory ...
seems there was some reason for using it to run shell scripts. it currently
runs nada.

thanks for your help,
mike
Kosh Vader <kosh...@vorlonempire.org> wrote in message
news:7hv73u45jb7veluu6...@4ax.com...

Kosh Vader

unread,
Jan 3, 2002, 3:40:34 PM1/3/02
to
On Thu, 03 Jan 2002 17:14:43 GMT, "mike c" <cm...@ptd.net> wrote:

>sure:
>
>1) pwd
> /tmp/mod_auth_mysql-2.20

Okay...

>2) ls -l
>[root@xu mod_auth_mysql-2.20]# ls -l
>total 125
>-rwxr--r-- 1 root root 366 Oct 3 1998 acconfig.h
>-rwxr--r-- 1 root root 2361 Oct 2 1998 aclocal.m4
>-rwxr--r-- 1 root root 256 Oct 2 1998 apMakefile.libdir
>-rwxr--r-- 1 root root 2225 Oct 2 1998 apMakefile.tmpl
>-rwxr--r-- 1 root root 776 Oct 3 1998 config.h
>-rwxr--r-- 1 root root 692 Oct 3 1998 config.h.in
>-rwxr--r-- 1 root root 61030 Oct 3 1998 configure
>-rwxr--r-- 1 root root 10716 Oct 3 1998 configure.in
>-rwxr--r-- 1 root root 194 Oct 3 1998
>libauth_mysql.module.in
>-rwxr--r-- 1 root root 573 Oct 3 1998 Makefile.in
>-rwxr--r-- 1 root root 19490 Oct 3 1998 mod_auth_mysql.c
>-rwxr--r-- 1 root root 9036 Oct 3 1998 README
>-rwxr--r-- 1 root root 690 Oct 2 1998
>update_htaccess_files.sh
>-rwxr--r-- 1 root root 9364 Oct 3 1998 USAGE

Okay...

>3) head -1 configure
>#!/bin/sh

Okay... though the original is "#! /bin/sh", not that it matters
here.

>4) echo $PATH
>/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/mike/bin

Obviously, you are using "su" or "su root", not "su - root"...

>the Apache instructions are the same and i even moved apache's Configure
>file to / and tried ./Configure --help ... -same results. the " ./ " ...

?Huh?

>rings a bell can't remember what it means other then working directory ...
>seems there was some reason for using it to run shell scripts. it currently
>runs nada.

Using "./" means to execute the command in the current working
directory, yes.

Next step, try doing either:

1) sh configure <= note that "./" is NOT used here

2) sh -v configure <= only if (1) fails to execute

Does this command output anything?

Chris

mike c

unread,
Jan 3, 2002, 7:01:09 PM1/3/02
to
hi again, Kosh:

> Obviously, you are using "su" or "su root", not "su - root"...
>
> >the Apache instructions are the same and i even moved apache's Configure
> >file to / and tried ./Configure --help ... -same results. the " ./ " ...
>
> ?Huh?

i just moved it somewhere more likely to execute in case the ownership
(mike) of the working directory's parent was to blame (i.e., /tmp from
/tmp/mod_auth .... and i went to the server console and ran as true root.

" ./ " .... must have been a thought fragment hemorrhaging from my brain
to the keyboard.

anyway, sh configure gives:

: command not found
: command not found
: command not found
: command not found
: command not found
'onfigure: line 70: syntax error near unexpected token `do
'onfigure: line 70: `do

i checked true root's PATH and it points to all the bin directories. Putting
apache's Configure in /usr/bin doesn't help (i.e., can't use ./ ).

the first occurance of "do", is more that twice as far into the file as line
70 -- not sure how sh counts lines or what my editor has done but here's the
first occurrance of "do".

for rule in `grep '^Rule' $src/Configuration.tmpl`; do
rule=`echo "$rule" | sed -e 's/^Rule[ ]*//'`
name=`echo "$rule" | sed -e 's/=.*$//'`
namelow=`echo "$name" | tr '[A-Z]' '[a-z]'`
arg=`echo "$rule" | sed -e 's/^.*=//'`
eval "rule_$namelow=$arg"
rules="$rules:$namelow"
rulelist="$rulelist:$name=$arg"
done

so ./ doesn't work and sh chokes on the script. two problems.

thanks,
mike


Kosh Vader <kosh...@vorlonempire.org> wrote in message

news:r7f93us8rvifsr92h...@4ax.com...

mike c

unread,
Jan 3, 2002, 7:24:14 PM1/3/02
to
sorry, wrong file here's a do stmnt near line 70 from the correct file:

ac_prev=
for ac_option
do
# If the previous option needs an argument, assign it.
if test -n "$ac_prev"; then
eval "$ac_prev=\$ac_option"
ac_prev=
continue
fi

mike

Kosh Vader <kosh...@vorlonempire.org> wrote in message

news:r7f93us8rvifsr92h...@4ax.com...

Kosh Vader

unread,
Jan 3, 2002, 8:46:57 PM1/3/02
to

Very interesting problem you'll got going here...

Just as a test, I tried running configure for "mod_auth_mysql-2.20",
and it worked correctly, using my own breed of a Linux distribution,
logged in as a regular user.

So, letting run a control test. For you still have the
"mod_auth_mysql-2.20.tar.gz" source tarball, I would like you, as your
normal user of "mike", to the following steps:

[Assume you will unpack the tarball in "~/src", and that
"mod_auth_mysql-2.20.tar.gz" is in "~/src".]

1) cd ~/src

2) tar xzf mod_auth_mysql-2.20.tar.gz

3) cd mod_auth_mysql-2.20

4) ./configure

5) If (4) fails, do

a) /bin/bash -vx configure 2>test-conf.log <= if you use bash*

b) /bin/bash -vx configure >& test-conf.log <= if you use tcsh*

Post the contents of "test-conf.log" as an compressed attachment
(use "gzip"). Then I'll compare what's in it with mine.

[* as your shell interpreter for your account]

Also, if (4) fails, can you post the following:

6) Linux distribution/version

7) ls -l /bin/{sh,bash}

8) /bin/bash --version

Chris

>thanks,
>mike
>
>


0 new messages