{"action":"created","issue":{"url":"https://api.github.com/repos/arduino/Arduino/issues/3638","labels_url":"https://api.github.com/repos/arduino/Arduino/issues/3638/labels{/name}","comments_url":"https://api.github.com/repos/arduino/Arduino/issues/3638/comments","events_url":"https://api.github.com/repos/arduino/Arduino/issues/3638/events","html_url":"https://github.com/arduino/Arduino/issues/3638","id":99690058,"number":3638,"title":"Rebuilding the IDE unter ElementaryOs(Ubuntu) fails","user":{"login":"NicoHood","id":6888294,"avatar_url":"https://avatars.githubusercontent.com/u/6888294?v=3","gravatar_id":"","url":"https://api.github.com/users/NicoHood","html_url":"https://github.com/NicoHood","followers_url":"https://api.github.com/users/NicoHood/followers","following_url":"https://api.github.com/users/NicoHood/following{/other_user}","gists_url":"https://api.github.com/users/NicoHood/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoHood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoHood/subscriptions","organizations_url":"https://api.github.com/users/NicoHood/orgs","repos_url":"https://api.github.com/users/NicoHood/repos","events_url":"https://api.github.com/users/NicoHood/events{/privacy}","received_events_url":"https://api.github.com/users/NicoHood/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/arduino/Arduino/labels/Component:%20IDE","name":"Component: IDE","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"ffissore","id":510465,"avatar_url":"https://avatars.githubusercontent.com/u/510465?v=3","gravatar_id":"","url":"https://api.github.com/users/ffissore","html_url":"https://github.com/ffissore","followers_url":"https://api.github.com/users/ffissore/followers","following_url":"https://api.github.com/users/ffissore/following{/other_user}","gists_url":"https://api.github.com/users/ffissore/gists{/gist_id}","starred_url":"https://api.github.com/users/ffissore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ffissore/subscriptions","organizations_url":"https://api.github.com/users/ffissore/orgs","repos_url":"https://api.github.com/users/ffissore/repos","events_url":"https://api.github.com/users/ffissore/events{/privacy}","received_events_url":"https://api.github.com/users/ffissore/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/arduino/Arduino/milestones/15","html_url":"https://github.com/arduino/Arduino/milestones/Release%201.6.6","labels_url":"https://api.github.com/repos/arduino/Arduino/milestones/15/labels","id":1158070,"number":15,"title":"Release 1.6.6","description":"","creator":{"login":"ffissore","id":510465,"avatar_url":"https://avatars.githubusercontent.com/u/510465?v=3","gravatar_id":"","url":"https://api.github.com/users/ffissore","html_url":"https://github.com/ffissore","followers_url":"https://api.github.com/users/ffissore/followers","following_url":"https://api.github.com/users/ffissore/following{/other_user}","gists_url":"https://api.github.com/users/ffissore/gists{/gist_id}","starred_url":"https://api.github.com/users/ffissore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ffissore/subscriptions","organizations_url":"https://api.github.com/users/ffissore/orgs","repos_url":"https://api.github.com/users/ffissore/repos","events_url":"https://api.github.com/users/ffissore/events{/privacy}","received_events_url":"https://api.github.com/users/ffissore/received_events","type":"User","site_admin":false},"open_issues":57,"closed_issues":381,"state":"open","created_at":"2015-06-10T07:48:32Z","updated_at":"2015-08-14T14:58:27Z","due_on":null,"closed_at":null},"comments":12,"created_at":"2015-08-07T17:05:07Z","updated_at":"2015-08-16T07:27:07Z","closed_at":null,"body":"Ant run fails at the end with:\r\n```\r\nlinux64-run:\r\n     [exec] /usr/bin/env: bash\r\n     [exec] : No such file or directory\r\n\r\nBUILD FAILED\r\n/home/linuxuser/Documents/Arduino/Arduino/build/build.xml:89: The following error occurred while executing this line:\r\n/home/linuxuser/Documents/Arduino/Arduino/build/build.xml:604: exec returned: 127\r\n```\r\nI've installed and selected java8 with this tutorial:\r\nhttp://ubuntuhandbook.org/index.php/2015/01/install-openjdk-8-ubuntu-14-04-12-04-lts/\r\n\r\nA file named arduino is in /build/linux/work but I cannot start it via a shell too.\r\n\r\nUsed this tutorial:\r\nhttps://github.com/arduino/Arduino/wiki/Building-Arduino"},"comment":{"url":"https://api.github.com/repos/arduino/Arduino/issues/comments/131496603","html_url":"https://github.com/arduino/Arduino/issues/3638#issuecomment-131496603","issue_url":"https://api.github.com/repos/arduino/Arduino/issues/3638","id":131496603,"user":{"login":"NicoHood","id":6888294,"avatar_url":"https://avatars.githubusercontent.com/u/6888294?v=3","gravatar_id":"","url":"https://api.github.com/users/NicoHood","html_url":"https://github.com/NicoHood","followers_url":"https://api.github.com/users/NicoHood/followers","following_url":"https://api.github.com/users/NicoHood/following{/other_user}","gists_url":"https://api.github.com/users/NicoHood/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoHood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoHood/subscriptions","organizations_url":"https://api.github.com/users/NicoHood/orgs","repos_url":"https://api.github.com/users/NicoHood/repos","events_url":"https://api.github.com/users/NicoHood/events{/privacy}","received_events_url":"https://api.github.com/users/NicoHood/received_events","type":"User","site_admin":false},"created_at":"2015-08-16T07:27:07Z","updated_at":"2015-08-16T07:27:07Z","body":"In the test above my script was inside ~/bin, not inside the build path.\r\n\r\nI created a file `test.sh` inside `/build/linux/work` with the content:\r\n```bash\r\n#!/bin/bash\r\necho test\r\n```\r\n\r\nThe I ran:\r\n```bash\r\n/Arduino/Arduino/build/linux/work$ chmod 755 ./test.sh\r\n/Arduino/Arduino/build/linux/work$ ./test.sh \r\ntest\r\n```\r\n\r\nI changed the file to:\r\n```bash\r\n#!/usr/bin/env\r\necho test\r\n```\r\nAnd the error appears again.\r\n\r\n\r\nI edited `linix/work/arduino` like this:\r\n```bash\r\n#!/bin/bash\r\n\r\nAPPDIR=\"$(dirname -- \"$(readlink -f -- \"${0}\")\" )\"\r\n...\r\n```\r\n\r\nResult:\r\n```bash\r\n/Arduino/build/linux/work$ ./arduino\r\nbash: ./arduino: /bin/bash^M: bad interpreter: No such file or directory\r\n/Arduino/build/linux/work$ sh ./arduino\r\n: not found2: ./arduino: \r\n: not found4: ./arduino: \r\n./arduino: 6: ./arduino: Syntax error: word unexpected (expecting \"do\")\r\n/Arduino/build/linux/work$ chmod 755 ./arduino\r\n/Arduino/build/linux/work$ ./arduino\r\nbash: ./arduino: /bin/bash^M: bad interpreter: No such file or directory\r\n```"}}