The standard installation procedure explained in
Chapter 2, Installation uses
root
account.
You can install the software in a home directory using a normal user
account, for instance lixa
.
To specify an alternative installation path you have to use
--prefix
option at configure time.
The following steps show how you can install the software in
lixa
home directory.
lixa@ubuntu:~$ ls -l total 1520 -rw-r--r-- 1 lixa lixa 1550959 2011-12-18 21:25 lixa-0.5.36.tar.gz lixa@ubuntu:~$ tar xzf lixa-0.5.36.tar.gz lixa@ubuntu:~$ cd lixa-0.5.36 lixa@ubuntu:~/lixa-0.5.36$ ./configure --prefix=/home/lixa/prod [...] config.status: creating config.h config.status: executing depfiles commands config.status: executing tests/atconfig commands lixa@ubuntu:~/lixa-0.5.36$ make install [...] make[2]: Leaving directory `/home/lixa/lixa-0.5.36' make[1]: Leaving directory `/home/lixa/lixa-0.5.36' lixa@ubuntu:~/lixa-0.5.36$ ls -la /home/lixa/prod/ total 36 drwxr-xr-x 9 lixa lixa 4096 2011-12-18 21:30 . drwxr-xr-x 5 lixa lixa 4096 2011-12-18 21:28 .. drwxr-xr-x 2 lixa lixa 4096 2011-12-18 21:29 bin drwxr-xr-x 2 lixa lixa 4096 2011-12-18 21:28 etc drwxr-xr-x 2 lixa lixa 4096 2011-12-18 21:29 include drwxr-xr-x 2 lixa lixa 4096 2011-12-18 21:29 lib drwxr-xr-x 2 lixa lixa 4096 2011-12-18 21:29 sbin drwxr-xr-x 3 lixa lixa 4096 2011-12-18 21:30 share drwxr-xr-x 2 lixa lixa 4096 2011-12-18 21:29 var lixa@ubuntu:~/lixa-0.5.36$ export LD_LIBRARY_PATH=/home/lixa/prod/lib lixa@ubuntu:~/lixa-0.5.36$ /home/lixa/prod/sbin/lixad --daemon lixa@ubuntu:~/lixa-0.5.36$ ps -ef|grep lixad|grep -v grep lixa 23493 1 0 21:32 ? 00:00:00 /home/lixa/prod/sbin/lixad --daemon lixa@ubuntu:~/lixa-0.5.36$ export PATH=$PATH:/home/lixa/prod/bin lixa@ubuntu:~/lixa-0.5.36$ lixat tx_open(): 0 tx_close(): 0
Installing LIXA using a non
root
account has some advantages:
there aren't post install steps to change the ownership of
etc
and var
directories
you can install the software without
root
privileges
and some disadvantages:
the software is installed inside a home directory instead of a system path
there is no distinction between the administrative account
that must manage the state (var
) and
the configuration (etc
) and the
system account that must manage the software installation.