Korovev wrote:J'Kla wrote:
- Code: Select all
$ git clone https://github.com/zrax/string_theory.git
Here we are making a clone copy of the sub-directory from the github called string_theory this will sit in the /opt/dirtsand directory.
Are you sure? When I ran cmake without flags, it gave me /usr/local as the default value for CMAKE_INSTALL_PREFIX. Could be why, in my attempt, dirtsand couldn’t run... EDIT: yep, it was that
Actually, that's a somewhat unrelated issue related to the way Linux looks up library paths (and to CMake's default behaviors). Specifically, even if you can build and link dirtsand with a library in a non-standard path, CMake will by default strip the executable's library lookup path ("rpath") when running 'make install'. You can override this behavior, or (what I usually do) add something like -DCMAKE_EXE_LINKER_FLAGS="-Wl,-rpath=/opt/dirtsand/lib" to cause the generated executables to keep the correct rpath.
None of this is needed if you just install string_theory to the default /usr/local, since /usr/local/lib is in Linux's default list of library search paths.