SAMS2 installation | ||
---|---|---|
Requirements | Table of Contents | Configure SAMS2 |
Check the SAMS Home Page at http://sams.perm.ru for information about the current version and for downloading instructions. SAMS is distributed as a source package and pre-compiled distributions.
unzip and untar SAMS sources:
$ tar xzf sams2-VERSION.tar.gz
$ cd sams2-VERSION
You'll have to replace VERSION with the version name of the release.
generate configure, Makefie.in:
$ make -f Makefile.cvs (gmake -f Makefile.cvs)
Now, configure your SAMS2. This is where you customize your SAMS2 with various options, like which extensions will be enabled. Do a ./configure --help for a list of available options.
$ sh ./configure
to install SAMS with documentation, the configure script should be called as follows configure --with-srcdocs. doxygen require!
$ sh ./configure --with-srcdocs
Now build the software, this step will actually compile SAMS2.
$ make (gmake)
You should examine the output of this command carefully to make sure everything is built correctly.
Typically, the installation requires super-user privileges. From the top level SAMS2 source directory, type:
$ su
Password: <enter the appropriate password when requested>
# make install
You should examine the output of this command carefully to make sure everything is installed correctly.
SAMS2 support two database engines:
SAMS2 database for MySQLwill be automatically created at the first start SAMS2 web interface.
The database must be created with UTF-8 (Unicode) encoding.
Create a new database
createdb --encoding=UNICODE --owner=username databasename
Create a user, add that user to the database, and grant the user full rights on the database. Make a note of the username and password.
createuser --pwprompt --encrypted --no-adduser --no-createdb username
You should change default parameters to connect to the database.
Requirements | Table of Contents | Configure SAMS2 |