/ Forside / Teknologi / Operativsystemer / Linux / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
Linux
#NavnPoint
o.v.n. 11177
peque 7911
dk 4814
e.c 2359
Uranus 1334
emesen 1334
stone47 1307
linuxrules 1214
Octon 1100
10  BjarneD 875
apxs?
Fra : Jimmy


Dato : 06-07-03 20:43

Hej

Jeg skal åbenbart have installeret noget apxs for at kunne installere et
modul, som hedder mod_auth_pam:

[root@GSM mod_auth_pam]# make
apxs -c mod_auth_pam.c -lpam
make: apxs: Command not found
make: *** [mod_auth_pam.la] Error 127

locate apxs giver intet...

Se nedenfor for ydeligere info, hvis nødvendigt.

Nogen der kan forklare mig, hvordan jeg får apxs ind på min RH 9.0?
Eller alternativt, hvordan jeg installerer modulet?

Mvh
Jimmy




[root@GSM mod_auth_pam]# ll
total 48
drwxr-xr-x 2 1000 users 4096 Aug 31 2002 CVS
-rw-r--r-- 1 1000 users 458 Aug 24 2002 INSTALL
-rw-r--r-- 1 1000 users 561 Aug 24 2002 Makefile
-rw-r--r-- 1 1000 users 448 Aug 15 2002 README
drwxr-xr-x 3 1000 users 4096 Aug 15 2002 doc
-rw-r--r-- 1 1000 users 12891 Aug 24 2002 mod_auth_pam.c
-rw-r--r-- 1 1000 users 7926 Aug 31 2002 mod_auth_sys_group.c
drwxr-xr-x 3 1000 users 4096 Aug 15 2002 samples



[root@GSM mod_auth_pam]# cat Makefile
LIBS=-lpam
APXS=apxs
# try this, if you're not root and apxs is in the standard place
#APXS=/usr/sbin/apxs

SOURCES=mod_auth_pam.c mod_auth_sys_group.c
# Apache 2.0 uses GNU libtool, hence the libtool suffix
TARGETS=$(SOURCES:.c=.la)

all: $(TARGETS)

# general rule to build
%.la: %.c
$(APXS) -c $< $(LIBS)

install: $(TARGETS)
$(APXS) -i $(TARGETS)
[ -d /etc/pam.d/ -a ! -f /etc/pam.d/httpd ] && install -m 644 -o
root -g root samples/httpd /etc/pam.d/

clean:
-rm -f $(TARGETS) *~ $(SOURCES:.c=.slo) $(SOURCES:.c=.lo)
$(SOURCES:.c=.so) $(SOURCES:.c=.o)






 
 
Jacob Bunk Nielsen (06-07-2003)
Kommentar
Fra : Jacob Bunk Nielsen


Dato : 06-07-03 20:51

"Jimmy" <nyhedsgruppe@get2net.dk> writes:

> Jeg skal åbenbart have installeret noget apxs for at kunne installere et
> modul, som hedder mod_auth_pam:

apxs er en del af Apache. Installér Apache-pakken og Apache-devel-pakken.

--
Jacob - www.bunk.cc
overflow error in /dev/null

Jimmy (06-07-2003)
Kommentar
Fra : Jimmy


Dato : 06-07-03 21:07


"Jacob Bunk Nielsen" <spam@bunk.cc> wrote in message
news:spamdrop+m3llvbbfil.fsf@paven.bunk.cc...
> "Jimmy" <nyhedsgruppe@get2net.dk> writes:
>
> > Jeg skal åbenbart have installeret noget apxs for at kunne installere et
> > modul, som hedder mod_auth_pam:
>
> apxs er en del af Apache. Installér Apache-pakken og Apache-devel-pakken.

Hej Jacob

Tak for det hurtige svar, der hjalp mig et skridt videre.

Er der nogen, der kan fortælle mig, hvad nedenstående betyder, da jeg ikke
forstår noget som helst af det?

Mvh
Jimmy

