Sunday, September 9, 2012

Installing liquid feedback front end


################
# Installation #
################


1. Choose a directory where to install the software, e.g. /opt :

$ cd /opt


2. Get the repositories of the core, the frondend and the web application
   framework WebMCP:

$ hg clone http://www.public-software-group.org/mercurial/liquid_feedback_core
$ hg clone http://www.public-software-group.org/mercurial/liquid_feedback_frontend
$ hg clone http://www.public-software-group.org/mercurial/webmcp


3. Install LiquidFeedback Core:

$ cd /opt/liquid_feedback_core
$ make
$ createdb liquid_feedback
$ psql -v ON_ERROR_STOP=1 -f core.sql liquid_feedback

You should initiatize your database using the command
"psql liquid_feedback" and the examples shown in file "init.sql".


4. Compile WebMCP

$ cd /opt/webmcp
$ make

If you experience trouble during compilation, you might want to edit the
file "Makefile.options" (i.e. to add -fPIC to compiler options) and then
retry:

$ vi Makefile.options
$ make clean
$ make


5. Install Wiki-to-HTML converters

Download latest LiquidFeedback Edition of RocketWiki from
http://www.public-software-group.org/pub/projects/rocketwiki/liquid_feedback_edition/

Compile the binaries by calling make, and copy them to a place of your
choice, e.g. /opt/rocketwiki-lqfb/


6. Configure the webserver and the LiquidFeedback Frontend application:

Edit the configuration files in /opt/liquid_feedback_frontend/config/

Use /opt/webmcp/doc/lighttpd.example.conf (or apache.sample.conf) to setup
your webserver appropriatly.


7. Compile help messages from wiki to html

cd /opt/liquid_feedback_frontend/locale/
make

or by hand:

for file in *.txt; do /opt/rocketwiki-lqfb/rocketwiki-lqfb < $file > $file.html; done



 e@ubuntu:/opt$sudo hg clone http://www.public-software-group.org/mercurial/liquid_feedback_core
destination directory: liquid_feedback_core
requesting all changes
adding changesets
adding manifests
adding file changes
added 295 changesets with 406 changes to 63 files
updating to branch default
46 files updated, 0 files merged, 0 files removed, 0 files unresolved




@ubuntu:/opt$ sudo hg clone http://www.public-software-group.org/mercurial/liquid_feedback_frontend
destination directory: liquid_feedback_frontend
requesting all changes
adding changesets
adding manifests
adding file changes
added 894 changesets with 2977 changes to 685 files
updating to branch default
488 files updated, 0 files merged, 0 files removed, 0 files unresolved

e@ubuntu:/opt$ sudo hg clone http://www.public-software-group.org/mercurial/webmcp
destination directory: webmcp
requesting all changes
adding changesets
adding manifests
adding file changes
added 91 changesets with 495 changes to 302 files
updating to branch default
301 files updated, 0 files merged, 0 files removed, 0 files unresolved

e@ubuntu:/opt$ cd /opt/liquid_feedback_core
e@ubuntu:/opt/liquid_feedback_core$ 


ie@ubuntu:/opt/liquid_feedback_core$ make
cc -Wall -g \
-I "`pg_config --includedir`" \
-L "`pg_config --libdir`" \
-o lf_update lf_update.c -lpq
lf_update.c: In function ‘main’:
lf_update.c:19:11: warning: variable ‘out’ set but not used [-Wunused-but-set-variable]
/usr/bin/ld: cannot open output file lf_update: Permission denied
collect2: ld returned 1 exit status
make: *** [lf_update] Error 1

:/opt/liquid_feedback_core$ make clean
rm -f lf_update
rm: cannot remove `lf_update': Permission denied
make: *** [clean] Error 1




 sudo make
make: `lf_update' is up to date.


/opt/liquid_feedback_core$ createdb liquid_feedback
createdb: could not connect to database postgres: FATAL:  role "ie" does not exist
ie@ubuntu:/opt/liquid_feedback_core$ su - www-data
Password:
su: Authentication failure


su - postgres
Password:
postgres@ubuntu:~$ createdb liquid_feedback
postgres@ubuntu:~$ psql -v ON_ERROR_STOP=1 -f core.sql liquid_feedback
core.sql: No such file or directory [why this error ??]


cd webmcp
ie@ubuntu:/opt/webmcp$ ls
demo-app  doc  framework  libraries  LICENSE  Makefile  Makefile.options



 sudo make
[sudo] password for ie: 
make documentation
make[1]: Entering directory `/opt/webmcp'
rm -f doc/autodoc.tmp
lua framework/bin/autodoc.lua framework/cgi-bin/ framework/env/ libraries/ > doc/autodoc.tmp
cat doc/autodoc-header.htmlpart doc/autodoc.tmp doc/autodoc-footer.htmlpart > doc/autodoc.html
rm -f doc/autodoc.tmp
make[1]: Leaving directory `/opt/webmcp'
make accelerator
make[1]: Entering directory `/opt/webmcp'
cd framework/accelerator; make
make[2]: Entering directory `/opt/webmcp/framework/accelerator'
cc -c -O2 -D_GNU_SOURCE -fPIC -Wall -I /usr/include -I /usr/local/include -o webmcp_accelerator.o webmcp_accelerator.c
webmcp_accelerator.c:1:17: fatal error: lua.h: No such file or directory
compilation terminated.
make[2]: *** [webmcp_accelerator.o] Error 1
make[2]: Leaving directory `/opt/webmcp/framework/accelerator'
make[1]: *** [accelerator] Error 2
make[1]: Leaving directory `/opt/webmcp'
make: *** [all] Error 2



lupa/_lupa.c:218: fatal error: lua.h: No such file or directory
You probably need to install the lua development package.


sudo apt-get install lua
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package lua is a virtual package provided by:
  lua5.2:i386 5.2.0-2
  lua5.1:i386 5.1.4-12ubuntu1
  lua50 5.0.3-6
  lua5.2 5.2.0-2
  lua5.1 5.1.4-12ubuntu1
You should explicitly select one to install.

E: Package 'lua' has no installation candidate

sudo apt-get install lua5.1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
lua5.1 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

makedir /opt/liquid_feedback_core/
No command 'makedir' found, did you mean:
 Command 'makedic' from package 'makedic' (universe)
makedir: command not found



1 comment:

  1. If you need your ex-girlfriend or ex-boyfriend to come crawling back to you on their knees (no matter why you broke up) you gotta watch this video
    right away...

    (VIDEO) Have your ex CRAWLING back to you...?

    ReplyDelete