Monday, September 24, 2012

Installing SeisComp3 on fedora 17

After installing Fedora 17  I will now describe how to install MySQL server and SeisComp3.

first, install MySQL (following this):
> sudo yum install -y mysql mysql-server

enable and start MySQL service:
> sudo systemctl enable mysqld.service
> sudo systemctl start mysqld.service

Next, secure the server:
> sudo /usr/bin/mysql_secure_installation
(answer yes to all questions and change the MySQL root password)
If you need to change the database location from the default follow this (source):
Stop the service:
> systemctl stop mysqld.service
Copy from default to new location:
> cp -R -p /var/lib/mysql /path/to/new/datadir
Clean unneeded files:
> rm /path/to/new/datadir
(don't worry about error messages - the undeleted files are the databases)
Edit the configuration file:
>  gedit /etc/mysql/my.cnf
(change keyword value of datadir to the new location)
Restart the service:
> systemctl restart mysqld.service

Now to the SeisComp3 install (Zurich version for fedora16 modified for fedora 17):
Add needed packages:
> sudo yum install -y boost-filesystem boost-iostreams boost-program-options boost-serialization boost-signals
boost-thread boost-wave boost-regex boost-devel ncurses python-numeric numpy alsa-utils festival
Link installed libraries (so.1.48) to the needed packages (so.1.47):

> sudo ln -s /usr/lib64/libboost_iostreams.so.1.48.0 /usr/lib64/libboost_iostreams.so.1.47.0

> sudo ln -s /usr/lib64/libboost_filesystem.so.1.48.0 /usr/lib64/libboost_filesystem.so.1.47.0
> sudo ln -s /usr/lib64/libboost_system.so.1.48.0 /usr/lib64/libboost_system.so.1.47.0
> sudo ln -s /usr/lib64/libboost_regex.so.1.48.0 /usr/lib64/libboost_regex.so.1.47.0
> sudo ln -s /usr/lib64/libboost_thread-mt.so.1.48.0 /usr/lib64/libboost_thread-mt.so.1.47.0
> sudo ln -s /usr/lib64/libboost_program_options.so.1.48.0 /usr/lib64/libboost_program_options.so.1.47.0
> sudo ln -s /usr/lib64/libboost_signals.so.1.48.0 /usr/lib64/libboost_signals.so.1.47.0
Put key files in ~/.seiscomp3/key/ directory
Install using the setup and seiscomp config procedures described in the SeisComp3 documentations
add a source to env.sh file in your .bashrc:
source ~/seiscomp3/lib/env.sh

For the seattle release use:
>sudo yum install -y boost boost-devel python-numeric


Don't forget to download and extract to the seiscomp directory, the correct fedora seiscomp package (e.g. seiscomp3-zurich-xxxx.xxx.xx-fedora16-x86_64.tar.gz), the maps (e.g. seiscomp3-maps.tar.gz) and the methadata of GE network (e.g. seiscomp3-metadata-GE-2010.tar.gz).

7 comments:

  1. nicely described...great posts all along the blog.. keep it up

    ReplyDelete
  2. Hi. My name Oleg. I'm working at the Institute of Geophysics NAC of Ukraine. I'd like to install seiscomp but have problem with libboost. Can I have your help?

    sudo yum install libboost_thread-mt.so.1.58.0 rpm

    No package libboost_thread-mt.so.1.58.0 available.
    Package rpm-4.13.0-0.rc1.3.fc23.x86_64 is already installed, skipping.
    Error: Unable to find a match.

    ReplyDelete
    Replies
    1. Hi Oleg,
      Sorry for the very late reply.
      Did you solved the problem? I switched to Ubuntu 14.04 now so I'm not sure I can help too much. Did you try to download the source code of boost compile it without the RPM?
      Cheers,
      Ran

      Delete
    2. Hi Oleg,
      Sorry for the very late reply.
      Did you solved the problem? I switched to Ubuntu 14.04 now so I'm not sure I can help too much. Did you try to download the source code of boost compile it without the RPM?
      Cheers,
      Ran

      Delete
  3. Hi Ran,
    many thanks for your explanations.
    would you please tell me what you mean here:
    Put key files in ~/.seiscomp3/key/ directory

    which key files?

    moreover, my.cnf hasn't been created in mysql. how can I edit it?
    gedit /etc/mysql/my.cnf

    thanks
    Sima

    ReplyDelete
    Replies
    1. Hi Sima,
      Sorry for the late reply.
      You need to obtain key files from GFZ. See here for more details http://www.seiscomp3.org/wiki/license
      Key files are needed for running the GUI modules.
      I'm not sure about the my.cnf. looking at https://serverfault.com/questions/430598/my-cnf-missing-on-all-directories-after-new-mysql-installtion

      I can see two options:
      If the installation process doesn't create a my.cnf file for you then you merely need to create one yourself. Full documentation on the options is available on the MySQl web site.
      OR:
      Run rpm -ql MySQL-server, I bet that you will see several default configuration files available in /usr/share/mysql. Just pick one and copy to /etc

      Delete

Please Comment this Post or send me an Email