From: Andrew D. <dou...@la...> - 2004-04-08 18:47:31
|
On Wed, 7 Apr 2004, Jonathan Brandmeyer wrote: > This release corrects bugs found in the 2.9.0 release: Nice. Thanks. I ran into a few glitches while trying to build this on a Debian Linux/SPARC64 system. I've enclosed suggested patches (apply with patch -p1 -N). The changes are: INSTALL.txt: 1. Debian's "Testing", unfortunately, has python2.3, but only Boost 1.30.2. I put in some notes to that effect. If it's too much or too verbose, go ahead and adjust it to taste. 2. Using PYTHONPATH and --prefix to install somewhere safe and out of the way only works if PYTHONPATH already exists. I didn't think configure should do that (because you might need to be root to make the directory) so I just put in an explicit instruction. 3. I fixed a few trivial typos. configure.ac: 1. If compilation of a program with #include <Python.h> fails, the most likely reason is that Python.h doesn't exist, but there could also be other local configuration errors. (In my case, there was a bit of 32-bit/64-bit confusion in python's pyport.h header.) I've suggested a somewhat more general message. cvisual/Makefile.in: 1. The 'make install' step will fail if $prefix/bin doesn't exist already. I added in a conditional mkdir -p command. (I vaguely recall that mkdir -p is not completely portable, but probably should be ok everywhere that VPython is likely to be installed.) diff -r -u visual-2.9.1/INSTALL.txt visual-2.9.1-andy/INSTALL.txt --- visual-2.9.1/INSTALL.txt 2004-04-07 16:28:55.000000000 -0400 +++ visual-2.9.1-andy/INSTALL.txt 2004-04-08 13:22:48.000000000 -0400 @@ -91,6 +91,11 @@ libgtk1.2-dev g++-3.2 (or g++-3.3). libboost-python-dev + + (As of April 8, 2004, Debian's "testing" distribution only contains + Boost libraries version 1.30.2. You can either try installing + 1.31.0 yourself or use the python2.2 packages. You'll need + python2.2-dev, python2.2-numeric, and python2.2-tk.) Users of Debian Woody and derivatives will need to obtain backports of the above from (eg.) www.backports.org. @@ -156,7 +161,8 @@ simultaneously. After choosing an approprate prefix, such as /home/jonathan, run configure as normally but specify the PYTHONPATH environment variable to be [prefix]/lib/python2.3/site-packages, replacing python2.3 with python2.2 if that - is your interpreter. + is your interpreter. You must create this PYTHONPATH directory if it doesn't + already exist. III. Build @@ -174,9 +180,9 @@ the CXXFLAGS variable. The Makefiles support the following targets: - all: (the default) compiles are required software + all: (the default) compiles all the required software clean: deletes files created by the compiler - distclean: deltes all files created by the configure and make programs. This + distclean: deletes all files created by the configure and make programs. This option is useful if you want to start over from a clean source tree. install: copies all required files in the locations specified by configure install-strip: Performs the 'install' target and strips the final object files. diff -r -u visual-2.9.1/configure.ac visual-2.9.1-andy/configure.ac --- visual-2.9.1/configure.ac 2004-04-07 16:18:45.000000000 -0400 +++ visual-2.9.1-andy/configure.ac 2004-04-08 10:28:10.000000000 -0400 @@ -29,7 +29,7 @@ AM_CHECK_PYTHON_HEADERS([], [ - AC_MSG_ERROR([A suitable python interpreter was found, but you do not have the header files required for building C/C++ extensions to python.])]) + AC_MSG_ERROR([A suitable python interpreter was found, but you do not have the header files required for building C/C++ extensions to python, or another problem was encountered compiling a program that includes <Python.h>.])]) dnl Copied from the official gtk+-2 configure.in AC_MSG_CHECKING([for some Win32 platform]) diff -r -u visual-2.9.1/cvisual/Makefile.in visual-2.9.1-andy/cvisual/Makefile.in --- visual-2.9.1/cvisual/Makefile.in 2004-04-07 16:18:46.000000000 -0400 +++ visual-2.9.1-andy/cvisual/Makefile.in 2004-04-08 11:22:35.000000000 -0400 @@ -22,6 +22,9 @@ CXXDEPMODE = @CXXDEPMODE@ STRIP = @STRIP@ +# Program to be determined by configure +MKDIR_P = mkdir -p + # System configurable variables determined by configure PYTHON_INCLUDES = @PYTHON_INCLUDES@ PYTHON_PREFIX = @PYTHON_PREFIX@ @@ -247,6 +250,8 @@ @echo $(LIBTOOL) --mode=install $(INSTALL) $< $(DESTDIR)$(pythondir)/$< \ >> $(LOGFILE) @$(LIBTOOL) --mode=install $(INSTALL) $< $(DESTDIR)$(pythondir)/$< + @echo test -d $(DESTDIR)$(bindir) || $(MKDIR_P) $(DESTDIR)$(bindir) >> $(LOGFILE) + @test -d $(DESTDIR)$(bindir) || $(MKDIR_P) $(DESTDIR)$(bindir) @echo $(INSTALL) -m 755 vpython $(DESTDIR)$(bindir)/vpython >> $(LOGFILE) @$(INSTALL) -m 755 vpython $(DESTDIR)$(bindir)/vpython else -- Andy Dougherty dou...@la... Dept. of Physics Lafayette College, Easton PA 18042 |