Hi all,
i have a problem to deploy WO on Linux.
I have made all steps described on http://www.tetlabors.de/wo/
setup_webobjects_on_linux.html
But it does not work....
I have a problem compiling the adaptor. Here is what i did:
1.
set export OS=LINUX and put under /etc/profile.local .
2.
Then i have added under $NEXT_ROOT/Developer/Examples/WebObjects/
Source/Adaptors/make.config following entries:
# LINUX
ifeq "LINUX" "$(OS)"
ADAPTORS = CGI Apache
# Default path for apxs
APXS = /usr/local/apache/bin/apxs
endif
3.
Then i did:
Open $NEXT_ROOT/Developer/Examples/WebObjects/Source/Adaptors/Apache/
Makefile and copy-and-paste the following lines after the last endif
(around line 66):
ifeq "LINUX" "$(OS)"
# If Apache is in a nonstandard location, change this
APACHEINCLUDEFLAGS = -I/usr/local/apache/include
CFLAGS = -O2 -Wall -I../Adaptor ${LDAPACHESSLFLAG} $(DEBUG_FLAG) -
DSINGLE_THREADED_ADAPTOR -D$(OS) -DEAPI -DFORKING_WEBSERVER -DAPACHE $
{OPENSSLINCLUDEFLAGS} ${APACHEINCLUDEFLAGS} ${OPENSSLLIBFLAGS} -L/lib
APXSFLAGS = -i
LDFLAGS += -G -L/lib -lc ${OPENSSLLIBFLAGS}
all: adaptor
adaptor: mod_WebObjects.so
?${APXS} ${APXSFLAGS} mod_WebObjects.so
mod_WebObjects.so : mod_WebObjects.o ${COMMON_OBJFILES}
# ${APXS} ${APXSFLAGS} -c mod_WebObjects.c ${COMMON_OBJFILES}
# ${APXS} ${APXSFLAGS} mod_WebObjects.o ${COMMON_OBJFILES}
?ld ${LDFLAGS} mod_WebObjects.o ${COMMON_OBJFILES} -o mod_WebObjects.so
clean:
?rm -f mod_WebObjects.so mod_WebObjects.o *.o
#mod_WebObjects.o: mod_WebObjects.c
# ${APXS} ${APXSFLAGS} -c mod_WebObjects.c
mod_WebObjects.o: mod_WebObjects.c ${COMMON_OBJFILES}
?${CC} -c ${CFLAGS} mod_WebObjects.c ${COMMON_OBJFILES}
endif
4.Then:
$NEXT_ROOT/Developer/Examples/WebObjects/Source/Adaptors/Adaptor/
appcfg.c.
#ifndef MAXPATHLEN
#define MAXPATHLEN 255
#endif
Cut-and-paste these three lines _after_ the following lines (around
line 72), like so:
#include <arpa/inet.h> /* inet_addr() */
#include <sys/param.h>
#endif
#ifndef MAXPATHLEN
#define MAXPATHLEN 255
#endif
5.
Then the Last thing to do was:
cd $NEXT_ROOT/Developer/Examples/WebObjects/Source/Adaptors
make clean; make
!!! Now, when i do 'make' i get following exception:
make
Makefile:50: warning: overriding commands for target `clean'
Makefile:34: warning: ignoring old commands for target `clean'
make: *** No rule to make target `mod_WebObjects.c', needed by
`mod_WebObjects.o'. Stop.
Here are the lines 34 and 50 from the listsing of the Makefile:
(34) rm -f mod_WebObjects.so mod_WebObjects.o *.o
(50) touch ${COMMON_TARGETS}
PLEASE help, i was trying around hours with no success!
Thanks in advance,
Christian Telepski
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com
This email sent to [email protected]