gpt4 book ai didi

sh - 安装 Sublime Text 3 后的错误信息

转载 作者:行者123 更新时间:2023-12-04 11:37:06 25 4
gpt4 key购买 nike

我在一个网站上发现我可以使用以下命令在 Fedora 20 上安装 sublime 3:
curl -L http://git.io/3Wr2CQ |嘘
运行命令后,我无法打开 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

最佳答案

更改 ${1}进入 "${1}"所以当没有给定参数时,它在 shell 中计算为空字符串。

还要检查 sublime_text 的位置。我不得不改变路径 /usr/local/sublime-text-3/sublime_text/usr/local/sublime-text-3/sublime_text_3/sublime_text .

关于sh - 安装 Sublime Text 3 后的错误信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28182991/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com