EPACTS icon indicating copy to clipboard operation
EPACTS copied to clipboard

Error installing last version EPACTS

Open gcpmendez opened this issue 3 years ago • 17 comments

imagen imagen

Any solution?

gcpmendez avatar Jul 01 '21 11:07 gcpmendez

This should be fixed in v3.4.2 (https://github.com/statgen/EPACTS/releases/tag/v3.4.2).

jonathonl avatar Jul 01 '21 13:07 jonathonl

I don't find the configure file in tar.gz

gcpmendez avatar Jul 02 '21 10:07 gcpmendez

Newer versions use Cmake instead of Autotools. See build instructions in readme.

jonathonl avatar Jul 02 '21 12:07 jonathonl

Could you tell me the way to run cget?

image

gcpmendez avatar Jul 05 '21 10:07 gcpmendez

Remove python -m. It should be cget install -DCMAKE_C_FLAGS="-fPIC" -DCMAKE_CXX_FLAGS="-fPIC" -f requirements.txt.

You may need to install cget beforehand with pip install cget.

jonathonl avatar Jul 05 '21 13:07 jonathonl

After install cget with pip3 install cget I can't use cget like a executable file, just inside python3 importing like package import cget Any solution?

gcpmendez avatar Jul 26 '21 11:07 gcpmendez

The bin path in which cget is installed probably isn't in your PATH environment variable. There's a good chance that it is located at ~/.local/bin/cget. If not, running pip3 uninstall cget <<<"n" should display the bin path.

jonathonl avatar Jul 26 '21 12:07 jonathonl

Now I obtain this error:


CMake Error at CMakeLists.txt:21 (find_package):
  By not providing "Findsavvy.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "savvy", but
  CMake did not find one.

  Could not find a package configuration file provided by "savvy" with any of
  the following names:

    savvyConfig.cmake
    savvy-config.cmake

  Add the installation prefix of "savvy" to CMAKE_PREFIX_PATH or set
  "savvy_DIR" to a directory containing one of the above files.  If "savvy"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!


gcpmendez avatar Jul 26 '21 13:07 gcpmendez

You didn't correctly configure the toolchain file. If you haven't already created a build directory, create it. Otherwise, clear the directory (rm -r build/*). Then run cmake -DCMAKE_TOOLCHAIN_FILE=../cget/cget/cget.cmake -DCMAKE_BUILD_TYPE=Release .. from the build directory. The toolchain file tells cmake how to find savvy. If you want to install EPACTS to somewhere other than the default system location, you can add -DCMAKE_INSTALL_PREFIX=</path/to/install> to the cmake command (as shown in README).

jonathonl avatar Jul 26 '21 13:07 jonathonl

$ tar xvf v3.4.2
$ cd EPACTS-3.4.2/
$ mkdir build
$ /root/.local/bin/cget install -DCMAKE_C_FLAGS="-fPIC" -DCMAKE_CXX_FLAGS="-fPIC" -f requirements.txt.
$ cd build/
$ cmake -DCMAKE_INSTALL_PREFIX=/opt/envhpc/utils/rhel6/epacts/3.4.2/gcc-10.2.0 -DCMAKE_TOOLCHAIN_FILE=../cget/cget/cget.cmake -DCMAKE_BUILD_TYPE=Release ..

and I got that error .. any step more I forgot?

Readme steps:

git clone https://github.com/statgen/EPACTS.git
cd EPACTS
cget install -DCMAKE_C_FLAGS="-fPIC" -DCMAKE_CXX_FLAGS="-fPIC" -f requirements.txt
mkdir build; cd build
cmake -DCMAKE_INSTALL_PREFIX=</path/to/install> -DCMAKE_TOOLCHAIN_FILE=../cget/cget/cget.cmake -DCMAKE_BUILD_TYPE=Release ..
make
make install

gcpmendez avatar Jul 27 '21 09:07 gcpmendez

You could verify that cget/share/savvy/savvy-config.cmake exists and manually set the prefix path (the toolchain file already does this) with -DCMAKE_PREFIX_PATH=$(pwd)/cget (i.e., set prefix path to absolute path of cget directory). If that doesn't work, send me your OS version and cmake version so that I can try to reproduce. Though I don't have access to a REHL6 system if that is the case. Also, if cget/share/savvy/savvy-config.cmake file doesn't exist, then there is likely a build error in one of the dependencies.

jonathonl avatar Jul 27 '21 11:07 jonathonl

image This is the error ..

gcpmendez avatar Jul 27 '21 12:07 gcpmendez

The downloads from Github are failing. This could be for many reasons. It could be at system level or at python level. There are many potential solutions for this error on the internet (e.g., https://stackoverflow.com/a/43855394/1034772). I don't know what is the correct solution for your system.

Ultimately, you need to install the dependencies for EPACTS. Cget is meant to automate the process, but if you can't download through python (i.e., fix the SSL cert verification error), you'll need an alternate route. Another automated way is through conda, but you'll need to install savvy v1.3.0 instead of v2.x for EPACTS v3.4.2.

jonathonl avatar Jul 27 '21 13:07 jonathonl

imagen Maybe CentOS 6.5 is too old for this version. Could you recommend me one?

gcpmendez avatar Jul 30 '21 08:07 gcpmendez

It looks like your cmake binary was built either on a different system or in a different environment on the same system. At this point it would probably be easier to just fix the build errors in EPACTS v3.3.2 (the version you first tried). For the error messages in your original post, you just need to add the word constexpr after the word static for each line that produces that error.

For example, replace static double const DEFAULT_MIN = 1e-6 with static constexpr double DEFAULT_MIN = 1e-6

jonathonl avatar Jul 30 '21 12:07 jonathonl

imagen

more problems after this fix ..

gcpmendez avatar Aug 04 '21 09:08 gcpmendez

Replace return false; with return;.

jonathonl avatar Aug 04 '21 11:08 jonathonl