Dear Zhicheng, Thanks a lot for the help. Explicitly including the library path works! This definitely saves me an clean install of Ubuntu11.04. ;-)
vyan2000@yan-home-530s~/local/dealii/deal.II.7.1.0.petsc.2nd/examples/step-17 $ make run ============================ Linking step-17 ============================ Running step-17 Cycle 0: Number of active cells: 64 Number of degrees of freedom: 162 (by partition: 162) Solver converged in 9 iterations. Cycle 1: Number of active cells: 124 Number of degrees of freedom: 302 (by partition: 302) Solver converged in 17 iterations. Cycle 2: Best regards, Yan On Tue, Feb 14, 2012 at 10:20 PM, Zhicheng Wang <[email protected]>wrote: > Hi, Yan, > > I used to have same problem with Ubuntu 11.04. My way is add the path of > libpetsc.so to the local makefile ,explicitly e.g., > In step-17, you could add > " /home/vyan2000/local/PPETSc/petsc-3.2-p5/O-deal-debug/lib/libpetsc.so" to > the Makefile as follows: > > **************************************************************************************************** > # Now comes the first production rule: how to link the single object > # file produced from the single C++ file into the executable. Since > # this is the first rule in the Makefile, it is the one `make' selects > # if you call it without arguments. > $(target)$(EXEEXT) : $(libraries) > @echo ============================ Linking $@ > @$(CXX) -o $@ $^ $(LIBS) > $(LDFLAGS) > /home/vyan2000/local/PPETSc/petsc-3.2-p5/O-deal-debug/lib/libpetsc.so > > ********************************************************************************************************** > > Hope this could help you. > > >
_______________________________________________ dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii
