Quote:
Originally Posted by MensaWater
When searching for a file in a yum based OS like RHEL 6 you can run "yum provides" to see what rpm provides it.
"yum provides "*/libblas*"
Doing that on my RHEL 6 server shows it is from the "blas" package which is "The Basic Linear Algebra Subprograms library".
You could run "yum list blas" to see which versions of this are available and/or installed already. You can run "yum install blas" to install the latest one.
However you say the files don't exist on the first system you compiled this on so it seems that your error isn't due to missing file. Was there something else in the output of the compile before the ld failure?
|
Thanks for your useful advice sincerely, problems have been solved successfully. It's my faults that I didn't check the relational librarys comprehensively.Some crucial librarys missed in the second machine, and I fixed it using your suggestion or commands.Could you recommend some books can be resolve question listed below:
Due to work request, I need compile some molecular simulation software. But how to understand or change the Makefile is a bother question. Many
symbols or abbreviations are beyond my knowledge. For example :
SHELL=/bin/sh
CC = g++
CCFLAGS = -g -O
LINK = g++
LINKFLAGS = -g -O
DEPFLAG = -MM
SIZE = size
SRC = main.cpp nanotube.cpp
OBJ = $(SRC:%.cpp=%.o)
EXE = NT
#--------------------------------------------
#Link target
$(EXE): $(OBJ)
$(LINK) $(LINKFLAGS) $(OBJ) -o $@
$(SIZE) $@
#Compile rulse
%.o: %.cpp
$(CC) $(CCFLAGS) -c $<
%.d: %.cpp
$(CC) $(CCFLAGS) $(DEPFLAG) $< > $@
clean:
-rm $(OBJ) *.d $(EXE)
#--------------------------------------------
#Individual dependence
DEPEDENCE = $(OBJ:%.o=%.d)
sinclude $(DEPEDENCE)
SUBDIRS = $(NW_CORE_SUBDIRS) $(NW_MODULE_SUBDIRS)
all: pre_build
@nmake -nologo foreach_subdir
nmake -nologo link
build:
@nmake -nologo foreach_subdir
nmake -nologo link
OBJ = $(OBJDIR)\nwchem.obj \
$(OBJDIR)\stubs_win32.obj
COMPILATION_DATE = (unknown)
CODE_BRANCH = (unknown)
!IFDEF PYTHONHOME
WITHPYTHON = -DWITHPYTHON
!ENDIF
LIB_DEFINES = -DCOMPILATION_DATE="'$(COMPILATION_DATE)'" \
-DCOMPILATION_DIR="'$(TOPDIR)'" \
-DNWCHEM_BRANCH="'$(CODE_BRANCH)'" $(WITHPYTHON)
OR some compiling Flags : icc -O -DLAMMPS_GZIP -DLAMMPS_JPEG -DLMP_USER_OMP -I../../lib/atc -I../../lib/reax -I../../lib/poems -I../../lib/meam -DMPICH_SKIP_MPICXX -DFFT_FFTW3 -M angle_cg_cmm.cpp > angle_cg_cmm.d
Looking forward your reply!!!