{"action":"created","issue":{"url":"https://api.github.com/repos/ozra/onyx-lang/issues/75","repository_url":"https://api.github.com/repos/ozra/onyx-lang","labels_url":"https://api.github.com/repos/ozra/onyx-lang/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/ozra/onyx-lang/issues/75/comments","events_url":"https://api.github.com/repos/ozra/onyx-lang/issues/75/events","html_url":"https://github.com/ozra/onyx-lang/issues/75","id":146782603,"number":75,"title":"Cannot build Onyx","user":{"login":"stugol","id":1113153,"avatar_url":"https://avatars.githubusercontent.com/u/1113153?v=3","gravatar_id":"","url":"https://api.github.com/users/stugol","html_url":"https://github.com/stugol","followers_url":"https://api.github.com/users/stugol/followers","following_url":"https://api.github.com/users/stugol/following{/other_user}","gists_url":"https://api.github.com/users/stugol/gists{/gist_id}","starred_url":"https://api.github.com/users/stugol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stugol/subscriptions","organizations_url":"https://api.github.com/users/stugol/orgs","repos_url":"https://api.github.com/users/stugol/repos","events_url":"https://api.github.com/users/stugol/events{/privacy}","received_events_url":"https://api.github.com/users/stugol/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ozra/onyx-lang/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/ozra/onyx-lang/labels/hi-pri","name":"hi-pri","color":"ff2200"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":62,"created_at":"2016-04-08T00:59:30Z","updated_at":"2016-04-30T23:20:48Z","closed_at":null,"body":"Right, I've just tried to build Onyx for the first time. And it's kinda broken:\r\n```\r\n# git clone https://github.com/ozra/onyx-lang.git\r\nCloning into 'onyx-lang'...\r\nremote: Counting objects: 67639, done.\r\nremote: Compressing objects: 100% (849/849), done.\r\nremote: Total 67639 (delta 524), reused 0 (delta 0), pack-reused 66782\r\nReceiving objects: 100% (67639/67639), 24.53 MiB | 2.37 MiB/s, done.\r\nResolving deltas: 100% (45520/45520), done.\r\n\r\n# cd onyx-lang\r\n# make bootstrap\r\n./bootstrap.sh\r\nChecks for required utils\r\n/usr/bin/wget\r\n/usr/bin/wget\r\n/usr/bin/git\r\n/usr/bin/git\r\n\r\nIf shit happens - create an issue at https://github.com/ozra/onyx-lang/issues (first make sure it's not already reported!)\r\n\r\nLet's sudo you first, so that's done:\r\n./bootstrap.sh: line 27: CRYSTAL_VERSION: command not found\r\nGets Crystal\r\n--2016-04-08 01:39:18--  https://github.com/manastech/crystal/releases/download/$%7BCRYSTAL_VERSION%7D/crystal-$%7BCRYSTAL_VERSION%7D-1-linux-x86_64.tar.gz\r\nResolving github.com (github.com)... 192.30.252.130\r\nConnecting to github.com (github.com)|192.30.252.130|:443... connected.\r\nHTTP request sent, awaiting response... 301 Moved Permanently\r\nLocation: https://github.com/crystal-lang/crystal/releases/download/$%7BCRYSTAL_VERSION%7D/crystal-$%7BCRYSTAL_VERSION%7D-1-linux-x86_64.tar.gz [following]\r\n--2016-04-08 01:39:19--  https://github.com/crystal-lang/crystal/releases/download/$%7BCRYSTAL_VERSION%7D/crystal-$%7BCRYSTAL_VERSION%7D-1-linux-x86_64.tar.gz\r\nReusing existing connection to github.com:443.\r\nHTTP request sent, awaiting response... 404 Not Found\r\n2016-04-08 01:39:19 ERROR 404: Not Found.\r\n\r\n\r\ngzip: stdin: unexpected end of file\r\ntar: Child returned status 1\r\ntar: Error is not recoverable: exiting now\r\n./bootstrap.sh: line 33: Installs Crystal ${$CRYSTAL_VERSION} at /opt/cr-ox/: bad substitution\r\ncp: cannot stat `crystal--1/': No such file or directory\r\nmv: cannot stat `/opt/cr-ox/bin/crystal': No such file or directory\r\n\r\nCompiles Onyx compiler in release mode.\r\nThis may take a while - meanwhile you have some options:\r\n\r\n  - stretch your legs and grab a coffee.\r\n  - or a cigar.\r\n  - or perhaps tea?\r\n  - I see... you prefer beer?\r\n  - Or do yoga\r\n  - Or ninja moves! - same same but cooler name!\r\n  - whatever makes your clock tick (literally)\r\n\r\nYou need to have a crystal executable in your path!\r\nInstalls Onyx at /opt/onyx/\r\n\r\ncp: cannot stat `/opt/cr-ox/embedded/': No such file or directory\r\ncp: cannot stat `.build/onyx': No such file or directory\r\nAll done! Enjoy, and don't let the beta-bugs bite!\r\n```\r\nHowever:\r\n```\r\n# crystal -v\r\nCrystal 0.15.0 [0f62400] (Fri Apr  1 17:26:27 UTC 2016)\r\n```\r\n\r\nThe problems seem to be:\r\n- You are attempting to assign CRYSTAL_VERSION with spaces around the `=`\r\n- You cannot interpolate `'`single quoted strings`'`\r\n- The Crystal source has \"301 Moved Permanently\" (non-fatal error)\r\n- The script reports success even after horrible errors occur\r\n- You don't test your damn scripts!\r\n\r\nMight I suggest writing the setup script in Ruby instead? It's a lot less painful. In fact, if you would like, I could write it for you?\r\n\r\n(Incidentally, be aware that a very recent version of Crystal is horribly broken. See Crystal issue 2395)"},"comment":{"url":"https://api.github.com/repos/ozra/onyx-lang/issues/comments/216001907","html_url":"https://github.com/ozra/onyx-lang/issues/75#issuecomment-216001907","issue_url":"https://api.github.com/repos/ozra/onyx-lang/issues/75","id":216001907,"user":{"login":"stugol","id":1113153,"avatar_url":"https://avatars.githubusercontent.com/u/1113153?v=3","gravatar_id":"","url":"https://api.github.com/users/stugol","html_url":"https://github.com/stugol","followers_url":"https://api.github.com/users/stugol/followers","following_url":"https://api.github.com/users/stugol/following{/other_user}","gists_url":"https://api.github.com/users/stugol/gists{/gist_id}","starred_url":"https://api.github.com/users/stugol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stugol/subscriptions","organizations_url":"https://api.github.com/users/stugol/orgs","repos_url":"https://api.github.com/users/stugol/repos","events_url":"https://api.github.com/users/stugol/events{/privacy}","received_events_url":"https://api.github.com/users/stugol/received_events","type":"User","site_admin":false},"created_at":"2016-04-30T23:20:48Z","updated_at":"2016-04-30T23:20:48Z","body":"I managed to statically link my Crystal executables until about a month ago, when it flatly refused to work. Presumably they changed the version dependancy or something. Crystal's build process is horribly brittle.\r\n\r\nIf you'd like SSH access to a remote Debian server, just let me know. It would be trivial to set up."}}