{"action":"created","issue":{"url":"https://api.github.com/repos/LLNL/sundials/issues/4","repository_url":"https://api.github.com/repos/LLNL/sundials","labels_url":"https://api.github.com/repos/LLNL/sundials/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/LLNL/sundials/issues/4/comments","events_url":"https://api.github.com/repos/LLNL/sundials/issues/4/events","html_url":"https://github.com/LLNL/sundials/issues/4","id":348887768,"node_id":"MDU6SXNzdWUzNDg4ODc3Njg=","number":4,"title":"Install prefix","user":{"login":"fertinaz","id":31746628,"node_id":"MDQ6VXNlcjMxNzQ2NjI4","avatar_url":"https://avatars2.githubusercontent.com/u/31746628?v=4","gravatar_id":"","url":"https://api.github.com/users/fertinaz","html_url":"https://github.com/fertinaz","followers_url":"https://api.github.com/users/fertinaz/followers","following_url":"https://api.github.com/users/fertinaz/following{/other_user}","gists_url":"https://api.github.com/users/fertinaz/gists{/gist_id}","starred_url":"https://api.github.com/users/fertinaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fertinaz/subscriptions","organizations_url":"https://api.github.com/users/fertinaz/orgs","repos_url":"https://api.github.com/users/fertinaz/repos","events_url":"https://api.github.com/users/fertinaz/events{/privacy}","received_events_url":"https://api.github.com/users/fertinaz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-08T20:53:05Z","updated_at":"2018-08-08T21:37:46Z","closed_at":null,"author_association":"NONE","body":"Trying to install sundials-3.1.2 on my CentOS workstation but it fails with the following msg:\r\n```\r\nCMake Error at cmake_install.cmake:36 (FILE):\r\n  file cannot create directory: /usr/local/include/sundials.  Maybe need\r\n  administrative privileges.\r\n```\r\nI know this is self-explanatory but what I don't understand is that I am declaring install prefix in my $HOME directory. This is the build script I've written:\r\n```\r\n#!/bin/sh\r\n\r\n#Package details\r\nbase=$HOME/sundials\r\npkg=sundials\r\nvrs=3.1.2\r\n\r\n#Go to sundials base folder\r\ncd $base\r\n\r\n#Environment variables\r\nexport srcdir=$base/$pkg-$vrs\r\nexport instdir=$base/$pkg-$vrs-install\r\nexport builddir=$base/$pkg-$vrs-build\r\n\r\n#Do not build in-source\r\nmkdir -p $builddir\r\ncd $builddir\r\n\r\n#Build\r\ncmake \\\r\n  --DCMAKE_INSTALL_PREFIX=$instdir \\\r\n  --DMPI_ENABLE=ON   \\\r\n  --DHYPRE_ENABLE=ON \\\r\n  --DHYPRE_INCLUDE_DIR=${HYPRE_ROOT}/include \\\r\n  --DHYPRE_LIBRARY_DIR=${HYPRE_ROOT}/lib     \\\r\n  $srcdir\r\n\r\n#Compile and install\r\nmake\r\nmake test\r\nmake install\r\n```\r\n\r\nI came across this old thread as I was looking for a workaround:\r\nhttp://sundials.2283335.n4.nabble.com/The-lighter-side-of-SUNDIALS-td3239773i20.html\r\n\r\nIs this really intentionally designed or somehow a bug? What is your suggestions?"},"comment":{"url":"https://api.github.com/repos/LLNL/sundials/issues/comments/411560821","html_url":"https://github.com/LLNL/sundials/issues/4#issuecomment-411560821","issue_url":"https://api.github.com/repos/LLNL/sundials/issues/4","id":411560821,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTU2MDgyMQ==","user":{"login":"gardner48","id":15018133,"node_id":"MDQ6VXNlcjE1MDE4MTMz","avatar_url":"https://avatars1.githubusercontent.com/u/15018133?v=4","gravatar_id":"","url":"https://api.github.com/users/gardner48","html_url":"https://github.com/gardner48","followers_url":"https://api.github.com/users/gardner48/followers","following_url":"https://api.github.com/users/gardner48/following{/other_user}","gists_url":"https://api.github.com/users/gardner48/gists{/gist_id}","starred_url":"https://api.github.com/users/gardner48/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gardner48/subscriptions","organizations_url":"https://api.github.com/users/gardner48/orgs","repos_url":"https://api.github.com/users/gardner48/repos","events_url":"https://api.github.com/users/gardner48/events{/privacy}","received_events_url":"https://api.github.com/users/gardner48/received_events","type":"User","site_admin":false},"created_at":"2018-08-08T21:37:46Z","updated_at":"2018-08-08T21:37:46Z","author_association":"MEMBER","body":"In the cmake configuration lines change ```--D``` to ```-D``` and that should resolve the problem. Additionally, if you're using CMake 3.0 or later you'll need apply the following patch to enable hypre.\r\n```\r\n--- a/config/SundialsHypre.cmake\r\n+++ b/config/SundialsHypre.cmake\r\n@@ -36,7 +36,7 @@ if(HYPRE_LIBRARIES)\r\n   file(MAKE_DIRECTORY ${HYPRETest_DIR})\r\n   # Create a CMakeLists.txt file \r\n   file(WRITE ${HYPRETest_DIR}/CMakeLists.txt\r\n-    \"CMAKE_MINIMUM_REQUIRED(VERSION 2.2)\\n\"\r\n+    \"CMAKE_MINIMUM_REQUIRED(VERSION 2.4)\\n\"\r\n     \"PROJECT(ltest C)\\n\"\r\n     \"SET(CMAKE_VERBOSE_MAKEFILE ON)\\n\"\r\n     \"SET(CMAKE_BUILD_TYPE \\\"${CMAKE_BUILD_TYPE}\\\")\\n\"\r\n```"}}
{"actor":{"display_login":"gardner48"}}