{"action":"created","issue":{"url":"https://api.github.com/repos/elm-lang/elm-platform/issues/15","labels_url":"https://api.github.com/repos/elm-lang/elm-platform/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/elm-lang/elm-platform/issues/15/comments","events_url":"https://api.github.com/repos/elm-lang/elm-platform/issues/15/events","html_url":"https://github.com/elm-lang/elm-platform/issues/15","id":41582585,"number":15,"title":"Installing Elm using Platform Agnostic method on Cygwin","user":{"login":"CMCDragonkai","id":640797,"avatar_url":"https://avatars.githubusercontent.com/u/640797?v=3","gravatar_id":"","url":"https://api.github.com/users/CMCDragonkai","html_url":"https://github.com/CMCDragonkai","followers_url":"https://api.github.com/users/CMCDragonkai/followers","following_url":"https://api.github.com/users/CMCDragonkai/following{/other_user}","gists_url":"https://api.github.com/users/CMCDragonkai/gists{/gist_id}","starred_url":"https://api.github.com/users/CMCDragonkai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CMCDragonkai/subscriptions","organizations_url":"https://api.github.com/users/CMCDragonkai/orgs","repos_url":"https://api.github.com/users/CMCDragonkai/repos","events_url":"https://api.github.com/users/CMCDragonkai/events{/privacy}","received_events_url":"https://api.github.com/users/CMCDragonkai/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-08-31T09:47:15Z","updated_at":"2015-08-25T02:39:08Z","closed_at":"2015-08-25T02:39:08Z","body":"There's a problem with installing Elm on Cygwin.\r\n\r\nAfter installing the Haskell Platform (portable) and then exporting these 2 paths:\r\n\r\n```\r\n    export PATH=\"$HOME/Haskell Platform/bin:$PATH\"\r\n    export PATH=\"$HOME/Haskell Platform/lib/extralibs/bin:$PATH\"\r\n```\r\n\r\nAnd then running:\r\n\r\n```\r\ncabal update\r\ncabal install elm elm-server elm-repl elm-get\r\n```\r\n\r\nThis is the end output:\r\n\r\n```\r\n...\r\nInstalled elm-repl-0.2.2.1\r\ncabal.exe: Error: some packages failed to install:\r\nelm-get-0.1.2 depends on streaming-commons-0.1.4.2 which failed to install.\r\nelm-server-0.11.0.1 depends on unix-compat-0.4.1.3 which failed to install.\r\nhttp-client-0.3.8 depends on streaming-commons-0.1.4.2 which failed to\r\ninstall.\r\nhttp-client-tls-0.2.2 depends on streaming-commons-0.1.4.2 which failed to\r\ninstall.\r\nsnap-core-0.9.6.3 depends on unix-compat-0.4.1.3 which failed to install.\r\nsnap-server-0.9.4.5 depends on unix-compat-0.4.1.3 which failed to install.\r\nstreaming-commons-0.1.4.2 failed during the building phase. The exception was:\r\nExitFailure 1\r\nunix-compat-0.4.1.3 failed during the configure step. The exception was:\r\nExitFailure 1\r\n```\r\n\r\nIt seems there was some problems with compiling certain binaries above, such as:\r\n\r\n```\r\nBuilding streaming-commons-0.1.4.2...\r\nPreprocessing library streaming-commons-0.1.4.2...\r\nWin32File.hsc:34:19: fatal error: Share.h: No such file or directory\r\ncompilation terminated.\r\ncompiling dist\\build\\System\\Win32File_hsc_make.c failed (exit code 1)\r\ncommand was: C:\\cygwin64\\bin\\gcc.exe -c dist\\build\\System\\Win32File_hsc_make.c -o dist\\build\\System\\Win32File_hsc_make.o -D__GLASGOW_HASKELL__=708 -Dmingw32_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Dmingw32_HOST_OS=1 -Dx86_64_HOST_ARCH=1 -Iinclude -DWINDOWS -IC:\\Users\\CMCDragonkai\\Haskell Platform\\lib\\extralibs\\zlib-0.5.4.1\\include -Idist\\build\\autogen -include dist\\build\\autogen\\cabal_macros.h -Idist\\build\\autogen -include dist\\build\\autogen\\cabal_macros.h -Idist\\build\\autogen -include dist\\build\\autogen\\cabal_macros.h -IC:\\Users\\CMCDragonkai\\Haskell Platform\\lib\\process-1.2.0.0\\include -Idist\\build\\autogen -include dist\\build\\autogen\\cabal_macros.h -IC:\\Users\\CMCDragonkai\\Haskell Platform\\lib\\extralibs\\network-2.4.2.3\\include -Idist\\build\\autogen -include dist\\build\\autogen\\cabal_macros.h -Idist\\build\\autogen -include dist\\build\\autogen\\cabal_macros.h -Idist\\build\\autogen -include dist\\build\\autogen\\cabal_macros.h -Idist\\build\\autogen -include dist\\build\\autogen\\cabal_macros.h -IC:\\Users\\CMCDragonkai\\Haskell Platform\\lib\\directory-1.2.1.0\\include -Idist\\build\\autogen -include dist\\build\\autogen\\cabal_macros.h -IC:\\Users\\CMCDragonkai\\Haskell Platform\\lib\\time-1.4.2\\include -Idist\\build\\autogen -include dist\\build\\autogen\\cabal_macros.h -Idist\\build\\autogen -include dist\\build\\autogen\\cabal_macros.h -Idist\\build\\autogen -include dist\\build\\autogen\\cabal_macros.h -Idist\\build\\autogen -include dist\\build\\autogen\\cabal_macros.h -Idist\\build\\autogen -include dist\\build\\autogen\\cabal_macros.h -IC:\\Users\\CMCDragonkai\\Haskell Platform\\lib\\Win32-2.3.0.2\\include -Idist\\build\\autogen -include dist\\build\\autogen\\cabal_macros.h -IC:\\Users\\CMCDragonkai\\Haskell Platform\\lib\\bytestring-0.10.4.0\\include -Idist\\build\\autogen -include dist\\build\\autogen\\cabal_macros.h -Idist\\build\\autogen -include dist\\build\\autogen\\cabal_macros.h -Idist\\build\\autogen -include dist\\build\\autogen\\cabal_macros.h -IC:\\Users\\CMCDragonkai\\Haskell Platform\\lib\\base-4.7.0.1\\include -Idist\\build\\autogen -include dist\\build\\autogen\\cabal_macros.h -IC:\\Users\\CMCDragonkai\\Haskell Platform\\lib\\integer-gmp-0.5.1.0\\include -Idist\\build\\autogen -include dist\\build\\autogen\\cabal_macros.h -Idist\\build\\autogen -include dist\\build\\autogen\\cabal_macros.h -IC:\\Users\\CMCDragonkai\\Haskell Platform\\lib/include -Idist\\build\\autogen -include dist\\build\\autogen\\cabal_macros.h -IC:\\Users\\CMCDragonkai\\Haskell Platform/lib/include/\r\n```\r\n\r\nI'm guessing this is because its using Cygwin's gcc to compile and not the bundled mingw. Should I be overwriting the PATH to use mingy gcc instead?\r\n\r\nIs there any way for it to work with just Cygwin's gcc? Or use Cygwin installed mingw and not the bundled mingw? One can install mingw directly via Cygwin, would there be a way for the installer to detect if its in a cygwin environment and switch to using Cygwin specific mingw for the builds?"},"comment":{"url":"https://api.github.com/repos/elm-lang/elm-platform/issues/comments/134456354","html_url":"https://github.com/elm-lang/elm-platform/issues/15#issuecomment-134456354","issue_url":"https://api.github.com/repos/elm-lang/elm-platform/issues/15","id":134456354,"user":{"login":"evancz","id":1658058,"avatar_url":"https://avatars.githubusercontent.com/u/1658058?v=3","gravatar_id":"","url":"https://api.github.com/users/evancz","html_url":"https://github.com/evancz","followers_url":"https://api.github.com/users/evancz/followers","following_url":"https://api.github.com/users/evancz/following{/other_user}","gists_url":"https://api.github.com/users/evancz/gists{/gist_id}","starred_url":"https://api.github.com/users/evancz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evancz/subscriptions","organizations_url":"https://api.github.com/users/evancz/orgs","repos_url":"https://api.github.com/users/evancz/repos","events_url":"https://api.github.com/users/evancz/events{/privacy}","received_events_url":"https://api.github.com/users/evancz/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T02:39:08Z","updated_at":"2015-08-25T02:39:08Z","body":"I want to track stuff like this in #60. If you are still having problems, follow the directions in that issue to report it and we'll add it to the big tracker!"}}