hahnlab / CAGEE

Computational Analysis of Gene Expression Evolution
Other
36 stars 2 forks source link

Installation can't find shared libraries after `make install` #10

Closed jtourig closed 2 years ago

jtourig commented 2 years ago

Once dependencies satisfied with conda environment, I got CMake warnings during build:

CMake Warning at CMakeLists.txt:30 (add_executable):
  Cannot generate a safe runtime search path for target tests because files
  in some directories may conflict with libraries in implicit directories:

    runtime library [libgomp.so.1] in /N/soft/rhel7/gcc/6.3.0/lib64 may be hidden by files in:
      /N/u/tourigny/Carbonate/.conda/envs/cagee/lib

  Some of these libraries may not be found correctly.

CMake Warning at CMakeLists.txt:29 (add_executable):
  Cannot generate a safe runtime search path for target cagee because files
  in some directories may conflict with libraries in implicit directories:

    runtime library [libgomp.so.1] in /N/soft/rhel7/gcc/6.3.0/lib64 may be hidden by files in:
      /N/u/tourigny/Carbonate/.conda/envs/cagee/lib

  Some of these libraries may not be found correctly.

Build proceeds normally thereafter with make; I am able to run the cagee binary from the build dir

However, when I manually copy it over, cp ~/usr/local/src/CAGEE/build/cagee ~/usr/local/bin/cagee, it works fine though...

So why does it work in the build dir, and when I cp it to its install dir, but make install loses track of its dependencies?

benfulton commented 2 years ago

Yes, I think it's due to the libgomp conflict. Does it work if you just remove that from /N/u/tourigny/Carbonate/.conda/envs/cagee/lib ?

benfulton commented 2 years ago

Eigen 3.4 is on Carbonate now, so you should just be able to run

$ module load eigen boost cmake