Changes between Initial Version and Version 1 of LocalInstallLinux


Ignore:
Timestamp:
Apr 24, 2012, 8:51:26 AM (12 years ago)
Author:
daniel_h
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • LocalInstallLinux

    v1 v1  
     1= Step-by-step tutorial: local install instructions on Linux 
     2 
     3You can install !RefactorErl on a system where you do not own admin rights. Follow the instructions below. 
     4 
     5You need some packages to be installed by the admin, but they likely can be found on almost all Linux systems. These are: 
     6 * gcc (>= 4.5) 
     7 * make 
     8 * tar 
     9 * bash 
     10 * m4 
     11 * ncurses 
     12 
     13 * libpam-dev (for yaws) 
     14 * openssl (for yaws) 
     15 * wx (optional) 
     16 
     17We assume you would like to install the tool into a local root (e.g. /home/user/local). Modify the following path to your one: 
     18 
     19{{{#!sh 
     20export REFERL_ROOT=/path/to/localroot 
     21}}} 
     22 
     23The local "ghost" user will be 'referl' by default. Feel free to modify it. 
     24 
     25{{{#!sh 
     26export REFERL_GHOST_USER=referl 
     27}}} 
     28 
     29Run the next command in order to initialize the directory layout. 
     30 
     31{{{#!sh 
     32mkdir -p $REFERL_ROOT/home/$REFERL_GHOST_USER 
     33}}} 
     34 
     35If you have not installed Erlang yet, run the following commands to install Erlang/OTP R14B04: 
     36 
     37{{{#!sh 
     38cd $REFERL_ROOT/home/$REFERL_GHOST_USER 
     39wget www.erlang.org/download/otp_src_R14B04.tar.gz 
     40tar xvvf otp_src_R14B04.tar.gz 
     41cd otp_src_R14B04 
     42./configure --prefix=$REFERL_ROOT 
     43make 
     44make install 
     45cd .. 
     46rm otp_src_R14B04.tar.gz 
     47}}} 
     48 
     49To install !RefactorErl: 
     50 
     51{{{#!sh 
     52cd $REFERL_ROOT/home/$REFERL_GHOST_USER 
     53wget http://plc.inf.elte.hu/erlang/dl/refactorerl-0.9.12.01.tar.gz 
     54tar xvvf refactorerl-0.9.12.01.tar.gz 
     55cd refactorerl-0.9.12.01 
     56bin/referl -erl $REFERL_ROOT/bin/erl -build tool 
     57cd .. 
     58rm refactorerl-0.9.12.01.tar.gz 
     59}}} 
     60 
     61Now you should be able to use your !RefactorErl installation. If you would like to use the web based interface of the tool, you have to install the proper version (1.89) of Yaws. 
     62 
     63{{{#!sh 
     64cd $REFERL_ROOT/home/$REFERL_GHOST_USER 
     65wget http://yaws.hyber.org/download/yaws-1.89.tar.gz 
     66tar xvvf yaws-1.89.tar.gz 
     67cd yaws 
     68export ERL=$REFERL_ROOT/bin/erl 
     69export ERLC=$REFERL_ROOT/bin/erlc 
     70./configure --prefix=$REFERL_ROOT --localstatedir=$REFERL_ROOT/var --sysconfdir=$REFERL_ROOT/etc 
     71make 
     72make install 
     73cd .. 
     74rm yaws-1.89.tar.gz 
     75}}} 
     76 
     77To run the tool, execute the following commands: 
     78 
     79{{{#!sh 
     80cd $REFERL_ROOT/home/$REFERL_GHOST_USER/refactorerl-0.9.12.01 
     81bin/referl -erl $REFERL_ROOT/bin/erl -db nif 
     82}}} 
     83 
     84If you have successfully installed yaws, you can start the nitrogen-based web UI with the following function call (mind to change the 'yaws_path'): 
     85 
     86{{{#!erlang 
     87ri:start_nitrogen([{yaws_path, "/path/to/localroot/lib/yaws/ebin/"}]). 
     88}}}