{"action":"created","issue":{"url":"https://api.github.com/repos/ilastik/ilastik-build-conda/issues/8","labels_url":"https://api.github.com/repos/ilastik/ilastik-build-conda/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/ilastik/ilastik-build-conda/issues/8/comments","events_url":"https://api.github.com/repos/ilastik/ilastik-build-conda/issues/8/events","html_url":"https://github.com/ilastik/ilastik-build-conda/issues/8","id":94718746,"number":8,"title":"Ubuntu 14.04 installing our package GCC fails to compile \"Hello World\"","user":{"login":"chaubold","id":16854,"avatar_url":"https://avatars.githubusercontent.com/u/16854?v=3","gravatar_id":"","url":"https://api.github.com/users/chaubold","html_url":"https://github.com/chaubold","followers_url":"https://api.github.com/users/chaubold/followers","following_url":"https://api.github.com/users/chaubold/following{/other_user}","gists_url":"https://api.github.com/users/chaubold/gists{/gist_id}","starred_url":"https://api.github.com/users/chaubold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chaubold/subscriptions","organizations_url":"https://api.github.com/users/chaubold/orgs","repos_url":"https://api.github.com/users/chaubold/repos","events_url":"https://api.github.com/users/chaubold/events{/privacy}","received_events_url":"https://api.github.com/users/chaubold/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-13T13:18:44Z","updated_at":"2015-07-13T20:42:15Z","closed_at":"2015-07-13T20:42:15Z","body":"@ilastikdev and I tried to use conda on Ubuntu 14.04 to get a development environment set up to compile pgmlink, and it took a while until we noticed why we could not install GCC. To try this on your own, do the following:\r\n\r\n```\r\nconda create -n foobar -c ilastik ilastik-everything\r\nconda install -c ilastik gcc\r\n```\r\nWhich leads to the following error:\r\n```\r\n/usr/bin/ld: cannot find crti.o: No such file or directory\r\ncollect2: error: ld returned 1 exit status\r\nInstallation failed: gcc is not able to compile a simple 'Hello, World' program.\r\nError: Error: post-link failed for: gcc-4.8.2.99-linux_portable\r\n```\r\n\r\nInterestingly, installing GCC in a new environment sometimes works, but not always (we didn't find a pattern yet). But specifying `CPLEX_ROOT_DIR=/your/path` in the same command line as `conda create` fixes the problem, then it always succeeds (which is the way of installing the `cplex-shared` package that needs GCC). \r\n\r\nMeaning: the instructions in the README do not work on Ubuntu if you want to be able to compile C++ projects against the conda environment."},"comment":{"url":"https://api.github.com/repos/ilastik/ilastik-build-conda/issues/comments/121050810","html_url":"https://github.com/ilastik/ilastik-build-conda/issues/8#issuecomment-121050810","issue_url":"https://api.github.com/repos/ilastik/ilastik-build-conda/issues/8","id":121050810,"user":{"login":"stuarteberg","id":1655821,"avatar_url":"https://avatars.githubusercontent.com/u/1655821?v=3","gravatar_id":"","url":"https://api.github.com/users/stuarteberg","html_url":"https://github.com/stuarteberg","followers_url":"https://api.github.com/users/stuarteberg/followers","following_url":"https://api.github.com/users/stuarteberg/following{/other_user}","gists_url":"https://api.github.com/users/stuarteberg/gists{/gist_id}","starred_url":"https://api.github.com/users/stuarteberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuarteberg/subscriptions","organizations_url":"https://api.github.com/users/stuarteberg/orgs","repos_url":"https://api.github.com/users/stuarteberg/repos","events_url":"https://api.github.com/users/stuarteberg/events{/privacy}","received_events_url":"https://api.github.com/users/stuarteberg/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T20:42:15Z","updated_at":"2015-07-13T20:42:15Z","body":"It took me a while, but I see what happened.  Long story short: There is already a [fix for this issue](https://github.com/stuarteberg/conda-recipes/commit/33ea767571eb713068cf1700d89c0a0398dc800e) in my PR to conda-recipes (conda/conda-recipes#279), but I apparently forgot to incorporate that fix into our binary package in the ilastik binstar channel.\r\n\r\nI just repackaged `gcc-4.8.2.99` and uploaded it to our channel.  You should be good to go.\r\n\r\nBTW, the reason it failed for you is that you are installing `gcc` into your root conda environment.  With today's fix, it will work, but I think it's generally a bad idea to install stuff to your root environment.\r\n\r\n>Interestingly, installing GCC in a new environment sometimes works, but not always (we didn't find a pattern yet).\r\n\r\nIt will work whenever typing `which gcc` from your environment (before installation, of course) returns `/usr/bin/gcc`, and it will probably fail otherwise.  Check your `PATH`.\r\n\r\n>the instructions in the README do not work on Ubuntu if you want to be able to compile C++ projects against the conda environment.\r\n\r\nI don't think the README ever says to install `gcc` to the root environment, so I think we're okay.  In any case, it should work now."}}