AlTarFramework/altar

cannot find -ljournal

kanglcn opened this issue · 3 comments

Hello!

When I tried to compile this software I got

[ 25%] Linking CXX shared module altar.cpython-39-x86_64-linux-gnu.so
/usr/bin/ld: cannot find -ljournal
collect2: error: ld returned 1 exit status
make[2]: *** [altar/CMakeFiles/altarmodule.dir/build.make:149: altar/altar.cpython-39-x86_64-linux-gnu.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:247: altar/CMakeFiles/altarmodule.dir/all] Error 2
make: *** [Makefile:149: all] Error 2

It seems that journal is missing which should be provided by pyre.

I have already compiled pyre and I find libjournal.so at pyre's lib directory.

I am not sure it is because of the difference in name.

Did you add pyre lib path to LD_LIBRARY_PATH?

I have find the reason.
That is because some environment variables need to set further besides one mentioned in @lijun99 's install intruction.

export PYTHONPATH=${PYTHONPATH}:~/.local/pyre/packages
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:~/.local/pyre/lib
export LIBRARY_PATH=${LIBRARY_PATH}:~/.local/pyre/lib
export C_INCLUDE_PATH=${C_INCLUDE_PATH}:~/.local/pyre/include
export CPLUS_INCLUDE_PATH=${CPLUS_INCLUDE_PATH}:~/.local/pyre/include
export PATH=${PATH}:~/.local/pyre/bin

Maybe some settings above are not needed.

Thank you @lijun99 . It's all ok now.
And as I said above, setting of INCLUDE_PATH need to be added on your install instruction otherwise

[  3%] Building CXX object altar/CMakeFiles/libaltar.dir/lib/libaltar/bayesian/CoolingStep.cc.o
/home/kanglcn/software/altar/altar/lib/libaltar/bayesian/CoolingStep.cc:12:10: fatal error: portinfo: No such file or directory
   12 | #include <portinfo>
      |          ^~~~~~~~~~
compilation terminated.

will appear.