1
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 上,今天在 Lubuntu 13.10 x32 上的 2.0.1 上。我已经写信给开发人员,但是如果在 Google 中我找不到任何关于这个问题的信息 - 它只影响我吗?也许我身边有什么不好的东西?

如果我在 Sublime Text 2 中打开这个 .bin 文件,我有这个代码(从第 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
}
#------------------------------------------------------------------------------
4

2 回答 2

5

你应该跑

sudo bash genymotion-2.0.1_x86.bin

或者

chmod +x genymotion-2.0.1_x86.bin && sudo ./genymotion-2.0.1_x86.bin

安德烈。

于 2013-11-16T12:39:00.087 回答
0

我知道 Andrei B 的回答解决了这个问题,但我想分享一个脚本,它可以自动执行在 linux 上安装 genymotion 所需的所有步骤。您可以在此处
找到脚本。

也许这可以在将来帮助其他一些用户。

于 2017-07-08T07:41:17.383 回答