Linux install problem -- Debian
| From: | Ronald Weidner | Date: | Fri, 22 Aug 2003 18:39:21 +0000 |
| Subject: | Linux install problem -- Debian | ||
| Groups: | php.gtk.cvs | ||
| Request: | Send a blank email to php-gtk-cvs+get-855@lists.php.net to get a copy of this message | ||
I'm trying to install php-gtk (from
php-gtk-0.5.2.tar.gz) on debian , Redhat 8 and Redhat
9 machines. The problems that I'm running into are
the same for all. First there is a line wrap error in
the configure file. This error is currently on line
#3422. Fixing that error by commenting out the the
line or by deleteing the comments (the cause of the
line wrap error) solves that problem. The next
problem in the configure file is on line #18724. The
problem there is that $BUILD_DIR has no value. I
replaced the variable with the constant "build"
(without the quotes) and the configure script
completed without any further errors.
The following is the resulting Makefile. When I run
make, it echos a few lines, then quits. I looked a
the make rule for All and it would seem thats all it's
going to do. The point here is no compiling is being
done and no .so is being generated. What do I need to
do to fix the Makefile? I don't know much about them
and therefore will need very explicit instructions as
to how to fix this problem. Thank you...
Ron_W
BTW..
I tested the install on a Win2k box... the product
looks great so far. I'm really looking forward to
building some cool stuff with this lib.
srcdir = /home/sentinel/src/php-gtk
builddir = /home/sentinel/src/php-gtk
top_srcdir = /home/sentinel/src/php-gtk
top_builddir = /home/sentinel/src/php-gtk
SHLIB_SUFFIX_NAME = so
AWK = mawk
PHP = /usr/local/bin/php
CFLAGS_CLEAN = -g -O2
PHP_MODULES =
all_targets = $(PHP_MODULES)
install_targets = install-modules
prefix = /usr/local
exec_prefix = $(prefix)
libdir = ${exec_prefix}/lib
prefix = /usr/local
phplibdir = /home/sentinel/src/php-gtk/modules
PHP_COMPILE =
CC = gcc
CFLAGS = -g -O2
CFLAGS_CLEAN = -g -O2
CPP = gcc -E
CPPFLAGS = -DHAVE_CONFIG_H
CXX = g++
DEFS =
EXTENSION_DIR =
/usr/local/lib/php/extensions/no-debug-non-zts-20020429
EXTRA_LDFLAGS =
EXTRA_LIBS =
INCLUDES = -I/usr/local/include/php
-I/usr/local/include/php/main
-I/usr/local/include/php/Zend
-I/usr/local/include/php/TSRM
LEX =
LEX_OUTPUT_ROOT =
LFLAGS =
LDFLAGS =
SHARED_LIBTOOL =
LIBTOOL = $(SHELL) $(top_builddir)/libtool
SHELL = /bin/sh
AWK = mawk
mkinstalldirs = $(top_srcdir)/build/shtool mkdir -p
INSTALL = $(top_srcdir)/build/shtool install -c
INSTALL_DATA = $(INSTALL) -m 644
DEFS = -DPHP_ATOM_INC -I$(top_builddir)/include
-I$(top_builddir)/main -I$(top_srcdir)
COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES)
$(CPPFLAGS) $(PHP_FRAMEWORKPATH)
all: $(all_targets)
@echo
@echo "Build complete."
@echo "(It is safe to ignore warnings about tempnam
and tmpnam)."
@echo
build-modules: $(PHP_MODULES)
libphp4.la: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
$(LIBTOOL) --mode=link $(CC) $(CFLAGS)
$(EXTRA_CFLAGS) -rpath $(phptempdir) $(EXTRA_LDFLAGS)
$(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS)
$(PHP_SAPI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o
$@
libs/libphp4.bundle: $(PHP_GLOBAL_OBJS)
$(PHP_SAPI_OBJS)
$(CC) $(MH_BUNDLE_FLAGS) $(CFLAGS_CLEAN)
$(EXTRA_CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS)
$(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o)
$(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o
$@ && cp $@ libs/libphp4.so
install: $(install_targets)
install-sapi: libphp4.la
@echo "Installing PHP SAPI module"
-@$(LIBTOOL) --silent --mode=install cp libphp4.la
$(phptempdir)/libphp4.la >/dev/null 2>&1
-@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir)
-@if test ! -r
$(phptempdir)/libphp4.$(SHLIB_SUFFIX_NAME); then \
for i in 0.0.0 0.0 0; do \
if test -r
$(phptempdir)/libphp4.$(SHLIB_SUFFIX_NAME).$$i; then \
$(LN_S)
$(phptempdir)/libphp4.$(SHLIB_SUFFIX_NAME).$$i
$(phptempdir)/libphp4.$(SHLIB_SUFFIX_NAME); \
break; \
fi; \
done; \
fi
@$(INSTALL_IT)
install-modules: build-modules
@test -d modules && \
$(mkinstalldirs) $(INSTALL_ROOT)$(EXTENSION_DIR) && \
echo "Installing shared extensions:
$(INSTALL_ROOT)$(EXTENSION_DIR)/" && \
rm -f modules/*.la && \
$(INSTALL) modules/* $(INSTALL_ROOT)$(EXTENSION_DIR)
>/dev/null 2>&1 || true
install-tester:
@echo "Installing regression tester:
$(INSTALL_ROOT)$(PEAR_INSTALLDIR)/"
@$(mkinstalldirs) $(INSTALL_ROOT)$(PEAR_INSTALLDIR)
@$(INSTALL) -m 755 $(top_srcdir)/run-tests.php
$(INSTALL_ROOT)$(PEAR_INSTALLDIR)
install-su: install-pear install-tester
test: $(SAPI_CLI_PATH)
@TEST_PHP_EXECUTABLE=$(top_builddir)/$(SAPI_CLI_PATH)
\
TEST_PHP_SRCDIR=$(top_srcdir) \
CC="$(CC)" \
$(top_builddir)/$(SAPI_CLI_PATH) -d 'open_basedir='
-d 'safe_mode=0' -d 'output_buffering=0'
$(top_srcdir)/run-tests.php $(TESTS)
clean:
find . -name \*.lo | xargs rm -f
find . -name \*.o | xargs rm -f
find . -name \*.la | xargs rm -f
find . -name \*.a | xargs rm -f
find . -name \*.so | xargs rm -f
find . -name .libs -a -type d|xargs rm -rf
rm -f libphp4.la $(SAPI_CLI_PATH) $(OVERALL_TARGET)
modules/* libs/*
distclean: clean
rm -f config.cache config.log config.status
Makefile.objects Makefile.fragments libtool
main/php_config.h stamp-h php4.spec
sapi/apache/libphp4.module buildmk.stamp
egrep define'.*include/php' configure|sed
's/.*>//'|xargs rm -f
find . -name Makefile | xargs rm -f
.PHONY: all clean install distclean test
.NOEXPORT:
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com