Skip to content

Install Using yum

Nathan Pinnow edited this page Apr 27, 2020 · 6 revisions

Follow the steps below for the experimental installation of ROSE pre-built binaries packages using yum on CentOS/Red Hat 7 and 8. The development repo is periodically updated based on the current development version while the stable repo is updated upon release. These packages are configured to support c,c++, and binaries. The rose package includes the core rose libraries that are installed by a make install-core. The rose-tools package includes the tools installed by make install-tools and will also install the rose package dependency.

Installation Steps

CentOS 7

Create the file /etc/yum.repos.d/rose.repo and add the following lines to the file in order to add the rose repo to the list of repos that yum will check. If you want the stable repo replace develop in the first and third line with release.

[rose-develop]
name = rose-rpm-repo
baseurl = http://rosecompiler.org/uploads/repos/rhel/7/develop
gpgcheck = 0
enabled = 1

[rose-dependencies]
name = rose-dependencies-rpm-repo
baseurl = http://rosecompiler.org/uploads/repos/rhel/7/dependencies
gpgcheck = 0
enabled = 1

CentOS 8

Create the file /etc/yum.repos.d/rose.repo and add the following lines to the file in order to add the rose repo to the list of repos that yum will check. If you want the stable repo replace develop in the first line with release.

[rose-develop]
name = rose-rpm-repo
baseurl = http://rosecompiler.org/uploads/repos/rhel/7/develop
gpgcheck = 0
enabled = 1

CentOS 7 and 8

Once you add the repo you need to use yum update then you can yum install rose.

sudo yum update
sudo yum install rose

GCC and Boost

CentOS 7

The default system compiler for CentOS 7 is GCC 4.8 which is no longer capable of compiling ROSE. To support this package ROSE is compiled with GCC 7 and Boost 1_67_0 but is set to emulate GCC 4.8 when running analysis and transformation. To support this the version of GCC and Boost that built rose are dependencies of the rose package (named with the -rose extension to not interfere with system compilers. e.g. gcc-rose g++-rose). If you would like rose to emulate GCC 7 instead of 4.8 you can replce the rose package with the rose-gnu7 package.

CentOS 8

The default system compiler for CentOS 8 is GCC 8 and Boost 1_66_0.

What was installed

You can get a list of installed executable by running the following command.

repoquery -l *rose* | grep /usr/local/bin/

Testing

You can test the installation of ROSE by making and running a ROSE tool called backstroke. This will test using rose-config to link and run a ROSE tool. The following command will compile and run backstroke.

git clone https://github.com/LLNL/backstroke.git
cd backstroke
make
sudo make install
make check

If ROSE was installed correctly the tests should succeed.

Clone this wiki locally