[root@GSM mod_auth_pam]# make
apxs -c mod_auth_pam.c -lpam
/usr/lib/httpd/build/libtool --silent --mode=compile
gcc -prefer-pic -O2 -g -march=i386 -mcpu=i686 -DAP_HAVE_DESIGNATED_INITIALIZ
ER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -
D_GNU_SOURCE -pthread -DNO_DBM_REWRITEMAP -I/usr/include/httpd -c -o
mod_auth_pam.lo mod_auth_pam.c && touch mod_auth_pam.slo
mod_auth_pam.c:145:31: security/pam_appl.h: No such file or directory
mod_auth_pam.c:255: warning: `struct pam_response' declared inside parameter
list
mod_auth_pam.c:255: warning: its scope is only this definition or
declaration, which is probably not what you want
mod_auth_pam.c:255: warning: `struct pam_message' declared inside parameter
list
mod_auth_pam.c: In function `auth_pam_talker':
mod_auth_pam.c:269: `PAM_CONV_ERR' undeclared (first use in this function)
mod_auth_pam.c:269: (Each undeclared identifier is reported only once
mod_auth_pam.c:269: for each function it appears in.)
mod_auth_pam.c:272: sizeof applied to an incomplete type
mod_auth_pam.c:279: invalid use of undefined type `struct pam_response'
mod_auth_pam.c:279: dereferencing pointer to incomplete type
mod_auth_pam.c:280: invalid use of undefined type `struct pam_response'
mod_auth_pam.c:280: dereferencing pointer to incomplete type
mod_auth_pam.c:283: dereferencing pointer to incomplete type
mod_auth_pam.c:284: `PAM_PROMPT_ECHO_ON' undeclared (first use in this
function)
mod_auth_pam.c:286: invalid use of undefined type `struct pam_response'
mod_auth_pam.c:286: dereferencing pointer to incomplete type
mod_auth_pam.c:288: `PAM_PROMPT_ECHO_OFF' undeclared (first use in this
function)
mod_auth_pam.c:289: invalid use of undefined type `struct pam_response'
mod_auth_pam.c:289: dereferencing pointer to incomplete type
mod_auth_pam.c:299: `PAM_SUCCESS' undeclared (first use in this function)
mod_auth_pam.c: In function `pam_auth_basic_user':
mod_auth_pam.c:325: variable `conv_info' has initializer but incomplete type
mod_auth_pam.c:325: warning: excess elements in struct initializer
mod_auth_pam.c:325: warning: (near initialization for `conv_info')
mod_auth_pam.c:325: warning: excess elements in struct initializer
mod_auth_pam.c:325: warning: (near initialization for `conv_info')
mod_auth_pam.c:325: storage size of `conv_info' isn't known
mod_auth_pam.c:326: `pam_handle_t' undeclared (first use in this function)
mod_auth_pam.c:326: `pamh' undeclared (first use in this function)
mod_auth_pam.c:347: `PAM_SUCCESS' undeclared (first use in this function)
mod_auth_pam.c:368: `PAM_DISALLOW_NULL_AUTHTOK' undeclared (first use in
this function)
mod_auth_pam.c:373: `PAM_USER_UNKNOWN' undeclared (first use in this
function)
apxs:Error: Command failed with rc=65536
..
make: *** [mod_auth_pam.la] Error 1




Jacob Bunk Nielsen (06-07-2003)
Kommentar
Fra : Jacob Bunk Nielsen


Dato : 06-07-03 21:09

"Jimmy" <nyhedsgruppe@get2net.dk> writes:

> mod_auth_pam.c: In function `auth_pam_talker':
> mod_auth_pam.c:269: `PAM_CONV_ERR' undeclared (first use in this function)

Skal vi gætte på at du mangler pam-devel?

--
Jacob - www.bunk.cc
Do, or do not; there is no try.

Jimmy (06-07-2003)
Kommentar
Fra : Jimmy


Dato : 06-07-03 21:17


"Jacob Bunk Nielsen" <spam@bunk.cc> wrote in message
news:spamdrop+m3he5zbepo.fsf@paven.bunk.cc...
> "Jimmy" <nyhedsgruppe@get2net.dk> writes:
>
> > mod_auth_pam.c: In function `auth_pam_talker':
> > mod_auth_pam.c:269: `PAM_CONV_ERR' undeclared (first use in this
function)
>
> Skal vi gætte på at du mangler pam-devel?

Det var det jeg manglede

Tak,
Jimmy



Søg
Reklame
Statistik
Spørgsmål : 177552
Tips : 31968
Nyheder : 719565
Indlæg : 6408849
Brugere : 218887

Månedens bedste
Årets bedste
Sidste års bedste