[MMTK] missing libnetcdf.so & other desasters

Eugene Leitl eugene.leitl@lrz.uni-muenchen.de
Tue, 18 May 1999 19:22:21 -0700 (PDT)


Hi,

I'm having some trouble in installing MMTK (current version, not the
beta). netcdf-3.4 seems to build and test allright, however all I get
in lib/ is:

-rw-r--r--   1 root     root       617492 Apr 24 19:26 libnetcdf.a
-rw-r--r--   1 root     root       179542 Apr 24 19:26 libnetcdf_c++.a

and rpm -Uhv python-netcdf-1.03-1.i386.rpm complains:
failed dependencies:
        libnetcdf.so is needed by python-netcdf-1.03-1

This is a glibc Linux box, I used the following assignments to build
netcdf-3.4:

export CC=/usr/bin/cc
export CPPFLAGS=-Df2cFortran
export CFLAGS=-g
export FC=/usr/local/bin/g77
export FFLAGS="-g -w"
export CXX=/usr/bin/c++

Also, when I unpack 
-rw-r--r--   1 eugene.l users      452977 May 18 17:56 mmtk1.2b1.tar.gz
and python compile.py it, the build aborts with (full transcript
follows):

Copy Misc/Makefile.pre.in from the Python distribution
to this directory and try again.
Listing . ...
Compiling ./AmberData.py ...
Compiling ./AmberForceField.py ...
Compiling ./AtomEnvironment.py ...
Listing ./Atoms ...
Compiling ./BondedInteractions.py ...
Compiling ./Bonds.py ...
Compiling ./ChargeFit.py ...
Compiling ./ChemicalObjects.py ...
Compiling ./Collection.py ...
Compiling ./ComplexEnvironment.py ...
Listing ./Complexes ...
Compiling ./ConfigIO.py ...
Compiling ./CrystalEnvironment.py ...
Listing ./Crystals ...
Compiling ./DCD.py ...
Compiling ./DLPOLY.py ...
Compiling ./Database.py ...
Compiling ./DatabaseEdit.py ...
Listing ./Doc ...
Compiling ./Dynamics.py ...
Listing ./Examples ...
Compiling ./Examples/constrained_modes.py ...
Compiling ./Examples/dynamics.py ...
Compiling ./Examples/modes.py ...
Compiling ./Examples/protein_analysis.py ...
Compiling ./Examples/protein_construction.py ...
Compiling ./Examples/snapshot.py ...
Compiling ./Examples/solvent.py ...
Compiling ./Examples/view_trajectory.py ...
Compiling ./Field.py ...
Compiling ./ForceField.py ...
Compiling ./ForceFieldTest.py ...
Compiling ./ForceFields.py ...
Compiling ./Geometry.py ...
Compiling ./GroupEnvironment.py ...
Listing ./Groups ...
Compiling ./Lattice.py ...
Compiling ./Minimization.py ...
Compiling ./MolecularSurface.py ...
Compiling ./MoleculeEnvironment.py ...
Listing ./Molecules ...
Compiling ./NonBondedInteractions.py ...
Compiling ./NormalModes.py ...
Listing ./PDB ...
Listing ./Parameters ...
Compiling ./Protein.py ...
Compiling ./ProteinEnvironment.py ...
Listing ./Proteins ...
Compiling ./RandomStuff.py ...
Compiling ./ReadDCD.py ...
Compiling ./Skeleton.py ...
Compiling ./Solvent.py ...
Compiling ./Trajectory.py ...
Compiling ./Units.py ...
Compiling ./Universe.py ...
Compiling ./Utility.py ...
Compiling ./Variables.py ...
Compiling ./Visualization.py ...
Compiling ./compile.py ...
Listing ./dpmta-2.7 ...
Listing ./dpmta-2.7/mpole ...
Listing ./dpmta-2.7/src ...
Compiling ./mmtk.py ...
Compiling ./mmtklight.py ...
make: Makefile.pre.in: No such file or directory
make: *** No rule to make target `Makefile.pre.in'.  Stop.
grep: Makefile: No such file or directory
(cd mpole; make libmpole.a CC="")
make[1]: Entering directory `/home/eugene.leitl/download/mmtk/mmtk/dpmta-2.7/mpole'
O3 -DSERIAL -DVIRIAL -DMACROSCOPIC   -c mpe_fft.c -o mpe_fft.o
make[1]: O3: Command not found
make[1]: [mpe_fft.o] Error 127 (ignored)
O3 -DSERIAL -DVIRIAL -DMACROSCOPIC   -c mpe_misc.c -o mpe_misc.o
make[1]: O3: Command not found
make[1]: [mpe_misc.o] Error 127 (ignored)
O3 -DSERIAL -DVIRIAL -DMACROSCOPIC   -c mpe_mpoleC.c -o mpe_mpoleC.o
make[1]: O3: Command not found
make[1]: [mpe_mpoleC.o] Error 127 (ignored)
O3 -DSERIAL -DVIRIAL -DMACROSCOPIC   -c mpe_allocC.c -o mpe_allocC.o
make[1]: O3: Command not found
make[1]: [mpe_allocC.o] Error 127 (ignored)
O3 -DSERIAL -DVIRIAL -DMACROSCOPIC   -c mpe_mpoleLJ.c -o mpe_mpoleLJ.o
make[1]: O3: Command not found
make[1]: [mpe_mpoleLJ.o] Error 127 (ignored)
O3 -DSERIAL -DVIRIAL -DMACROSCOPIC   -c mpe_allocLJ.c -o mpe_allocLJ.o
make[1]: O3: Command not found
make[1]: [mpe_allocLJ.o] Error 127 (ignored)
rm -f libmpole.a
ar rs libmpole.a mpe_fft.o mpe_misc.o mpe_mpoleC.o mpe_allocC.o mpe_mpoleLJ.o mpe_allocLJ.o
ar: mpe_fft.o: No such file or directory
make[1]: *** [libmpole.a] Error 1
make[1]: Leaving directory `/home/eugene.leitl/download/mmtk/mmtk/dpmta-2.7/mpole'
make: *** [serial] Error 2
make: *** No targets.  Stop.

There is no Makefile.pre.in in the source tree, nor is there a Misc
directory. The only Makefile.pre.in is to be found in 
/usr/lib/python1.5/site-packages/mmtk/ , and copying it doesn't change 
anything.

What is going one here?

TIA,

Eugene Leitl