Heim > Fragen und Antworten > Hauptteil
PHP中文网2017-04-24 16:00:53
unrar不一定在/usr/local/bin目录下
可以使用find命令来确认unrar在那个目录下
如果找到则把该目录加到PATH变量中即可
/usr/local/bin下的是unrar*
怪我咯2017-04-24 16:00:53
可以贴出你的编译参数吗?
我身边没有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.