[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Installation Instructions on Ubuntu Server 11.10



I have prepared a list of commands to install ledgersmb on a clean Ubuntu
Server 11.10 installation.

I found problems with the existing Ubuntu installation instructions at:
http://www.ledgersmb.org/help/install/Ubuntu_Installation_Tutorial_LedgerSMB-1.3-SERIES.html

The commands are based on those instructions, but they address problems
including:
* update package requirements to suit ledgersmb-1.3.14
* remove references to broken links
* remove redundant/duplicate steps

I have tested this procedure, starting with a clean Ubuntu Server
installation, on a Virtualbox machine. I'm happy to make that machine
image available if it is of interest.

I hope this will help others looking to try ledgersmb on Ubuntu.

Any feedback or questions welcome.

Nick

####
# Installation commands for ledgersmb on clean Ubuntu Server 11.10

# Make sure base packages are up-to-date before starting
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

# Install necessary packages
sudo apt-get install \
  apache2 postgresql postgresql-contrib \
  texlive-latex-base texlive-latex-extra \
  dh-make-perl build-essential \
  libcgi-simple-perl libconfig-std-perl libdbi-perl \
  liblog-log4perl-perl libmime-lite-perl libdbd-pg-perl \
  liblocale-maketext-lexicon-perl libmodule-install-perl \
  libtest-trap-perl libtest-exception-perl libdatetime-perl \
  libtemplate-perl libfile-mimeinfo-perl libnet-tclink-perl \
  liblatex-driver-perl liblatex-encode-perl liblatex-table-perl \
  libtest-deep-perl libxml-parser-perl libopenoffice-oodoc-perl \
  libspreadsheet-writeexcel-perl libspreadsheet-parseexcel-perl \
  libparse-recdescent-perl

# Build and install packages for perl modules not packaged with Ubuntu
# May need to adjust version numbers if CPAN modules have been updated
# to later versions since these instructions were written
dh-make-perl --build --cpan Template::Plugin::Latex
sudo dpkg -i libtemplate-plugin-latex-perl_3.02-1_all.deb
dh-make-perl --build --cpan  Excel::Template
sudo dpkg -i libexcel-template-perl_0.33-1_all.deb
dh-make-perl --build --cpan MooseX::Param
sudo dpkg -i libmoosex-param-perl_0.02-1_all.deb
dh-make-perl --build --cpan  Excel::Template::Plus
sudo dpkg -i libexcel-template-plus-perl_0.05-1_all.deb

# Download and unpack latest ledgersmb tarball
# a directory called ledgersmb will result
wget -O-
"http://sourceforge.net/projects/ledger-smb/files/latest/download?source=files";
| tar -zx
sudo mv ledgersmb /usr/local/
sudo chown -Rv www-data:www-data /usr/local/ledgersmb

# Generate apache config
sudo sed \
  -e "s|WORKING_DIR|/usr/local/ledgersmb|g" \
  -i /usr/local/ledgersmb/ledgersmb-httpd.conf.template
sudo mv \
  /usr/local/ledgersmb/ledgersmb-httpd.conf.template \
  /etc/apache2/conf.d/ledgersmb-httpd.conf
sudo a2enmod rewrite
sudo mv \
  /usr/local/ledgersmb/ledgersmb.conf.default \
  /usr/local/ledgersmb/ledgersmb.conf
sudo /etc/init.d/apache2 restart

# Update config to point to database contrib/extension dir
sudo sed \
-e "s|^contrib_dir =.*|contrib_dir = /usr/share/postgresql/9.1/extension|"\
-i /usr/local/ledgersmb/ledgersmb.conf

# Change postgres 'superuser' password
echo "ALTER USER postgres WITH PASSWORD 'postgres'" | \
  sudo su postgres -c "psql -f -"

# Sanity test: check that dependencies are satisfied
cd /usr/local/ledgersmb
sudo perl Makefile.PL
sudo make test
# should eventually get output:
# All tests successful.
# Result: PASS

# Make sure there is no existing direcory /tmp/ledgersmb
# If there is and permissions are wrong, this will prevent
# database initialisation. The first you will know is an
# error, several steps into the setup process,
# complaining about salutations - not obvious!
sudo rm -rvf /tmp/ledgersmb

# Ready to start configuring and using LedgerSMB...
# Point a browser at http://localhost/ledgersmb/setup.pl

####



------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Ledger-smb-users mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-users