cppcms-skeleton icon indicating copy to clipboard operation
cppcms-skeleton copied to clipboard

problem with installing to /usr/local

Open eventhorizonpl opened this issue 11 years ago • 5 comments

Hi,

If I install cppcmsskel to /usr/local I get this

app/galaxy: error while loading shared libraries: libcppcmsskel.so: cannot open shared object file: No such file or directory

I think that the possible workaround for this will be adding file to /etc/ld.so.conf.d/ with path to libcppcmsskel.so.

But I don't know if this is the right solution.

If I install to /usr instead of /usr/local libcppcmsskel.so can be loaded, but init.py uses /usr/local by default.

If you think that cppcmsskel should be always installed to /usr/local, I can fix my system configuration. If you think that framework might be installed to any path, I can try to fix issues with that and send you a patch.

eventhorizonpl avatar Jul 05 '13 13:07 eventhorizonpl

I think the framework should be able to be installed anywhere, but I admit to not be very familiar with this kind of problem, so if you could submit a patch, sure that will be great, thank you.

allan-simon avatar Jul 05 '13 13:07 allan-simon

for this I'm wondering if the "generic" solution wouldn't to have like with the autotools, a --prefix option and to get its value after in the CMake ?

allan-simon avatar Jul 05 '13 13:07 allan-simon

I use this command to install to /usr cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr

I don't know how to get this value from CMAKE. Do you have a code snippet for this?

eventhorizonpl avatar Jul 05 '13 13:07 eventhorizonpl

make fails because it can't find libcppcmsskel.so.0. To get a build, I altered the generated CMakeLists.txt file so that it finds the file in the "Dependency check" section and sets a variable. Given the unaltered example scripts (including config.py), the resulting CMakeLists.txt file required changes two changes: ln 25: "cppcmsskel" -> "find_library(CPPCMSSKEL cppcmsskel)" ln 100: "cppcmskel" -> "${CPPCMSSKEL}"

dwaldhalm avatar Aug 22 '14 00:08 dwaldhalm

@dwaldhalm great, i'm currently in vacation so i access github with my phone (and that's why i've been quite long to reply to you) , as I've not access to my computer, would you feel like making a Pull request ?

allan-simon avatar Aug 30 '14 01:08 allan-simon