作者:xhl583337984 | 来源:互联网 | 2023-05-24 17:47
我在一个网站上发现我可以使用以下命令在Fedora 20上安装sublime 3:curl -L http://git.io/3Wr2CQ | sh运行命令后,我无法打开Sublime.我收到以下错误:
/usr/local/bin/subl: line 2: [: ==: unary operator expected
请在下面看到终端的副本:
[pc@pc-z710 ~]$ curl -L http://git.io/3Wr2CQ | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
100 1065 100 1065 0 0 543 0 0:00:01 0:00:01 --:--:-- 1040k
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7300k 100 7300k 0 0 2625k 0 0:00:02 0:00:02 --:--:-- 2625k
[sudo] password for red:
mv: inter-device move failed: ‘/home/red/sublime_text_3/’ to ‘/opt/sublime_text_3’; unable to remove target: Directory not empty
ln: failed to create symbolic link ‘/bin/subl’: File exists
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 166k 100 166k 0 0 103k 0 0:00:01 0:00:01 --:--:-- 103k
Sublime Text 3 installed successfully!
Run with: subl
[pc@pc-z710 ~]$ subl
/usr/local/bin/subl: line 2: [: ==: unary operator expected
[pc@pc-z710 ~]$ uname -m
x86_64
Huupke..
8
更改${1}
成"${1}"
没有给出参数时,所以它的计算结果为空字符串壳.
还要检查sublime_text的位置.我不得不改变路径/usr/local/sublime-text-3/sublime_text
来/usr/local/sublime-text-3/sublime_text_3/sublime_text
.
1> Huupke..:
更改${1}
成"${1}"
没有给出参数时,所以它的计算结果为空字符串壳.
还要检查sublime_text的位置.我不得不改变路径/usr/local/sublime-text-3/sublime_text
来/usr/local/sublime-text-3/sublime_text_3/sublime_text
.