馃摎 Building server with docs fails
I was following the building documentation available here : https://docs.ludus.cloud/docs/developers/building-from-source#building-with-embedded-documentation
- First step I took all the script block to past it in the terminal to launch the build and got this errors:
Command 'yarn' not found, but can be installed with:
apt install cmdtest
Command 'yarn' not found, but can be installed with:
apt install cmdtest
mv: cannot stat './build': No such file or directory
Command 'go' not found, but can be installed with:
snap install go # version 1.23.5, or
apt install golang-go # version 2:1.21~2
apt install gccgo-go # version 2:1.21~2
See 'snap info go' for additional versions.
This could be added to the documentation to get more clear about the steps :
# for debian
apt install golang-go snap
For the yarn part it was a little bit harder :
I first installed it with apt
but had to remove it because I got this message :
root@ludus-client:~# git clone https://gitlab.com/badsectorlabs/ludus.git
Cloning into 'ludus'...
remote: Enumerating objects: 4586, done.
remote: Counting objects: 100% (628/628), done.
remote: Compressing objects: 100% (374/374), done.
remote: Total 4586 (delta 432), reused 348 (delta 244), pack-reused 3958 (from 1)
Receiving objects: 100% (4586/4586), 79.71 MiB | 11.08 MiB/s, done.
Resolving deltas: 100% (3383/3383), done.
root@ludus-client:~# cd ludus
root@ludus-client:~/ludus# export GIT_COMMIT_SHORT_HASH=$(git rev-parse --short HEAD)
root@ludus-client:~/ludus# export VERSION=$(git rev-parse --abbrev-ref HEAD)
root@ludus-client:~/ludus# cd docs
root@ludus-client:~/ludus/docs# yarn install
00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'install'
Resolution steps : HOW TO INSTALL YARN
root@ludus-client:~# echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
root@ludus-client:~# wget -qO- https://dl.yarnpkg.com/debian/pubkey.gpg | tee /etc/apt/trusted.gpg.d/dl.yarnpkg.com.asc
root@ludus-client:~# apt update
root@ludus-client:~# apt install yarn
root@ludus-client:~# yarn --version
1.22.22
- FULL LOG
root@ludus-client:~# echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
root@ludus-client:~# wget -qO- https://dl.yarnpkg.com/debian/pubkey.gpg | tee /etc/apt/trusted.gpg.d/dl.yarnpkg.com.asc
root@ludus-client:~# apt update
Hit:1 http://archive.ubuntu.com/ubuntu noble InRelease
Hit:2 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:3 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu noble-security InRelease
Hit:5 https://dl.yarnpkg.com/debian stable InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
root@ludus-client:~# apt install yarn
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
yarn
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 896 kB of archives.
After this operation, 5,431 kB of additional disk space will be used.
Get:1 https://dl.yarnpkg.com/debian stable/main amd64 yarn all 1.22.22-1 [896 kB]
Fetched 896 kB in 0s (2,818 kB/s)
Selecting previously unselected package yarn.
(Reading database ... 211462 files and directories currently installed.)
Preparing to unpack .../yarn_1.22.22-1_all.deb ...
Unpacking yarn (1.22.22-1) ...
Setting up yarn (1.22.22-1) ...
root@ludus-client:~# yarn --version
1.22.22
Hope that helps !
Edited by Cro Krodile