分页: 1 / 1

.sh 文件安装遇到问题

发表于 : 2011-07-06 20:48
xiaoxucumt
今天想要安装一个地震资料解释的软件,opendtect,下载后文件名为lux32-gpl-opendtect-4.2.0.sh。
安装说明中,要求“install with 'sh lux32-gpl-opendtect-4.2.0.sh'and follow the instructions.”
将终端运行至文件目录后,执行上述命令---sh lux32-gpl-opendtect-4.2.0.sh,但是出现了下列错误:

Verifying archive integrity... All good.
Uncompressing ...
eval: 1: ./install-gpl.od: not found

然后查看原来.sh文件所在的文件夹,多出了两个文件“install-gpl.od”以及“lux32.gpl.opendtect-4.2.0.tar.gz”。
但是文件“install-gpl.od”上面自动“加锁了”(文件是只读的)【是不是“eval: 1: ./install-gpl.od: not found”和此有关】。

请问各位大侠在安装sh文件时是否遇到相类似的问题?

Re: .sh 文件安装遇到问题

发表于 : 2011-07-06 21:15
nmsfan
sudo试试??

Re: .sh 文件安装遇到问题

发表于 : 2011-07-06 21:23
tenzu
ls -l 看一下文件属性,所有人改成当前用户
或者切换到root再用那个命令安装

Re: .sh 文件安装遇到问题

发表于 : 2011-07-07 11:46
xiaoxucumt
nmsfan 写了:sudo试试??
运行命令“sudo sh lux32-gpl-opendtect-4.2.0.sh“后,“install-gpl.od”文件上面的锁没拉,但是上一层的文件目录“opendtect”却上了锁啦,
还是报错为:
eval: 1: ./install-gpl.od: not found

Re: .sh 文件安装遇到问题

发表于 : 2011-07-07 11:52
xiaoxucumt
tenzu 写了:ls -l 看一下文件属性,所有人改成当前用户
或者切换到root再用那个命令安装
xiaoxu@xiaoxu-laptop:~/opendtect$ ls -l
总计 69372
-rwxrwxrwx 1 xiaoxu xiaoxu 71034051 2011-07-05 03:44 lux32-gpl-opendtect-4.2.0.sh
xiaoxu@xiaoxu-laptop:~/opendtect$ sudo -i
root@xiaoxu-laptop:~# sudo sh lux32-gpl-opendtect-4.2.0.sh
sh: Can't open lux32-gpl-opendtect-4.2.0.sh
root@xiaoxu-laptop:~# sh lux32-gpl-opendtect-4.2.0.sh
sh: Can't open lux32-gpl-opendtect-4.2.0.sh

大侠 这怎么办啊?