我装Linux就是为了用这个软件,大家帮忙看一下
我之所以开始学习Linux就是为了使用这个程序。可是现在装了Red Hat之后,不会用。这个程序的下载地址是:
http://omlc.ogi.edu/software/polarization/download.html
下载的软件是:
Programs for Red Hat Linux and Knoppix*里面的:Euler Monte Carlo tar
有个说明在:
http://omlc.ogi.edu/software/polarization/
请求帮我看看这个程序,该怎么运行。
请给出详细步骤,谢谢!! make
./iquv
试一试。
请问这两个命令
在什么条件下
在哪里输入
谢谢! 我将mcEuler_L.tar解压到/home/wattwang/hdd/a
然后进入该目录,在终端中键入 make
提示:没有指定的目录,也没有找到makefile。停止
可是我在该目录里面明明看见了makefile,
readme文件也说要键入 make,然后键入 ./iquv
现在该怎么办呢? 好像是makefile有问题,找个熟悉makefile的人看看 我把相关信息贴出来,大家再帮我看看吧
# ls -l /home/watt/hdd/a
总用量 96
-rw-r--r-- 1 wattwang games 2779 2003-09-18array.c
-rw-r--r-- 1 wattwang games 739 2003-09-18array.h
-rw-r--r-- 1 wattwang games 8142 2003-09-18complex.c
-rw-r--r-- 1 wattwang games 3718 2003-09-18complex.h
-rw-r--r-- 1 wattwang games 17982 2003-09-18copying.txt
-rw-r--r-- 1 wattwang games 958 2005-06-13Copyright
-rw-r--r-- 1 wattwang games 728 2003-09-26Makefile
-rw-r--r-- 1 wattwang games 7824 2003-09-18mie.c
-rw-r--r-- 1 wattwang games 828 2003-09-18mie.h
-rw-r--r-- 1 wattwang games 3549 2003-09-18nrutil.c
-rw-r--r-- 1 wattwang games 345 2003-09-18nrutil.h
-rw-r--r-- 1 wattwang games 2664 2005-06-13readme.txt
-rw-r--r-- 1 wattwang games 18982 2005-06-24stok1.c
-rw-r--r-- 1 wattwang games 398 2003-09-18time.h
readme的内容如下:
/***********************************************************
*Copyright Jessica C. Ramella-Roman 2005
*
*README FILE
*
* Contains simple explaination on how to run Monte Carlo code
* and 8 test cases.
*
*
*
* J. Ramella-Roman, S. A. Prahl, S. L. Jacques Three Monte Carlo programs of polarized light transport into scattering media: part I, 2005 Optics Express, submitted 2005.
*
****/
Programs compiles and links with -> make
Programs runs with -> ./iquv
Results of total reflectance an total transmittance are printed on screen for every status of
polarization launched.
Programs generates 100x100 pixel images to contruct Mueller Matrix:
Generated matrices as : HH HV HP HR ; VH VV VP VR ; PH PV PP PR ; RH RV RP RR
H = HORIZONTAL POLARIZED PARALLEL TO REFERENCE FRAME;
V = VERTICAL POLARIZED PERPENDICULAR TO REFERENCE FRAME;
P = 45 POLARIZED;
R = RIGHT CIRCULAR POLARIZED;
/*************/
/* Examples
/*************/
sphere diameter = 2.00000;
mus = 827.81840;
g = 0.76861;
rho = 0.01000;
Slab size=0.00483 =>
Photons = 1e5;
n_media = 1; index of refraction media
n_sphere = 1.59; index of refraction sphere
/* NOMALIZED BY PHOTON LAUNCHED;
R= TOTAL REFLECTANCE ;
T= TOTAL TRANSMITTANCE ;
launch H
R = 0.29299 0.08992 -0.00054 -0.00014
T = 0.70701 0.51252 -0.00094 0.00133
launch V
R = 0.29306 -0.09181 -0.00049 -0.00004
T = 0.70694 -0.51268 -0.00114 0.00011
launch P [ 1 0 1 0]
R = 0.29254 0.00313 -0.08724 -0.00070
T = 0.70746 -0.00033 0.51334 0.00084
launch R
R = 0.29285 -0.00081 -0.00037 -0.00875
T = 0.70715 0.00039 0.00078 0.51589
sphere diameter = 0.01000;
mus = 0.00000;
g = 0.00051;
rho = 0.01000;
Slab size = 275959772.13944 =>
n_media= 1; index of refraction media
n_sphere = 1.59; index of refraction sphere
launch H
R= 0.68934 0.28741 -0.00059 -0.00000
T= 0.31066 0.07206 0.00035 -0.00000
launch V
R= 0.68858 -0.28715 0.00055 -0.00000
T= 0.31142 -0.07305 -0.00013 -0.00000
launch P
R= 0.68850 -0.00040 -0.28743 0.00000
T= 0.31150 0.00017 0.07283 0.00000
launch R
R= 0.68870 -0.00065 0.00032 -0.20367
T= 0.31130 -0.00029 -0.00061 0.04982
makefile的内容如下:
CC = gcc
CFLAGS = -g -Wall -pedantic -ansi -O3
LD = gcc
LDFLAGS = -lm
RM = /bin/rm -f
OBJS = stok1.o mie.o complex.o nrutil.o array.o
PROG = iquv
# top-level rule, to compile everything.
all: $(PROG)
# rule to link the program
$(PROG): $(OBJS)
$(LD) $(LDFLAGS) $(OBJS) -o $(PROG)
# rule for file "stok1.o".
stok1R.o: stok1R.c
$(CC) $(CFLAGS) -c stok1.c
# rule for file "mie.o".
mie.o: mie.c
$(CC) $(CFLAGS) -c mie.c
# rule for file "nrutil.o".
nrutil.o: nrutil.c
$(CC) $(CFLAGS) -c nrutil.c
# rule for file "complex.o".
complex.o: complex.c
$(CC) $(CFLAGS) -c complex.c
# rule for file "array.o".
array.o: array.c
$(CC) $(CFLAGS) -c array.c
# rule for cleaning re-compilable files.
clean:
$(RM) $(PROG) $(OBJS) 我将该软件解压到了/home/watt/hdd/a,
这是readme里面两句关键的话,摘出来:
Programs compiles and links with -> make
Programs runs with -> ./iquv
然后根据里面的readme,做了如下操作。
# cd /home/watt/hdd/a
# ls -l
总用量 96
-rw-r--r-- 1 wattwang games 2779 2003-09-18array.c
-rw-r--r-- 1 wattwang games 739 2003-09-18array.h
-rw-r--r-- 1 wattwang games 8142 2003-09-18complex.c
-rw-r--r-- 1 wattwang games 3718 2003-09-18complex.h
-rw-r--r-- 1 wattwang games 17982 2003-09-18copying.txt
-rw-r--r-- 1 wattwang games 958 2005-06-13Copyright
-rw-r--r-- 1 wattwang games 728 2003-09-26Makefile
-rw-r--r-- 1 wattwang games 7824 2003-09-18mie.c
-rw-r--r-- 1 wattwang games 828 2003-09-18mie.h
-rw-r--r-- 1 wattwang games 3549 2003-09-18nrutil.c
-rw-r--r-- 1 wattwang games 345 2003-09-18nrutil.h
-rw-r--r-- 1 wattwang games 2664 2005-06-13readme.txt
-rw-r--r-- 1 wattwang games 18982 2005-06-24stok1.c
-rw-r--r-- 1 wattwang games 398 2003-09-18time.h
# make
make: *** No targets.Stop.
怎么办?
页:
[1]