Calabash Ubuntu 14.04 64 位安装 calabash-android 问题汇总

超爱fitnesse · November 08, 2014 · Last by 思寒_seveniruby replied at November 09, 2014 · 1382 hits

初装Ubuntu 14.04 64位后,安装calabash-android步骤:


  1. sudo apt-get update
  2. sudo apt-get install openjdk-7-jre-headless
  3. sudo apt-get install openjdk-7-jdk
  4. sudo apt-get install ant
  5. sudo apt-get install make


Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-7-openjdk-amd64/lib/tools.jar

安装make之前,运行sudo gem install calabash-android -V失败:

ERROR:  Error installing calabash-android:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.9.1 extconf.rb
checking for main() in -lc... yes
creating Makefile

sh: 1: make: not found

安装Android SDK

  1. sudo apt-get install lib32z1 lib32ncurses5 lib32stdc++6
  2. 下载adt-bundle并解压 下载Linux 64位,并解压到home目录,


export ANDROID_HOME=$HOME/adt-bundle-linux-x86_64-20140702/sdk
export PATH=$ANDROID_HOME/platform-tools:$PATH

安装 lib32z1 lib32ncurses5 lib32stdc++6 之前, 打开ADT报找不到文件错误:

Cannot run program "/home/test/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb": error=2, No such file or directory' while attempting to get adb version from '/home/test/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb'    

~/adt-bundle-linux-x86_64-20140702/sdk/tools$ ./adb
bash: ./adb: No such file or directory

~/adt-bundle-linux-x86_64-20140702/sdk/platform-tools$ ls adb -l
-rwxrwxrwx 1 magima magima 1355536 6 21 18:09 adb


  1. sudo apt-get install ruby
  2. sudo apt-get install ruby1.9.1-dev
  3. 安装 calabash-android


sudo gem sources --remove  
sudo gem sources -a
sudo gem install calabash-android -V


/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
共收到 1 条回复 时间 点赞


需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up