Skip to content

FwTemplateRevisionInstall

Anthony Molinaro edited this page Feb 3, 2013 · 1 revision

Introduction

This page will assist you in installing fw-template-revision.

If you've already installed fw-template-revision and want to know how to use it, check out the walkthrough.

The Less Easy Way

Prerequisites:

  1. framewerk

Go to the downloads section and grab the latest .tar.gz file.

Unpack the tarball, then run configure and make check.

# tar -zxf fw-template-revision-0.0.3.tar.gz 
# cd fw-template-revision-0.0.3
# ./configure --prefix=/usr/local && make -s check

The default prefix is /usr so if you are ok with that then you can omit the prefix argument. Hopefully you will see something like[2]

...
PASS: test-template
==================
All 1 tests passed
==================

If not, the test output is in tests/test-template.out; perhaps it is informative.

Now you can either make install to just stick stuff on your system, or you can build your own debian package if you are on a debian based system. To do the latter type

# env FW_DUPLOAD_ARGS="-no" make release
...

which should run the tests again and ultimately produce a .deb in fw-pkgout/ in the root directory of the project which you can install.[1]

# ls fw-pkgout/*.deb
fw-pkgout/fw-template-revision-build_0.0.3_darwin-i386.deb
fw-pkgout/fw-template-revision_0.0.3_all.deb
# sudo dpkg -i fw-pkgout/fw-template-revision_0.0.3_all.deb
Selecting previously deselected package fw-template-revision.
(Reading database ... 51894 files and directories currently installed.)
Unpacking fw-template-revision (from .../fw-template-revision_0.0.3_all.deb) ...
Setting up fw-template-revision (0.0.3) ...

That's it.

Next steps

Check out the fw-template-revision walkthrough.


Footnotes

## 1 You might see some errors here if dupload is not installed. Framewerk wants to upload the package it makes to a repository and I'm assuming you don't have one, hence the FW_DUPLOAD_ARGS="-no" (in case you do have dupload installed, this causes it to do a dry run).

If you have dupload installed and your own repository than you can set FW_DUPLOAD_ARGS as desired. For your own projects you can even hard code this in. Check out fw-pkgin/config if you are interested.

## 2 If you see something like: ```no-highlight fw requires GNU make to build, you are using bsd make *** Error code 1

Stop.

Then you are using bsd make which will not work.  Try again with gnu make, e.g.,
```no-highlight
# ./configure --prefix=/usr/local && gmake -s check