{"action":"created","issue":{"url":"https://api.github.com/repos/sourceryinstitute/OpenCoarrays/issues/530","repository_url":"https://api.github.com/repos/sourceryinstitute/OpenCoarrays","labels_url":"https://api.github.com/repos/sourceryinstitute/OpenCoarrays/issues/530/labels{/name}","comments_url":"https://api.github.com/repos/sourceryinstitute/OpenCoarrays/issues/530/comments","events_url":"https://api.github.com/repos/sourceryinstitute/OpenCoarrays/issues/530/events","html_url":"https://github.com/sourceryinstitute/OpenCoarrays/issues/530","id":319405229,"number":530,"title":"Question: Configuring install.sh to see prereqs","user":{"login":"jordana309","id":10908984,"avatar_url":"https://avatars2.githubusercontent.com/u/10908984?v=4","gravatar_id":"","url":"https://api.github.com/users/jordana309","html_url":"https://github.com/jordana309","followers_url":"https://api.github.com/users/jordana309/followers","following_url":"https://api.github.com/users/jordana309/following{/other_user}","gists_url":"https://api.github.com/users/jordana309/gists{/gist_id}","starred_url":"https://api.github.com/users/jordana309/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordana309/subscriptions","organizations_url":"https://api.github.com/users/jordana309/orgs","repos_url":"https://api.github.com/users/jordana309/repos","events_url":"https://api.github.com/users/jordana309/events{/privacy}","received_events_url":"https://api.github.com/users/jordana309/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-02T04:19:49Z","updated_at":"2018-05-02T14:29:39Z","closed_at":null,"author_association":"NONE","body":"# Question #\r\nQuestion: Configuring install.sh to see prereqs\r\n\r\n- OpenCoarrays Version: 2.0.0\r\n- Fortran Compiler: GNU Fortran Ubuntu 5.5.0-12ubuntu1\\~16.04 comes up with gfortran --version, but I do have GNU Fortran (Ubuntu 7.3.0-16ubuntu3\\~16.04.1) installed.\r\n- C compiler used for building lib: same deal. gcc (Ubuntu 5.5.0-12ubuntu1\\~16.04) comes up when I type gcc -version, but I have gcc-7 (Ubuntu 7.3.0-16ubuntu3\\~16.04.1) installed.\r\n- Installation method: \"bash install.sh\"\r\n- Output of `uname -a`: \"Linux NukeBox 4.13.0-39-generic #44~16.04.1-Ubuntu SMP Thu Apr 5 16:43:10 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux\"\r\n- MPI library being used: I don't think I got to using the MPI library. The install script isn't seeing what I have installed--I have MPICH 3.2.\r\n- Machine architecture and number of physical cores: 64-bit, 4 cores, but it's a VM.\r\n- Version of CMake: 3.5.1\r\n\r\n## Observed Behavior ##\r\nAfter downloading prerequisites that I have installed on my system, install.sh crashed out trying to compile gcc-7.3.0, it appears. The output is attached. I should note that I am new to playing with compilers, so my mistake is probably silly and easily corrected, but I need some help understanding what that is. How would I configure the install.sh script to see my installed prerequisites?\r\n\r\n## Expected Behavior ##\r\nCompleting the install, and recognizing the preinstalled prerequisites. I do expect, however, to have to point the install script to my install of MPICH 3.2, but I'm not sure how.\r\n\r\n## Steps to Reproduce ##\r\nType the following into your terminal:\r\n```\r\nsudo apt-get install aptitude\r\nsudo add-apt-repository ppa:ubuntu-toolchain-r/test\r\nsudo apt-get update\r\nsudo aptitude install gcc-7 g++-7 gfortran-7\r\ncd ~/Codes/src\r\ngit clone https://github.com/sourceryinstitute/OpenCoarrays.git\r\ncd OpenCoarrays\r\nbash install.sh\r\n```\r\nAfter it gets to installing gcc-7, it will crash out like this.\r\n\r\nOUTPUT after error is attaches (it was longer than expected).\r\n[Compile Error.txt](https://github.com/sourceryinstitute/OpenCoarrays/files/1965915/Compile.Error.txt)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/sourceryinstitute/OpenCoarrays/issues/comments/385997471","html_url":"https://github.com/sourceryinstitute/OpenCoarrays/issues/530#issuecomment-385997471","issue_url":"https://api.github.com/repos/sourceryinstitute/OpenCoarrays/issues/530","id":385997471,"user":{"login":"zbeekman","id":279612,"avatar_url":"https://avatars3.githubusercontent.com/u/279612?v=4","gravatar_id":"","url":"https://api.github.com/users/zbeekman","html_url":"https://github.com/zbeekman","followers_url":"https://api.github.com/users/zbeekman/followers","following_url":"https://api.github.com/users/zbeekman/following{/other_user}","gists_url":"https://api.github.com/users/zbeekman/gists{/gist_id}","starred_url":"https://api.github.com/users/zbeekman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zbeekman/subscriptions","organizations_url":"https://api.github.com/users/zbeekman/orgs","repos_url":"https://api.github.com/users/zbeekman/repos","events_url":"https://api.github.com/users/zbeekman/events{/privacy}","received_events_url":"https://api.github.com/users/zbeekman/received_events","type":"User","site_admin":false},"created_at":"2018-05-02T14:29:39Z","updated_at":"2018-05-02T14:29:39Z","author_association":"OWNER","body":"@jordana309 If you already have gcc-7, g++-7 and gfortran-7 installed at the front of your path then just specify them to `install.sh`\r\n\r\nConfirm that GCC-7 compilers are on your path:\r\n\r\n```\r\nwhich gcc-7\r\nwhich g++-7\r\nwhich gfortran-7\r\n```\r\n\r\nEach command should print the location of the compiler.\r\n\r\nNext, try:\r\n\r\n```bash\r\n./install.sh \\\r\n   --with-fortran \"`which gfortran-7`\"\r\n   --with-cxx \"`which g++-7`\"\r\n   --with-c \"`which gcc-7`\"\r\n   -j 4\r\n   --install-prefix \"/path/to/install/OpenCoarrays/into\"\r\n```\r\n\r\nIf you have CMake and MPI installed too, you might just want to install directly with CMake."}}
{"actor":{"display_login":"zbeekman"}}