关于用make install安装程序的问题

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
renguomin
帖子: 10
注册时间: 2010-01-13 23:26

关于用make install安装程序的问题

#1

帖子 renguomin » 2011-04-03 11:44

软件是专业方面的软件,下载后,按照readme的步骤,解压,make,make install,但使用时会出现几个问题,有点长,大家耐心看啊:

1. readme里说,软件的使用方法是在命令行里输入"ABC <-options> <files>"(ABC是软件名字,files是需要操作的文件的路径)来使用软件。但是我每次这样输都提示command not found,我大概知道是因为系统并不认识ABC这个命令。当我进入软件安装目录,里面并没有叫ABC的这个可执行程序,只有一个叫ABC的perl脚本,我必须使用命令"perl ABC <-options> <files>"才正常使用软件。

2. 最近有安装了另外一个软件,readme里的说明跟之前一样,解压,make,make install,都很成功,但最后有一步make testrun,总是报错:报错如下
adrian@guomin-Desktop-Ubuntu:~/bioinfo/tRNAscan-SE-1.3$ make testrun

Running tRNAscan-SE on sample sequence F22B2.fa

tRNAscan-SE -d -y -o testrun.out Demo/F22B7.fa
/bin/sh: tRNAscan-SE: not found
tRNAscan-SE did NOT complete properly.
diff: testrun.out: No such file or directory
Test run result file differs from reference result file!
tRNAscan-SE may not have executed correctly.
/bin/sh: @echo: not found
Please double check for correct compilation & installation
and try 'make testrun' again.
/bin/sh: @echo: not found
make: *** [testrun] Error 127
我感觉这个错误其实与之前的command not found很像,就是系统不能识别以软件的名字作为命令,我想请问如何解决问题?如果你需要提供软件的源码想在自己电脑上试装一下,请留下qq,万分感谢!!!
levee
帖子: 3030
注册时间: 2009-10-03 23:31

Re: 关于用make install安装程序的问题

#2

帖子 levee » 2011-04-03 22:55

在make install的时候有没有加上sudo?如果没有的话,因为权限不够,普通用户不能将程序安装到系统目录下,因此会导致“command not found”。
回复