cambDI / camb

GNU General Public License v2.0
14 stars 13 forks source link

Problems encountered during installation of camb #8

Open odam23 opened 3 years ago

odam23 commented 3 years ago

I have successfully installed and loaded devtools. Installing camb using library(devtools); install_github("cambDI/camb/camb") produces this error along the line.

/usr/bin/ld: cannot find -lindigo-static /usr/bin/ld: cannot find -lcommon /usr/bin/ld: cannot find -lmolecule /usr/bin/ld: cannot find -lreaction /usr/bin/ld: cannot find -llayout /usr/bin/ld: cannot find -ltinyxml /usr/bin/ld: cannot find -lgraph /usr/bin/ld: cannot find -lindigo-inchi-static /usr/bin/ld: cannot find -lindigo-renderer-static /usr/bin/ld: cannot find -lpixman /usr/bin/ld: cannot find -lcairo /usr/bin/ld: cannot find -linchi /usr/bin/ld: cannot find -lrender2d /usr/bin/ld: cannot find -lindigo-static /usr/bin/ld: cannot find -lcommon /usr/bin/ld: cannot find -lmolecule /usr/bin/ld: cannot find -lreaction /usr/bin/ld: cannot find -llayout /usr/bin/ld: cannot find -ltinyxml /usr/bin/ld: cannot find -lgraph /usr/bin/ld: cannot find -lindigo-inchi-static /usr/bin/ld: cannot find -lindigo-renderer-static /usr/bin/ld: cannot find -lpixman /usr/bin/ld: cannot find -lcairo /usr/bin/ld: cannot find -linchi /usr/bin/ld: cannot find -lrender2d /usr/bin/ld: cannot find -lindigo-static /usr/bin/ld: cannot find -lcommon /usr/bin/ld: cannot find -lmolecule /usr/bin/ld: cannot find -lreaction /usr/bin/ld: cannot find -llayout /usr/bin/ld: cannot find -ltinyxml /usr/bin/ld: cannot find -lgraph /usr/bin/ld: cannot find -lindigo-inchi-static /usr/bin/ld: cannot find -lindigo-renderer-static /usr/bin/ld: cannot find -lpixman /usr/bin/ld: cannot find -lcairo /usr/bin/ld: cannot find -linchi /usr/bin/ld: cannot find -lrender2d collect2: error: ld returned 1 exit status /usr/share/R/share/make/shlib.mk:10: recipe for target 'camb.so' failed make[1]: [camb.so] Error 1 make[1]: Leaving directory '/tmp/Rtmp2mW6vx/R.INSTALL4c7714ed98e/camb/src' Makefile:6: recipe for target 'all' failed make: [all] Error 1 ERROR: compilation failed for package ‘camb’

Alborzi commented 3 years ago

Try removing xlocale in the header file src/common/base_cpp/locale_guard.h - it will compile, whether the full functionality is retained is not known at present.