diff --git a/README.md b/README.md index 6f6e83f1..9dc8f43f 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,15 @@ statisticians with modest computational resources. ## Installation -> Note: Installation requires at least **CMake of version 3.2**. to build ExaGeoStatCPP. +### Requirements +To build and run this software, you will need: + +1. [CMake](https://cmake.org/download/) (version 3.2 or higher) +2. [wget](https://www.gnu.org/software/wget/) +3. **gcc** and **g++** compilers +4. **autoconf** and **automake** +5. [libtool](https://www.gnu.org/software/libtool/) +6. [R](https://cran.r-project.org/bin/windows/base/) (only if you plan on using the R functionality) ### C++ source code installation To install the `ExaGeoStat` project locally, run the following commands in your terminal: diff --git a/configure b/configure index 9e96f4d8..6f95f233 100755 --- a/configure +++ b/configure @@ -17,6 +17,7 @@ BLUE='\033[0;34m' NC='\033[0m' INSTALL_PREFIX=$PWD/installdir/_deps +BASE_DIR=$PWD # Function to install CMake from source install_cmake() { @@ -36,12 +37,11 @@ install_cmake() { cd cmake-3.28.1 || exit 1 # Configure, build, and install CMake to the specified location - ./bootstrap --prefix="$INSTALL_PREFIX" --parallel=2 -- -DCMAKE_USE_OPENSSL=OFF + ./bootstrap --prefix="$INSTALL_PREFIX/CMAKE" --parallel=2 -- -DCMAKE_USE_OPENSSL=OFF make -j 2 - sudo make install - + make install # Clean up - cd "$temp_dir" || exit 1 + cd "$BASE_DIR" || exit 1 rm -rf "$temp_dir" } @@ -226,10 +226,8 @@ elif [ -x "/Applications/CMake.app/Contents/bin/cmake" ]; then cmake_command_bin="${cmake_install_dir}/cmake" else echo "Installing CMake from source" - mkdir "${ABSOLUTE_PATH}/inst/_deps/" - install_dir="${ABSOLUTE_PATH}/inst/_deps/" - install_cmake "$install_dir" - cmake_command_bin="${ABSOLUTE_PATH}/inst/_deps/bin/cmake" + install_cmake + cmake_command_bin="${INSTALL_PREFIX}/CMAKE/bin/cmake" fi "$cmake_command_bin" "$DEVELOPER_WARNINGS" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \