Cuberite Forum
FreeBSD, missing compilation dependencies - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Discussion (https://forum.cuberite.org/forum-5.html)
+--- Thread: FreeBSD, missing compilation dependencies (/thread-2332.html)

Pages: 1 2


FreeBSD, missing compilation dependencies - PureTryOut - 01-25-2016

I switched my server over to FreeBSD last weekend, and been trying to get Cuberite to compile. However, it keeps complaining about the missing dependency "make". The strange thing is that I do actually have "make" installed, as I can run it standalone fine. All other dependencies do however seem to be filled.

This is using FreeBSD 10.2.


RE: FreeBSD, missing compilation dependencies - sphinxc0re - 01-25-2016

Are you using the supplied compile script to compile the server? If so it might be an error in the script itself. Have you tried the official builds?


RE: FreeBSD, missing compilation dependencies - LogicParrot - 01-25-2016

(01-25-2016, 04:19 AM)PureTryOut Wrote: I switched my server over to FreeBSD last weekend, and been trying to get Cuberite to compile. However, it keeps complaining about the missing dependency "make". The strange thing is that I do actually have "make" installed, as I can run it standalone fine. All other dependencies do however seem to be filled.

This is using FreeBSD 10.2.

I suspect this might be a problem with `compile.sh`. Could you please tell me what's the output of the following command on FreeBSD?

Code:
make --help || echo "Hello world"



RE: FreeBSD, missing compilation dependencies - PureTryOut - 02-05-2016

Strange, my last reply doesn't seem to be copied with the forum move.

Anyways I use the compile script mentioned in the README.md on Github, the one using wget. I do however believe the same thing happens by directly pulling the source from Github and running compile.sh from there.

Output of your command @LogicParrot:
Code:
$ make --help || echo "Hello world"
usage: make [-BeikNnqrstWwX]
            [-C directory] [-D variable] [-d flags] [-f makefile]
            [-I directory] [-J private] [-j max_jobs] [-m directory] [-T file]
            [-V variable] [variable=value] [target ...]
Hello world

As expected basically...


RE: FreeBSD, missing compilation dependencies - LogicParrot - 02-05-2016

(02-05-2016, 07:11 PM)PureTryOut Wrote: Strange, my last reply doesn't seem to be copied with the forum move.

Anyways I use the compile script mentioned in the README.md on Github, the one using wget. I do however believe the same thing happens by directly pulling the source from Github and running compile.sh from there.

Output of your command @LogicParrot:
Code:
$ make --help || echo "Hello world"
usage: make [-BeikNnqrstWwX]
            [-C directory] [-D variable] [-d flags] [-f makefile]
            [-I directory] [-J private] [-j max_jobs] [-m directory] [-T file]
            [-V variable] [variable=value] [target ...]
Hello world

As expected basically...

I've seen that comment. Previously, I used `--help` to detect if make exists. As evidenced by your output, this doesn't work on BSD. But I've fixed this by using `command -v` instead. Have you tried compiling recently?


RE: FreeBSD, missing compilation dependencies - PureTryOut - 02-08-2016

Well it comes further now, thanks.

Now it reports:
Code:
nproc: not found
make: option requires an argument -- j
usage: make [-BeikNnqrstWwX]
            [-C directory] [-D variable] [-d flags] [-f makefile]
            [-I directory] [-J private] [-j max_jobs] [-m directory] [-T file]
            [-V variable] [variable=value] [target ...]

-----------------
Script aborted, reason:
Compiling failed

From what I can see, this happens when running cmake.


RE: FreeBSD, missing compilation dependencies - LogicParrot - 02-08-2016

Thanks. Fixed, can you try it one more time?


RE: FreeBSD, missing compilation dependencies - DrMasik - 02-09-2016

If you needed number of CPU threads use:
Code:
sysctl hw.ncpu | awk '{print $2}'



RE: FreeBSD, missing compilation dependencies - PureTryOut - 02-09-2016

Thanks @LogicParrot! That worked!


RE: FreeBSD, missing compilation dependencies - LogicParrot - 02-09-2016

(02-09-2016, 02:10 AM)DrMasik Wrote: If you needed number of CPU threads use:
Code:
sysctl hw.ncpu | awk '{print $2}'

Thanks, but I'd need a cross-platform way to do this.