precimed / mixer

Causal Mixture Model for GWAS summary statistics
GNU General Public License v3.0
52 stars 16 forks source link

Install MiXeR failed #72

Open Chloe-XiaoWu opened 1 year ago

Chloe-XiaoWu commented 1 year ago

Hi,

I got an error when installing MiXeR using the second method.

:~/mixer# cmake .. && make bgmg -j16
CMake Error: The source directory "/root" does not appear to contain CMakeLists.txt.

I used 'locate', 'find' and 'whereis' to find the location of this file, but can't find it. I'd like to ask what I should do.

I have never used C++ programming and am not sure if this problem is associated with c++ compiler. When I first use this command, it was not found, so I installed it by myself (apt-get install cmake). My Ubuntu system Version is 20.04.0. I have Python3 with NumPy, numdifftools, and matplotlib_venn, GCC compiler, and the Boost library.

ofrei commented 1 year ago

Hi @Chloe-XiaoWu do you have possibility to use singularity ( https://docs.sylabs.io/guides/2.6/user-guide/index.html# ) in your environment? MiXeR is also released as a singularity container, see here https://github.com/comorment/mixer , it should be easier to deploy this

Chloe-XiaoWu commented 1 year ago

Hi, I have tried to install Singularity on my Ubuntu. But I don't seem to have the root permission and failed many times. I use the same system with my colleague, and she also has trouble with singularity when using it. So I chose the second installation method.

Chloe-XiaoWu commented 1 year ago

I solved this problem by installing a new version boost and cmake (https://www.debugpoint.com/cmake-command-not-found/). Besides, I also add some code :~# apt-get install tcl-dev tk-dev mesa-common-dev libjpeg-dev libtogl-dev :~# apt-get install build-essential g++ python-dev autotools-dev libicu-dev build-essential libbz2-dev libboost-all-dev

ofrei commented 1 year ago

@Chloe-XiaoWu great to know this is solved! And sorry for somewhat outdated toolchain. If you could make a pull request with changes that worked for you I'd be happy to merge it in.

zainab-cpu commented 8 months ago

@Chloe-XiaoWu I've tried the solution you mentioned, but it didn't work for me. I got this error. Make Error in CMakeLists.txt: Imported target "Boost::program_options" includes non-existent path

"/include"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

-- Generating done CMake Warning: Manually specified variables were not used by the project:

BOOST_ROOT

CMake Generate step failed. Build files cannot be regenerated correctly. Even though I installed the new version of Boost and cmake. Kindly help me out in this matter @ofrei @Chloe-XiaoWu