更新
我刚才有重新make make install 可是还是这样
可以贴出你的编译参数吗?
我身边没有Ubuntu,我在centos上找到unrar的替代品unar
[root@web ~]# yum info unar Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Available Packages Name : unar Arch : x86_64 Version : 1.10.1 Release : 1.el7 Size : 1.9 M Repo : epel-home Summary : Multi-format extractor URL : http://unarchiver.c3.cx/commandline License : LGPLv2+ Description : The command-line utilities lsar and unar are capable of listing and extracting : files respectively in several formats including RARv3. unar can serve as a free : and open source replacement of unrar.
unrar不一定在/usr/local/bin目录下
可以使用find命令来确认unrar在那个目录下
如果找到则把该目录加到PATH变量中即可
/usr/local/bin下的是unrar*
建议用file命令看看文件是32位的还是64位的,一般32位的程序放到64位系统上面执行会出这个问题,有可能你编译出来的程序是32位的。