Linux Build

Added by spong about 5 years ago

I get the following on the make_all script after following the instructions:

xxx@yyy:/opt/ryzom_root/ryzom/code$ make_all
/opt/ryzom_root/ryzom/code/ryzom/tools/scripts/linux/utilities: 11: Syntax error: "(" unexpected

I think the problem is that the utilities appears to be some non-BASH shell script. What shell are you guys using (looks like csh or tcsh)? Or more accurately, where does your /bin/sh point?


Replies (5)

RE: Linux Build - Added by thorbjorn about 5 years ago

Yes, you need to remove all the "function" keywords before the functions, since these are optional bashisms, and don't work for example in dash. There is a patch on the bug tracker for this: http://dev.ryzom.com/issues/844

RE: Linux Build - Added by grego about 5 years ago

Or just make bash your /bin/sh link - if you're using ubuntu it's easy enough with "sudo dpkg-reconfigure dash" and select "NO".

RE: Linux Build - Added by spong about 5 years ago

That did it, thanks!

RE: Linux Build - Added by thorbjorn about 5 years ago

Thanks for also updating the Linux build instructions!

Just a tip though, the wiki does have a Preview feature. :-)

RE: Linux Build - Added by tuple about 5 years ago

Alternatively, you could run the make_all script with bash, such as:
bash ./code/ryzom/tools/scripts/linux/make_all
which has worked for me on ubuntu ;)

I might add that if you change the RYZOM_PATH in make_all so that the code doesn't need to be in the root of your home directory >:( the build will still fail looking for ~/log
Best bet is to just ln -s CODE_DIRECTORY_PATH ~/;mkdir ~/log
Which should do it.

(1-5/5)