Hello @SES,
This worked perfectly. Any chance you could explain to me what was going on, so I can troubleshoot it myself in the future?
Best
So, I'm trying to install joinx from https://github.com/genome/joinx
I can't use git cause its not installed on the server and I don't have sudo privileges. So downloaded the zip to the server and unzipped. Then created a new directory and entered it, and then ran:
cmake /labshare/Nick/tools/joinx-master/
Then I got this error:
CMake Error at build-common/cmake/VersionHelper.cmake:9 (list):
list GET given empty list
Call Stack (most recent call first):
CMakeLists.txt:18 (include)
CMake Error at build-common/cmake/VersionHelper.cmake:10 (list):
list GET given empty list
Call Stack (most recent call first):
CMakeLists.txt:18 (include)
CMake Error at build-common/cmake/VersionHelper.cmake:11 (list):
list GET given empty list
Call Stack (most recent call first):
CMakeLists.txt:18 (include)
CMake Error at build-common/cmake/VersionHelper.cmake:14 (if):
if given arguments:
"STREQUAL" "-unstable"
Unknown arguments specified
Call Stack (most recent call first):
CMakeLists.txt:18 (include)
-- Configuring incomplete, errors occurred!
Any help would be greatly appreciate. Any ideas?
Try to grab the latest release and see what happens:
wget https://github.com/genome/joinx/archive/v1.12.0.tar.gz tar xzf v1.12.0.tar.gz cd joinx-1.12.0 cmake . make
I was able to compile it but I had to update some packages.
Hello @SES,
This worked perfectly. Any chance you could explain to me what was going on, so I can troubleshoot it myself in the future?
Best
You don't need root privileges to install git. The make command can be given a prefix to install on a custom directory. The current version from https://github.com/git/git/archive/v2.6.1.tar.gz installs to ~/bin/ by default anyway.
"Installation" in Linux is just pointing the shell to the executable file - once you understand that, you can "install" anything anyway you want :)
This is a good point but I think the compile errors may be Boost-related (at least for me updating boost-devel solved it). Boost and cmake issues are much harder to solve without admin privileges, which is why I didn't answer because I don't have a solution.
That's nice forethought! IMO, even if that's the case, crossing off git should help us hit the root cause with a bit more certainty, no?
I honestly think it is a Cmake or Boost issue. That combo is a major obstacle without admin privileges. Installing git will only make your life easier though :)
Your lack of git is likely to be the issue. The versioning code all depends on utilizing git to grab tags from the repository. You should follow Ram's instructions and see if that fixes your problem.
I compiled it without git, so I think there is more to it. It could be that OP didn't grab a release and is trying to compile from master or something? That may be the issue.
Log in to answer this question.
I just did exactly what you describe with success. What's your cmake version, mine is cmake version 2.8.12.2. Please give the full output, mine below.