Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Nov 2020 22:32:34 -0700
From:      Gary Aitken <freebsd@dreamchaser.org>
To:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   middleman
Message-ID:  <5ee5097d-2fce-51ad-2700-5efd0f9c6508@dreamchaser.org>

Next in thread | Raw E-Mail | Index | Archive | Help
I'm trying to get up to speed on a project that was started using middleman.
I'm a naive ruby user and mostly clueless about middleman, so any help and
pointers would be much appreciated.

I installed the package, which left a binary named "mman" but no middleman:

$pkg info -l middleman
middleman-1.9.1_2:
         /usr/local/bin/mman
         /usr/local/etc/mman.xml.sample
         /usr/local/etc/rc.d/mman.sh.sample
         /usr/local/man/man8/mman.8.gz
         /usr/local/share/doc/middleman/README.html
         /usr/local/share/doc/middleman/filter.pl

However, substituting "mman" for "middleman" in the examples on the middleman
site
   https://middlemanapp.com/
lead to other anomalies:

$ mman init test_proj
config file option missing

I then tried
#gem install middleman

which did install a bunch of gems, but then I get different errors:
$   middleman init test_proj
Traceback (most recent call last):
         16: from /usr/local/bin/middleman:23:in `<main>'
         15: from /usr/local/bin/middleman:23:in `load'
         14: from /usr/local/lib/ruby/gems/2.6/gems/middleman-cli-4.3.11/bin/middleman:49:in `<top (required)>'
...
/usr/local/lib/ruby/gems/2.6/gems/execjs-2.7.0/lib/execjs/runtimes.rb:58:in `autodetect': Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)

Shouldn't the gems and runtimes have been installed with the pkg?

Can anyone explain to me what's going on?

Thanks,

Gary



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?5ee5097d-2fce-51ad-2700-5efd0f9c6508>