QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 932|回复: 6

我装Linux就是为了用这个软件,大家帮忙看一下

[复制链接]
发表于 2006-7-22 12:08:12 | 显示全部楼层 |阅读模式
我之所以开始学习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/

请求帮我看看这个程序,该怎么运行。
请给出详细步骤,谢谢!!
WeiMingzhi 该用户已被删除
发表于 2006-7-22 12:25:39 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

 楼主| 发表于 2006-7-22 14:12:08 | 显示全部楼层
[quote:24ee183fea="WeiMingzhi"]make
./iquv

试一试。[/quote]

请问这两个命令
在什么条件下
在哪里输入
谢谢!
回复

使用道具 举报

 楼主| 发表于 2006-7-22 15:00:38 | 显示全部楼层
我将mcEuler_L.tar解压到/home/wattwang/hdd/a
然后进入该目录,在终端中键入 make
提示:没有指定的目录,也没有找到makefile。停止
可是我在该目录里面明明看见了makefile,
readme文件也说要键入 make,然后键入 ./iquv
现在该怎么办呢?
回复

使用道具 举报

发表于 2006-7-22 18:06:47 | 显示全部楼层
好像是makefile有问题,找个熟悉makefile的人看看
回复

使用道具 举报

 楼主| 发表于 2006-7-23 14:09:53 | 显示全部楼层
我把相关信息贴出来,大家再帮我看看吧

[root@localhost root]# ls -l /home/watt/hdd/a
总用量 96
-rw-r--r--    1 wattwang games        2779 2003-09-18  array.c
-rw-r--r--    1 wattwang games         739 2003-09-18  array.h
-rw-r--r--    1 wattwang games        8142 2003-09-18  complex.c
-rw-r--r--    1 wattwang games        3718 2003-09-18  complex.h
-rw-r--r--    1 wattwang games       17982 2003-09-18  copying.txt
-rw-r--r--    1 wattwang games         958 2005-06-13  Copyright
-rw-r--r--    1 wattwang games         728 2003-09-26  Makefile
-rw-r--r--    1 wattwang games        7824 2003-09-18  mie.c
-rw-r--r--    1 wattwang games         828 2003-09-18  mie.h
-rw-r--r--    1 wattwang games        3549 2003-09-18  nrutil.c
-rw-r--r--    1 wattwang games         345 2003-09-18  nrutil.h
-rw-r--r--    1 wattwang games        2664 2005-06-13  readme.txt
-rw-r--r--    1 wattwang games       18982 2005-06-24  stok1.c
-rw-r--r--    1 wattwang games         398 2003-09-18  time.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; [micro m]
mus = 827.81840; [cm^-1]
g   = 0.76861;
rho = 0.01000; [particle /(micro m)^3]
Slab size=0.00483 [cm] => [4/mus]
Photons = 1e5;
n_media = 1; index of refraction media
n_sphere = 1.59; index of refraction sphere

/* NOMALIZED BY PHOTON LAUNCHED;

R= TOTAL REFLECTANCE [I Q U V];
T= TOTAL TRANSMITTANCE [I Q U V];

launch H [1 1 0 0]

R = 0.29299       0.08992        -0.00054        -0.00014
T = 0.70701      0.51252         -0.00094        0.00133

launch V [1 -1 0 0]
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 [1 0 0 1]

R = 0.29285     -0.00081        -0.00037        -0.00875
T = 0.70715      0.00039         0.00078         0.51589



sphere diameter = 0.01000; [micro m]
mus                = 0.00000;[cm^-1]
g                = 0.00051;
rho                = 0.01000;[particle /(micro m)^3]
Slab size = 275959772.13944 [cm] =>[4/mus]
n_media  = 1; index of refraction media
n_sphere = 1.59; index of refraction sphere

launch H [1 1 0 0]
R= 0.68934       0.28741         -0.00059        -0.00000
T= 0.31066      0.07206         0.00035         -0.00000

launch V [1 0 1 0]
R= 0.68858       -0.28715        0.00055         -0.00000
T= 0.31142      -0.07305        -0.00013        -0.00000

launch P [1 0 1 0]
R= 0.68850       -0.00040        -0.28743        0.00000
T= 0.31150      0.00017         0.07283         0.00000

launch R [1 0 0 1]
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)
回复

使用道具 举报

 楼主| 发表于 2006-7-24 23:24:30 | 显示全部楼层
我将该软件解压到了/home/watt/hdd/a,
这是readme里面两句关键的话,摘出来:
Programs compiles and links with -> make
Programs runs with -> ./iquv

然后根据里面的readme,做了如下操作。
[root@localhost c]# cd /home/watt/hdd/a
[root@localhost a]# ls -l
总用量 96
-rw-r--r--    1 wattwang games        2779 2003-09-18  array.c
-rw-r--r--    1 wattwang games         739 2003-09-18  array.h
-rw-r--r--    1 wattwang games        8142 2003-09-18  complex.c
-rw-r--r--    1 wattwang games        3718 2003-09-18  complex.h
-rw-r--r--    1 wattwang games       17982 2003-09-18  copying.txt
-rw-r--r--    1 wattwang games         958 2005-06-13  Copyright
-rw-r--r--    1 wattwang games         728 2003-09-26  Makefile
-rw-r--r--    1 wattwang games        7824 2003-09-18  mie.c
-rw-r--r--    1 wattwang games         828 2003-09-18  mie.h
-rw-r--r--    1 wattwang games        3549 2003-09-18  nrutil.c
-rw-r--r--    1 wattwang games         345 2003-09-18  nrutil.h
-rw-r--r--    1 wattwang games        2664 2005-06-13  readme.txt
-rw-r--r--    1 wattwang games       18982 2005-06-24  stok1.c
-rw-r--r--    1 wattwang games         398 2003-09-18  time.h
[root@localhost a]# make
make: *** No targets.  Stop.

怎么办?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-22 19:36 , Processed in 0.042393 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表