24小时热门版块排行榜    

查看: 890  |  回复: 6

田山东

捐助贵宾 (著名写手)


[交流] arpack96.tar.Z和arpack96.tar.gz有何区别

Compressed tar file of distribution ( arpack96.tar.Z) and patch (patch.tar.Z)
GNU zipped tar file of distribution ( arpack96.tar.gz) and patch (patch.tar.gz)

这两个文件有哦什么区别?GNU是干嘛的?我的系统是
Linux version 2.6.37.1-1.2-desktop (geeko@buildhost) (gcc version 4.5.1 20101208 [gcc-4_5-branch revision 167585] (SUSE Linux) ) #1 SMP PREEMPT
应该用arpack96.tar.Z吧?
正在细细摸索,已经装好lapack了。正在摸索arpack,感觉就那么几个语句,背会了,怎么还是不行呢?
而且lib路径也调整了,调整到我安装的liblapack下面了

###########################################################################
#
#  Program:         ARPACK
#
#  Module:          ARmake.inc
#
#  Purpose:         Top-level Definitions
#
#  Creation date:   February 22, 1996
#
#  Modified:
#
#  Send bug reports, comments or suggestions to arpack@caam.rice.edu
#
############################################################################
#
# %---------------------------------%
# |  SECTION 1: PATHS AND LIBRARIES |
# %---------------------------------%
#
#
# %--------------------------------------%
# | You should change the definition of  |
# | home if ARPACK is built some place   |
# | other than your home directory.      |
# %--------------------------------------%
#
#home = $(HOME)/ARPACK
home = /home/tianhongyu/arpack/ARPACK
#
#  %--------------------------------------%
#  | The platform identifier to suffix to |
#  | the end of library names             |
#  %--------------------------------------%
#
PLAT = LINUX
#
#  %------------------------------------------------------%
#  | The directories to find the various pieces of ARPACK |
#  %------------------------------------------------------%
#
BLASdir      = /home/tianhongyu/arpack/ARPACK/BLAS
LAPACKdir    = /home/tianhongyu/arpack/ARPACK/LAPACK
UTILdir      = /home/tianhongyu/arpack/ARPACK/UTIL
SRCdir       = /home/tianhongyu/arpack/ARPACK/SRC
#
DIRS        = $(BLASdir) $(LAPACKdir) $(UTILdir) $(SRCdir)
#
# %-------------------------------------------------------------------%
# | Comment out the previous line and uncomment the following         |
# | if you already have the BLAS and LAPACK installed on your system. |
# | NOTE: ARPACK assumes the use of LAPACK version 2 codes.           |
# %-------------------------------------------------------------------%
#
#DIRS         = $(UTILdir) $(SRCdir)
#
# %---------------------------------------------------%
# | The name of the libraries to be created/linked to |
# %---------------------------------------------------%
#
ARPACKLIB  = /home/tianhongyu/arpack/libarpack_$(PLAT).a
LAPACKLIB =/home/tianhongyu/lapack/liblapack.a
BLASLIB = /home/tianhongyu/lapack/libblas.a
#
ALIBS =  $(ARPACKLIB) $(LAPACKLIB) $(BLASLIB)
#
#
# %---------------------------------------------------------%
# |                  SECTION 2: COMPILERS                   |
# |                                                         |
# | The following macros specify compilers, linker/loaders, |
# | the archiver, and their options.  You need to make sure |
# | these are correct for your system.                      |
# %---------------------------------------------------------%
#
#
# %------------------------------%
# | Make our own suffixes' list. |
# %------------------------------%
#
.SUFFIXES:
.SUFFIXES:        .f        .o
#
# %------------------%
# | Default command. |
# %------------------%
#
.DEFAULT:
        @$(ECHO) "Unknown target $@, try:  make help"
#
# %-------------------------------------------%
# |  Command to build .o files from .f files. |
# %-------------------------------------------%
#
.f.o:
        @$(ECHO) Making $@ from $<
        @$(FC) -c $(FFLAGS) $<
#
# %-----------------------------------------%
# | Various compilation programs and flags. |
# | You need to make sure these are correct |
# | for your system.                        |
# %-----------------------------------------%
#
FC      = gfortran
FFLAGS        = -O

LDFLAGS =
CD      = cd

ECHO    = echo

LN      = ln
LNFLAGS = -s

MAKE    = /usr/bin/make

RM      = rm
RMFLAGS = -f

SHELL   = /bin/sh
#
#  %----------------------------------------------------------------%
#  | The archiver and the flag(s) to use when building an archive   |
#  | (library).  Also the ranlib routine.  If your system has no    |
#  | ranlib, set RANLIB = touch.                                    |
#  %----------------------------------------------------------------%
#
AR = ar
ARFLAGS = rv
#RANLIB  = touch
RANLIB   = ranlib
#
# %----------------------------------%
# | This is the general help target. |
# %----------------------------------%
#
help:
        @$(ECHO) "usage: make ?"
回复此楼

» 猜你喜欢

» 抢金币啦!回帖就可以得到:

查看全部散金贴

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

田山东

捐助贵宾 (著名写手)


我一句话一句话的来吧:
2. Recent bug fixes are included in patch.tar.gz and ppatch.tar.gz
   (only needed if you are using PARPACK also.)  If you have not
   retrieved these files, please do so and place them in the
   directory right above the current directory.  (They should
   be in the same directory where arpack96.tar reside).
   Use uncompress or gunzip to unzip the tar files, and use 'tar -xvf '
   to unbundle these patches.  The source codes in these patches will
   overwrite those contained in arpack96.tar and parpack96.tar.
2楼2012-10-14 10:56:25
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

lurencyj

木虫 (著名写手)



田山东(金币+1): 谢谢参与
以前跟楼主说过,即使用了patch,程序还是有bug...

一个是数学函数longabs,...之类的,还有就是second.f里面的函数有bug,关于怎么修改,官方没有继续打补丁了。。。。
3楼2012-10-14 21:59:30
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

田山东(金币+1): 谢谢参与
只回答你标题中的问题

这两个文件内容上没有什么区别,只是打包方式的不同。.Z 用的是传统 Unix 中的 compress 压缩的,而 .gz 用的是 gzip 压缩的。

GNU 是 Gnu's Not Unix 和简称,至于它到底是什么,自己去  wikipedia 上看一下……
6楼2012-10-15 07:35:25
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
简单回复
gyfwon4楼
2012-10-14 22:28   回复  
田山东(金币+1): 谢谢参与
佐手.5楼
2012-10-14 22:46   回复  
田山东(金币+1): 谢谢参与
hxp28007楼
2012-10-15 08:36   回复  
田山东(金币+1): 谢谢参与
相关版块跳转 我要订阅楼主 田山东 的主题更新
普通表情 高级回复 (可上传附件)
信息提示
请填处理意见