无法在Ubuntu下安装Genymotion 2.0.1:[[[:未找到
-
21-12-2019 - |
题
sudo sh genymotion-2.0.1_x86.bin
genymotion-2.0.1_x86.bin: 100: genymotion-2.0.1_x86.bin: [[: not found
genymotion-2.0.1_x86.bin: 106: genymotion-2.0.1_x86.bin: [[: not found
-e
-e Aborting.
.
我在版本1. *上有这个问题,昨天在2.0和今天的2.0.1 on Lubuntu 13.10 x32上。我已经写过开发人员,但如果在谷歌我找不到这个问题的任何事情 - 它只影响我?也许在我身边不好?
如果我在sublime文本中打开这个.bin文件2我有这个代码(从97到111行):
#------------------------------------------------------------------------------
_ask_user() {
local ans=a
while [[ ! "$ans" =~ ^[YyNn]$ ]]
do
echo -ne "$1"
read ans
done
[[ "$ans" =~ ^[Yy]$ ]] && return 0
# if $ans == No
return 1
}
#------------------------------------------------------------------------------
. 解决方案
你应该运行
sudo bash genymotion-2.0.1_x86.bin
.
或
chmod +x genymotion-2.0.1_x86.bin && sudo ./genymotion-2.0.1_x86.bin
.
andrei。
其他提示
我知道问题由Andrei B的答案解决了,但我希望分享一个自动化在Linux上安装Genymotion所需的所有步骤的脚本。
您可以找到脚本在这里。
也许这可以帮助未来的其他用户。
不隶属于 StackOverflow