Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build for FreeBSD #497

Closed
noamross opened this issue Dec 18, 2019 · 2 comments
Closed

Build for FreeBSD #497

noamross opened this issue Dec 18, 2019 · 2 comments
Milestone

Comments

@noamross
Copy link

Hi, I'm trying to get Remark42 to work in a FreeBSD environment where I don't have docker. Unfortunately the standalone Linux binary doesn't work under FreeBSD (it dies at the first web request). Can you point me to how I might compile from source without Docker?

@umputun
Copy link
Owner

umputun commented Dec 18, 2019

Hi. There are two ways to build binary remark42 from sources:

  1. the simplest way is a cross-compile build on any system supporting docker. Linux, Win, MacOS should do it. To run such a build with FreeBSD target you do make OS=freebsd bin and it will produce self-contained remark42 file. Note: I just added support for such FreeBSD build in 3eacd6f
  2. You can also install all dependencies & toolchains and run everything manually, directly on the FreeBSD box. Frankly, I have no clue if this will even work on FreeBSD (never tried), but take a look at Dockerfile.artifacts, it will give you ideas what needed to be installed, i.e. go, npm and so on

Attached a binary build I just made for FreeBSD (from the master). For the next release, it will be a part of attached binary artifacts

remark42.freebsd-amd64.tar.gz

@noamross noamross changed the title Non-Docker build workflow Build for FreeBSD Dec 18, 2019
@noamross
Copy link
Author

The FreeBSD binary works great, thank you!

@umputun umputun added this to the v1.5 milestone Jan 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants