Clarification on setting RYZOM_HOME path please?
Added by brocifer over 8 years ago
Ok, from the Wiki instructions located at http://dev.ryzom.com/wiki/ryzom/BuildForLinux it tells us to create the path as follows:
export RYZOM_PATH="/home/user/code/ryzom"
However, when you clone the repo from within your home directory using:
hg clone http://ryzom.hg.sourceforge.net:8000/hgroot/ryzom/ryzom
The resulting directory structure does not match the suggested path in the instructions.
Specifically you get a structure that looks more like this:
/home/user/code/ryzom/code
inside /home/user/ryzom/code we see:
total 80Krw-r--r- 1 root root 36K May 12 09:47 acinclude.m4
drwxr-xr-x 12 root root 4.0K May 12 09:47 nelns
drwxr-xr-x 7 root root 4.0K May 12 09:47 ryzom
drwxr-xr-x 7 root root 4.0K May 12 09:47 snowballs2
drwxr-xr-x 12 root root 4.0K May 12 09:47 tool
drwxr-xr-x 10 root root 4.0K May 12 09:47 nel
The next step in the instructions tell you to run the following command:
$RYZOM_PATH/tools/scripts/linux/buildmode static
But wait a second here, if we translate the path out it resolves to:
/home/user/code/ryzom/tools/scripts/linux/buildmode static (assuming we set the path as per the instructions)
This is clearly a bad path, so naturally my first workaround was to simply map the path as I expected it should look...
(i.e. export RYZOM_PATH="/home/user/code/ryzom/code/ryzom") This didn't work, I still ran into compile errors on the last step. So in short, I'm trying to figure out if this could be a factor in these compile issues I'm running into.
TL;DR The Linux compile instructions seem to be directing you to create an invalid path. Am I crazy, missing something, or both? :)
Thanks!
Replies (2)
RE: Clarification on setting RYZOM_HOME path please? - Added by kirlack over 8 years ago
Hi,
There is 2 different "ryzom" directories and the "/home/user" directory is only a suggestion. One "ryzom" directory is created by mercurial, containing the "code" directory, himself containing the second "ryzom" directory. The instructions refers to the second one. Example :
> ls > hg clone http://ryzom.hg.sourceforge.net:8000/hgroot/ryzom/ryzom >/dev/null 2>/dev/null > ls ryzom > ls -d ryzom/code/ryzom/ ryzom/code/ryzom/ > pwd /whatever/you/want > export RYZOM_PATH="/whatever/you/want/ryzom/code/ryzom"
RE: Clarification on setting RYZOM_HOME path please? - Added by brocifer over 8 years ago
kirlack wrote:
Hi,
There is 2 different "ryzom" directories and the "/home/user" directory is only a suggestion. One "ryzom" directory is created by mercurial, containing the "code" directory, himself containing the second "ryzom" directory. The instructions refers to the second one. Example :
[...]
Right, I understand the path is an example. I just wasn't familiar with how mercurial clones the code I guess, that clears it up.
Cheers! :)
(1-2/2)