{"id":1265,"date":"2014-05-14T08:48:00","date_gmt":"2014-05-14T00:48:00","guid":{"rendered":"http:\/\/www.strongd.net\/?p=1265"},"modified":"2014-05-14T08:48:00","modified_gmt":"2014-05-14T00:48:00","slug":"how-to-install-googles-android-eclipse-plugin-andor-adb-on-64-bit-debianubuntu","status":"publish","type":"post","link":"https:\/\/www.strongd.net\/?p=1265","title":{"rendered":"How-To: Install Google&#8217;s Android Eclipse Plugin (And\/or Adb) on 64-bit Debian\/Ubuntu"},"content":{"rendered":"<div class=\"entry-content\" style=\"color: #222222;\">\n<p style=\"font-weight: inherit; font-style: inherit;\">Today I had to reinstall the Android plugin on my system and I recently upgraded to a 64-bit development VM. To my surprise the installation didn\u2019t go smoothly at all. After restarting Eclipse twice I was constantly presented with two error messages \u201cFailed to parse the output of \u2018adb version\u2019\u201d and \u201cadb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory\u201d. Your system may also present another error message that reads \u201cadb: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory\u201d.<\/p>\n<p style=\"font-weight: inherit; font-style: inherit;\">I could see that it was looking for libncurses.so.5 however I know that ncurses is already installed on my machine in \/lib as \/lib\/libncurses.so.5. So where exactly was Eclipse\/adb looking for it? It turns out that it wants to find its libraries in the \/lib32 directory but you can\u2019t just symlink it or you\u2019ll get an error that reads \u201cwrong ELF class: ELFCLASS64\u201d. adb needs to have the 32-bit versions installed or it won\u2019t function at all.<\/p>\n<p style=\"font-weight: inherit; font-style: inherit;\">So to get up and running just run the following command to fix the issue:<\/p>\n<pre style=\"font-weight: inherit; font-style: inherit; color: #93a1a1;\"><code style=\"font-weight: inherit; font-style: inherit;\">sudo apt-get install lib32ncurses5 lib32stdc++6\r\n<\/code><\/pre>\n<p style=\"font-weight: inherit; font-style: inherit;\">After that just restart Eclipse and the issue should be fully put to bed. Let me know how it works out for you or if you run into trouble.<\/p>\n<p style=\"font-weight: inherit; font-style: inherit;\">If you still run into trouble like an error message that reads \u201caapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory\u201d you need to install the ia32-libs like this:<\/p>\n<pre style=\"font-weight: inherit; font-style: inherit; color: #93a1a1;\"><code style=\"font-weight: inherit; font-style: inherit;\">sudo apt-get install ia32-libs\r\n<\/code><\/pre>\n<p style=\"font-weight: inherit; font-style: inherit;\">Then rebuild your project and the errors should be gone.<\/p>\n<p style=\"font-weight: inherit; font-style: inherit;\">UPDATE 2012-02-14: Rortian reports that the following command words on Fedora 16:<\/p>\n<pre style=\"font-weight: inherit; font-style: inherit; color: #93a1a1;\"><code style=\"font-weight: inherit; font-style: inherit;\">yum install ncurses-libs.i686 libstdc++.i686 libgcc.i686\r\n<\/code><\/pre>\n<\/div>\n<footer style=\"color: #222222;\">\n<p class=\"meta\" style=\"font-weight: inherit; font-style: inherit;\"><span class=\"byline author vcard\" style=\"font-weight: inherit; font-style: inherit;\">P<\/span><\/p>\n<\/footer>\n","protected":false},"excerpt":{"rendered":"<p>Today I had to reinstall the Android plugin on my system and I recently upgraded to a 64-bit development VM. To my surprise the installation didn\u2019t go smoothly at all. After restarting Eclipse twice I was constantly presented with two error messages \u201cFailed to parse the output of \u2018adb version\u2019\u201d and \u201cadb: error while loading &hellip; <a href=\"https:\/\/www.strongd.net\/?p=1265\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">How-To: Install Google&#8217;s Android Eclipse Plugin (And\/or Adb) on 64-bit Debian\/Ubuntu<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24,6],"tags":[],"class_list":["post-1265","post","type-post","status-publish","format-standard","hentry","category-android","category-linux"],"_links":{"self":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/1265","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1265"}],"version-history":[{"count":1,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/1265\/revisions"}],"predecessor-version":[{"id":1266,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/1265\/revisions\/1266"}],"wp:attachment":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}