{"action":"created","issue":{"url":"https://api.github.com/repos/DoomHammer/brewstrap/issues/1","repository_url":"https://api.github.com/repos/DoomHammer/brewstrap","labels_url":"https://api.github.com/repos/DoomHammer/brewstrap/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/DoomHammer/brewstrap/issues/1/comments","events_url":"https://api.github.com/repos/DoomHammer/brewstrap/issues/1/events","html_url":"https://github.com/DoomHammer/brewstrap/issues/1","id":154123351,"number":1,"title":"initial look, some issues","user":{"login":"minektur","id":2857008,"avatar_url":"https://avatars.githubusercontent.com/u/2857008?v=3","gravatar_id":"","url":"https://api.github.com/users/minektur","html_url":"https://github.com/minektur","followers_url":"https://api.github.com/users/minektur/followers","following_url":"https://api.github.com/users/minektur/following{/other_user}","gists_url":"https://api.github.com/users/minektur/gists{/gist_id}","starred_url":"https://api.github.com/users/minektur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minektur/subscriptions","organizations_url":"https://api.github.com/users/minektur/orgs","repos_url":"https://api.github.com/users/minektur/repos","events_url":"https://api.github.com/users/minektur/events{/privacy}","received_events_url":"https://api.github.com/users/minektur/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DoomHammer/brewstrap/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"DoomHammer","id":695373,"avatar_url":"https://avatars.githubusercontent.com/u/695373?v=3","gravatar_id":"","url":"https://api.github.com/users/DoomHammer","html_url":"https://github.com/DoomHammer","followers_url":"https://api.github.com/users/DoomHammer/followers","following_url":"https://api.github.com/users/DoomHammer/following{/other_user}","gists_url":"https://api.github.com/users/DoomHammer/gists{/gist_id}","starred_url":"https://api.github.com/users/DoomHammer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoomHammer/subscriptions","organizations_url":"https://api.github.com/users/DoomHammer/orgs","repos_url":"https://api.github.com/users/DoomHammer/repos","events_url":"https://api.github.com/users/DoomHammer/events{/privacy}","received_events_url":"https://api.github.com/users/DoomHammer/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2016-05-10T22:44:23Z","updated_at":"2016-05-11T23:33:11Z","closed_at":null,"body":"first issue with brewstrap:  chromebooks have the user homedir mounted noexec - so... I see that you're extracting and running in $HOME - I set my $home to /usr/local/tempbrew, which  is ok in the short run - might want to prompt for a spot, or pick $HOMEBREW_PREFIX/.brewstrap or something  My goal is to end up with linuxbrew installed in /usr/local, but still have a normal ~.linuxbrew directory with cache and logs etc.\r\n\r\nThis brings up the point that I need to set $HOMEBREW_PREFIX to the right place (/usr/local in my case)  Perhaps update the readme to mention setting it.\r\n\r\nIn this case this is what I do...\r\n\r\n    export HOMEBREW_PREFIX=/usr/local\r\n    bash brewstrap-0.1.sh\r\n\r\n    brewstrap-0.1.sh: line 16 /home/chronos/user/.linuxbrew/Cellar/brewstrap/0.1/bin/ruby: Permission denied\r\n\r\nso I edit brewstrap-0.1.sh and change BREWSTRAP_DIR to \r\n    BREWSTRAP_DIR=$HOMEBREW_PREFIX/.linuxbrew/Cellar/brewstrap/$VERSION\r\nand fix up a few other places it is used (replacing $HOME)\r\n\r\n\r\nNext, the linuxbrew-install file you download hard-code munges HOMEBREW_PREFIX overwriting the one I set... even though the script comments at the top claim otherwise...  so I fake that by inserting a sleep in brewstrap-0.1.sh just before linuxbrew-install is invoked, I swap in a modified version that sets HOMEBREW_PREFIX right.\r\n\r\nSecond, at some point you swap out /usr/bin/which with /bin/which or something or other.  On my chromebook /bin/which doesn't exist, only /usr/bin/which....  curl also - it lives at /usr/bin/curl but... hm.  I just edited linuxbrew-install to just call 'which' rather than by full path.  This probably isn't the right long term fix.\r\n\r\n    Press RETURN to continue or any other key to abort\r\n    ==> Downloading and installing Linuxbrew...\r\n    sh: /bin/which: not found\r\n    curl:  (1) Protocol \"git\" not supported or disabled in libcurl\r\n    \r\n    gzip: stdin: unexpected end of file\r\n    tar: Child returned status 1\r\n\r\nfollowed by a bunch of brew: command not found lines...\r\n\r\nSo, fixing up /bin/which back to /usr/bin/which makes that work and the curl error above also disappears.\r\n\r\n\r\nA lot more happens - lots of git-clone errors and stuff I'll have to dig in to later.  \r\n\r\nLooks like some stuff is missing, some ends up in /usr/local/.linuxbrew/Cellar and some stuff is in /usr/local/\r\n\r\nso far most of the issues seem to be related to the fact that I'm NOT building in $HOME/.linuxbrew (because of the noexec thing...)\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/DoomHammer/brewstrap/issues/comments/218620587","html_url":"https://github.com/DoomHammer/brewstrap/issues/1#issuecomment-218620587","issue_url":"https://api.github.com/repos/DoomHammer/brewstrap/issues/1","id":218620587,"user":{"login":"sjackman","id":291551,"avatar_url":"https://avatars.githubusercontent.com/u/291551?v=3","gravatar_id":"","url":"https://api.github.com/users/sjackman","html_url":"https://github.com/sjackman","followers_url":"https://api.github.com/users/sjackman/followers","following_url":"https://api.github.com/users/sjackman/following{/other_user}","gists_url":"https://api.github.com/users/sjackman/gists{/gist_id}","starred_url":"https://api.github.com/users/sjackman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjackman/subscriptions","organizations_url":"https://api.github.com/users/sjackman/orgs","repos_url":"https://api.github.com/users/sjackman/repos","events_url":"https://api.github.com/users/sjackman/events{/privacy}","received_events_url":"https://api.github.com/users/sjackman/received_events","type":"User","site_admin":false},"created_at":"2016-05-11T23:33:11Z","updated_at":"2016-05-11T23:33:11Z","body":"I belive setting `LIBRARY_PATH` to the location of `crt1.o` and `crti.o` should work."}}