The RPM installation of Freeside is experimental! The instructions below may be incomplete or incorrect and are subject to change. You should only attempt to use the RPM installation if you are prepared to work around omissions and inaccuracies, and can recover data in the event of a loss.
RPM is a build-once, install-many package manager for system management. Originally for RedHat, it is now used on a wide range of Linux distros including Fedora, SUSE, etc.
Well-structured RPMs include dependency information that RPM can use to warn you that additional components are required. Tools such as yum and apt-get (RPM version) can use this dependency information to download additional components from a repository and include them in the installation. This has the potential to make installing Freeside almost as easy as installing a Windows program.
(Check the /install and /debian directories in the Freeside tarball for scripts and notes on installing on various distros.)
Installing the RPM version of Freeside may not be a good idea if you plan to do development on Freeside. The RPMs may not include all the files supplied in the tarball.
Installation is much easier if you have a repository that works with a tool such as yum or apt-get. If you only have rpm and wish to use that, enter:
rpm -Uvh --test freeside-1.5.7-1.noarch.rpm freeside-interface-1.5.7-1.noarch.rpm freeside-backend-1.5.7-1.noarch.rpm perl-Business-OnlinePayment-processor-version
Where:
The command should result in some warnings about unsatisfied dependencies. Find the corresponding RPMs and add them to the list on the command line. Keep doing this until the command results in no warnings, then issue the command one last time without the --test to actually install all the RPMs.
Installing the freeside RPM will install the fsinstall command line utility that you can use to finish the installation.
yum install freeside freeside-interface freeside-backend perl-Business-OnlinePayment-processor
At this point all the required components should be installed and the freeside user account created. You can now complete the installation with fsinstall.
apt-get install freeside freeside-interface freeside-backend perl-Business-OnlinePayment-processor
At this point all the required components should be installed and the freeside user account created. You can now complete the installation with fsinstall.
For the moment, just work through the standard install, ignoring the steps which are done by the RPM, i.e. installing files and creating the freeside user. The RPM does not do any steps that require entry of a password, or which have to be done after a password is specified.
If you can't find an APT/yum repository for your operating system, you can create your own.
wget freeside.tar.gz
tar zxvf freeside.tar.gz
cd freeside/contrib/rpm
rpmbuild -ba freeside.spec
cpan
install Bundle::CPAN
cpan
install Ovid
quit
rpm -Uvh ovid.rpm
ovid Bundle::HTML::Mason
or:
ovid Bundle::Apache::ASP
cd freeside/contrib/rpm
cp Freeside.pm ~/.cpan/Bundle/
ovid Bundle::Freeside
cd freeside/contrib/rpm
cp RT.pm ~/.cpan/Bundle/
ovid Bundle::RT (for optional RT installation)
cd /usr/src/redhat/RPMs/i386
mkdir /var/www/html/fedora/3/
cp *.rpm /var/www/html/fedora/3
yum install createrepo
createrepo /var/www/html/fedora/3
On distros using older versions of yum (e.g. FC2 and earlier), you'll need to use yum-arch instead of createrepo to generate the repository metadata. yum-arch should be installed as part of the yum RPM, so there's no need to install another RPM.
rpm -Uvh --test freeside-1.5.7-1.noarch.rpm freeside-interface-1.5.7-1.noarch.rpm freeside-backend-1.5.7-1.noarch.rpm
yum update
or:
apt-get update
To avoid unplanned upgrades, you may wish to mark the repository containing Freeside as disabled, or remove it from your yum or apt configuration files.
This will not perform any database upgrades, so you should refer to the tarball upgrade documentation and do any database changes by hand. (A future version of fsinstall may be able to perform the database changes needed in an upgrade.)