Skip to content

errors compiling website in minimal ruby installation #156

@drivers2000

Description

@drivers2000

I tried to follow instructions in the README.md to test changes to the website but received errors from missing packages. I'll attach the full log as a file, but here is a shorter version of what I did.

$ docker run -it --rm -v .:/src -p 3000:3000 ruby bash
root@7313a2a80974:/# gem install nanoc kramdown adsf
Fetching pastel-0.8.0.gem
...
32 gems installed

Then I changed the folder containing my working copy of the repository and tried to build:

root@7313a2a80974:/# cd /src
root@7313a2a80974:/src# ls
README.md  Rakefile  Rules  content  crash.log	deploy.sh  layouts  lib  nanoc.yaml  output  tmp
root@7313a2a80974:/src# nanoc
Loading site… done
Compiling site…
update  [1.37s]  output/clients/index.html
...
update  [0.44s]  output/news/2011/index.html

Error: cannot load such file -- builder

Install the 'builder' gem using `gem install builder`.

I followed that instruction and was able to build the site. However, when I tried to run the site I got another error about a missing package.

Captain! We’ve been hit!
LoadError: Couldn't find handler for: puma, falcon, webrick.
/usr/local/bundle/gems/rackup-2.2.1/lib/rackup/handler.rb:81:in 'Rackup::Handler.pick': Couldn't find handler for: puma, falcon, webrick. (LoadError)
	from /usr/local/bundle/gems/rackup-2.2.1/lib/rackup/handler.rb:91:in 'Rackup::Handler.default'
...

I arbitrarily chose puma and then was able to run the site:

root@7313a2a80974:/src# gem install puma
...

root@7313a2a80974:/src# nanoc view
...
* Listening on http://127.0.0.1:3000
Use Ctrl-C to stop

Because of the port forwarding in my original docker command I was able to connect to the site on localhost:3000.

I found that I could fix the problem by adding two extra packages to the initial command in the README. I'll create a pull request with this change.

mpd-build.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions