I have been thinking for couple of days now that I should give Ghost a try.
Since I am re-starting blogging and all, might as well try different blog engines while I’m at it.
It would be no fun installing it on linux, so I decided to use FreeBSD VM on Digitalocean + a Jail inside of it.
Downloaded and unpacked ghost and then hit a bug.
Nodejs sqlite module would not install.
2695 error FreeBSD 10.1-RELEASE-p10 2696 error argv "node" "/usr/local/bin/npm" "install" "sqlite3" 2697 error node v0.12.6 2698 error npm v2.12.1 2699 error code ELIFECYCLE 2700 error firstname.lastname@example.org install: `node-pre-gyp install --fallback-to-build` 2700 error Exit status 1 2701 error Failed at the email@example.com install script 'node-pre-gyp install --fallback-to-build'. 2701 error This is most likely a problem with the sqlite3 package, 2701 error not with npm itself. 2701 error Tell the author that this fails on your system: 2701 error node-pre-gyp install --fallback-to-build 2701 error You can get their info via: 2701 error npm owner ls sqlite3 2701 error There is likely additional logging output above. 2702 verbose exit [ 1, true ]
The problems there were related but also a bit different and those solutions did not apply fully for me. I found though by reading the debug log that actually I was missing gmake and python in my jail.
I managed to resolve those errors by installing gmake and python and by updating npm modules. But later on discovered that much simpler solution is to install sqlite3 from FreeBSD package.
I have now tested this on a clean jail and at least from my perspective to successfully install ghost on FreeBSD 10.1 you only need to:
sudo pkg install node npm sqlite3 wget https://ghost.org/zip/ghost-0.6.4.zip mkdir superduperblog cd superduperblog unzip ../ghost-0.6.4.zip npm install --production npm start