linux unrar命令失效

clipboard.png
更新

clipboard.png

我刚才有重新make make install 可是还是这样

阅读 3.9k
3 个回答

建议用file命令看看文件是32位的还是64位的,一般32位的程序放到64位系统上面执行会出这个问题,有可能你编译出来的程序是32位的。

  1. unrar不一定在/usr/local/bin目录下

  2. 可以使用find命令来确认unrar在那个目录下

  3. 如果找到则把该目录加到PATH变量中即可

  4. /usr/local/bin下的是unrar*

可以贴出你的编译参数吗?

我身边没有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.
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题