FreeBSD, missing compilation dependencies
#1
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.
Reply
Thanks given by:
#2
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?
Reply
Thanks given by:
#3
(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"
Reply
Thanks given by:
#4
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...
Reply
Thanks given by:
#5
(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?
Reply
Thanks given by:
#6
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.
Reply
Thanks given by:
#7
Thanks. Fixed, can you try it one more time?
Reply
Thanks given by:
#8
If you needed number of CPU threads use:
Code:
sysctl hw.ncpu | awk '{print $2}'
Reply
Thanks given by:
#9
Thanks @LogicParrot! That worked!
Reply
Thanks given by:
#10
(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.
Reply
Thanks given by:




Users browsing this thread: 7 Guest(s)