Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Has anyone been able to install LuaJIT v2 on FreeBSD AMD64(x64) without using Gmake (just freebsd-make)?

If so how?

When I attempt to use freebsd-make, LuaJIT doesn't build.

share|improve this question
Why do you constraint yourself to not using gmake? I understand the developers who want more portability than just to gmake, but not a user who don't accept to use prerequisites of the developers. Would you ask the same question for ant or bjam or a 3rd party library? – AProgrammer Dec 19 '11 at 16:08
@AProgrammer, because I don't want any GNU/GPL software on my server (which is the philosophy of FreeBSD). LuaJIT is under the MIT license, but by default - it used Gmake to build the software. Gmake is obviously GPL'ed. – JasonH Dec 19 '11 at 16:09
If you want a OS without GPL software, don't use FreeBSD. They ship the OS with GCC and binutils. I don't understand the problem if you have now others very big GPL project installed. Anyway, the best option for your problem in my opinion is rewrite the makefile gmake->fbsd-make. It's not difficult. – Rufo El Magufo Dec 19 '11 at 17:33

You can deinstall gmake again after building luajit.

Another option would be to use luajit 1.x which builds with bsd make.

The Makefile is a GNU Makefile, you would have to rewrite the Makefile.

share|improve this answer
Agreed. JasonH, while I respect your desire to minimize GPL, it's the LuaJIT project itself that is still GPL-ish (by using gmake). Unless you contribute a BSD-make-compatible makefile back to the project, you've already signed up for a hybrid license, so your philosophical stand is moot for this particular port. – Royce Williams Dec 20 '11 at 5:06

You might want to use portmaster, there is an option to automatically install build dependancies from packages (ie. gmake) and than deinstall them right after installation finishes.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.