SAMS2 installation
Requirements Table of Contents Configure SAMS2

3 Installation from source code

3.1 Obtaining 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.

3.2 Configure and compile the source code for your system

  1. 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.

  2. generate configure, Makefie.in:

    $ make -f Makefile.cvs (gmake -f Makefile.cvs)

  3. 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

  4. 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.

3.3 Installation from source

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.

3.4 Create a database

SAMS2 support two database engines:

  • MySQL
  • PostgreSQL
  • Create a database using MySQL

    SAMS2 database for MySQLwill be automatically created at the first start SAMS2 web interface.

    Create a database using PostgreSQL

    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

    Edit sams2.conf settings

    You should change default parameters to connect to the database.


    Requirements Table of Contents Configure SAMS2