{"action":"created","issue":{"url":"https://api.github.com/repos/flutter/flutter/issues/6207","repository_url":"https://api.github.com/repos/flutter/flutter","labels_url":"https://api.github.com/repos/flutter/flutter/issues/6207/labels{/name}","comments_url":"https://api.github.com/repos/flutter/flutter/issues/6207/comments","events_url":"https://api.github.com/repos/flutter/flutter/issues/6207/events","html_url":"https://github.com/flutter/flutter/issues/6207","id":181007864,"node_id":"MDU6SXNzdWUxODEwMDc4NjQ=","number":6207,"title":"Run as a release on Ubuntu 16.04 / libstdc++.so.6 reported missing","user":{"login":"raju-bitter","id":296926,"node_id":"MDQ6VXNlcjI5NjkyNg==","avatar_url":"https://avatars2.githubusercontent.com/u/296926?v=4","gravatar_id":"","url":"https://api.github.com/users/raju-bitter","html_url":"https://github.com/raju-bitter","followers_url":"https://api.github.com/users/raju-bitter/followers","following_url":"https://api.github.com/users/raju-bitter/following{/other_user}","gists_url":"https://api.github.com/users/raju-bitter/gists{/gist_id}","starred_url":"https://api.github.com/users/raju-bitter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raju-bitter/subscriptions","organizations_url":"https://api.github.com/users/raju-bitter/orgs","repos_url":"https://api.github.com/users/raju-bitter/repos","events_url":"https://api.github.com/users/raju-bitter/events{/privacy}","received_events_url":"https://api.github.com/users/raju-bitter/received_events","type":"User","site_admin":false},"labels":[{"id":283479843,"node_id":"MDU6TGFiZWwyODM0Nzk4NDM=","url":"https://api.github.com/repos/flutter/flutter/labels/easy%20fix","name":"easy fix","color":"006b75","default":false},{"id":536115083,"node_id":"MDU6TGFiZWw1MzYxMTUwODM=","url":"https://api.github.com/repos/flutter/flutter/labels/t:%20flutter%20doctor","name":"t: flutter doctor","color":"5319e7","default":false},{"id":283479900,"node_id":"MDU6TGFiZWwyODM0Nzk5MDA=","url":"https://api.github.com/repos/flutter/flutter/labels/%E2%96%A3%20platform-android","name":"▣ platform-android","color":"003570","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/flutter/flutter/milestones/20","html_url":"https://github.com/flutter/flutter/milestone/20","labels_url":"https://api.github.com/repos/flutter/flutter/milestones/20/labels","id":2005336,"node_id":"MDk6TWlsZXN0b25lMjAwNTMzNg==","number":20,"title":"2: Make Early Adopters happy","description":"Support enough for us to feel confident inviting early-adopter developers to start using Flutter for their applications. They may not have every feature they need to take their app to production, but they can start their journey and we support their workflows.","creator":{"login":"Hixie","id":551196,"node_id":"MDQ6VXNlcjU1MTE5Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/551196?v=4","gravatar_id":"","url":"https://api.github.com/users/Hixie","html_url":"https://github.com/Hixie","followers_url":"https://api.github.com/users/Hixie/followers","following_url":"https://api.github.com/users/Hixie/following{/other_user}","gists_url":"https://api.github.com/users/Hixie/gists{/gist_id}","starred_url":"https://api.github.com/users/Hixie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hixie/subscriptions","organizations_url":"https://api.github.com/users/Hixie/orgs","repos_url":"https://api.github.com/users/Hixie/repos","events_url":"https://api.github.com/users/Hixie/events{/privacy}","received_events_url":"https://api.github.com/users/Hixie/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":384,"state":"closed","created_at":"2016-09-14T22:22:01Z","updated_at":"2018-02-01T13:57:55Z","due_on":"2017-05-05T07:00:00Z","closed_at":"2017-05-22T18:00:32Z"},"comments":35,"created_at":"2016-10-04T21:19:50Z","updated_at":"2018-08-20T11:16:32Z","closed_at":"2017-03-15T22:22:54Z","author_association":"CONTRIBUTOR","body":"**Admin edit**: if you are experiencing this issue, please try to install `lib32stdc++` using e.g.:\r\n\r\n```\r\nsudo apt-get install lib32stdc++6\r\n```\r\n\r\nOriginal comment below line\r\n\r\n---------------------------------\r\n\r\nAfter creating a helloworld project, tried to run the app on Android as a release on Ubuntu. Launching in debug mode worked fine, but when I tried to run as a release, I got an error that 'libstdc++.so.6' is missing.\r\n\r\n**1) Launching with missing library**\r\nraju@titan:~/coding/flutter/helloworld$ flutter run --release --full-restart\r\nBuilding APK in release mode (android-arm-release)...  \r\nDart snapshot generator failed with exit code 127\r\n/home/raju/dev/flutter/bin/cache/artifacts/engine/android-arm-release/linux-x64/gen_snapshot: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory\r\nFailed to build AOT snapshot\r\n\r\n**2) Installing the missing package**\r\nraju@titan:~/coding/flutter/helloworld$ sudo apt-get install lib32stdc++6\r\n[sudo] password for raju: \r\nReading package lists... Done\r\nBuilding dependency tree  \r\nReading state information... Done\r\nThe following NEW packages will be installed:\r\n  lib32stdc++6\r\n0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.\r\nNeed to get 0 B/404 kB of archives.\r\nAfter this operation, 1,901 kB of additional disk space will be used.\r\nSelecting previously unselected package lib32stdc++6.\r\n(Reading database ... 253193 files and directories currently installed.)\r\nPreparing to unpack .../lib32stdc++6_5.4.0-6ubuntu1~16.04.2_amd64.deb ...\r\nUnpacking lib32stdc++6 (5.4.0-6ubuntu1~16.04.2) ...\r\nProcessing triggers for libc-bin (2.23-0ubuntu3) ...\r\nSetting up lib32stdc++6 (5.4.0-6ubuntu1~16.04.2) ...\r\nProcessing triggers for libc-bin (2.23-0ubuntu3) ...\r\n\r\n**3) Running as release again**\r\nraju@titan:~/coding/flutter/helloworld$ flutter run --release --full-restart\r\nBuilding APK in release mode (android-arm-release)...  \r\nWarning: signing the APK using the debug keystore.\r\nBuilt build/app.apk (8.1MB).\r\nRunning lib/main.dart on SM N920S...\r\n--------- beginning of main\r\nApplication running.\r\n\r\n**Solution**\r\nThe _flutter doctor_ tool could check if the library has been installed, or it could be added to the list of required tools here: https://flutter.io/setup/#system-requirements\r\n\r\n**Steps to reproduce: System setup and tool installation performed**\r\n1) Install Ubuntu 16.04 using this image\r\nhttp://releases.ubuntu.com/16.04/ubuntu-16.04-desktop-amd64.iso\r\n\r\n2) Install Flutter following these instructions\r\nhttps://flutter.io/setup/#get-the-flutter-sdk\r\nsudo sh -c 'curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'\r\nsudo sh -c 'curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list'\r\nsudo apt-get update\r\nsudo apt-get install dart\r\n\r\n3) Install Dart SDK for Atom\r\nhttps://www.dartlang.org/install/linux\r\n\r\n3) Install Oracle Java and Android Studio with SDK\r\na) Java\r\nsudo add-apt-repository ppa:webupd8team/java\r\nsudo apt-get update\r\nsudo apt install oracle-java8-installer\r\nsudo apt install oracle-java8-set-default\r\nb) Android Studio\r\nDownloaded deb from website\r\nInstalled Android Nougat SDK\r\n\r\n4) Install Atom\r\nDownloaded deb file from atom.io\r\nInstalled deb\r\n\r\na) Dart & Flutter for Atom\r\napm install flutter\r\napm install dartlang\r\n\r\n5) `flutter doctor` output now\r\nraju@ubuntu:~/coding$ flutter doctor\r\n[✓] Flutter (on Linux, channel master)\r\n    • Flutter at /home/raju/dev/flutter\r\n    • Framework revision 9f673ad445 (5 hours ago), 2016-10-04 08:20:24\r\n    • Engine revision 27d012a790\r\n    • Tools Dart version 1.20.0-dev.5.0\r\n\r\n[✓] Android toolchain - develop for Android devices (Android SDK 24.0.3)\r\n    • Android SDK at /home/raju/Android/Sdk\r\n    • Platform android-24, build-tools 24.0.3\r\n    • Java(TM) SE Runtime Environment (build 1.8.0_101-b13)\r\n\r\n[✓] Atom - a lightweight development environment for Flutter\r\n    • flutter plugin version 0.2.6\r\n    • dartlang plugin version 0.6.40\r\n\r\n[✓] Connected devices\r\n    • SM N920S • 05157df5d93b793d • android-arm\r\n\r\n6) Create new app\r\nflutter create helloworld\r\ncd helloworld\r\nflutter run\r\n"},"comment":{"url":"https://api.github.com/repos/flutter/flutter/issues/comments/414281685","html_url":"https://github.com/flutter/flutter/issues/6207#issuecomment-414281685","issue_url":"https://api.github.com/repos/flutter/flutter/issues/6207","id":414281685,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDI4MTY4NQ==","user":{"login":"funkybaboon","id":2966599,"node_id":"MDQ6VXNlcjI5NjY1OTk=","avatar_url":"https://avatars3.githubusercontent.com/u/2966599?v=4","gravatar_id":"","url":"https://api.github.com/users/funkybaboon","html_url":"https://github.com/funkybaboon","followers_url":"https://api.github.com/users/funkybaboon/followers","following_url":"https://api.github.com/users/funkybaboon/following{/other_user}","gists_url":"https://api.github.com/users/funkybaboon/gists{/gist_id}","starred_url":"https://api.github.com/users/funkybaboon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/funkybaboon/subscriptions","organizations_url":"https://api.github.com/users/funkybaboon/orgs","repos_url":"https://api.github.com/users/funkybaboon/repos","events_url":"https://api.github.com/users/funkybaboon/events{/privacy}","received_events_url":"https://api.github.com/users/funkybaboon/received_events","type":"User","site_admin":false},"created_at":"2018-08-20T11:16:32Z","updated_at":"2018-08-20T11:16:32Z","author_association":"NONE","body":"How do I fix this on centos7? Installing `libstdc++` ist not working.\r\n\r\n```\r\n[root@9f4595cf5fe7 /]# yum -y -q install libstdc++\r\nPackage libstdc++-4.8.5-28.el7_5.1.x86_64 already installed and latest version\r\n[root@9f4595cf5fe7 /]# flutter doctor\r\nDoctor summary (to see all details, run flutter doctor -v):\r\n[!] Flutter (Channel unknown, v0.5.7, on Linux, locale en_US)\r\n    ✗ Downloaded executables cannot execute on host.\r\n      See https://github.com/flutter/flutter/issues/6207 for more information\r\n      On Debian/Ubuntu/Mint: sudo apt-get install lib32stdc++6\r\n      On Fedora: dnf install libstdc++.i686\r\n      On Arch: pacman -S lib32-libstdc++5\r\n      \r\n[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)\r\n[✗] Android Studio (not installed)\r\n[!] Connected devices\r\n    ! No devices available\r\n\r\n! Doctor found issues in 3 categories.\r\n```"}}
{"actor":{"display_login":"funkybaboon"}}