-
Notifications
You must be signed in to change notification settings - Fork 134
Install Using apt get
Use the commands below for the experimental installation of ROSE pre-built binaries packages using apt-get on Ubuntu 18.04 and 20.04. The rose-development archive is periodically updated based on the current development version while the rose-stable archive is updated upon release. These packages are configured to support c,c++. On Ubuntu 20.04 binaries are enabled as well. 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.
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:rosecompiler/rose-development # Replace rose-development with rose-stable for release version
sudo apt-get install rose
sudo apt-get install rose-tools # Optional: Installs ROSE tools in addition to ROSE Core
See below for additional instructions when installing behind some firewalls like at LLNL.
This package uses the default system version of GCC and Boost which for Ubuntu 18.04 is GCC 7 and Boost 1_65_1 and for Ubuntu 20.04 is GCC 9 and Boost 1_71_0.
You can get a list of installed ROSE tools by running the following command.
dpkg -L rose rose-tools | grep /usr/bin/
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.
When attempting to add the repository the following error message can occur:
Cannot add PPA: 'ppa:~rosecompiler/ubuntu/rose-development'.
ERROR: '~rosecompiler' user or team does not exist.
When this happens you need to add the repository to the sources list directly. Add one of the following lines to /etc/apt/sources.list
#For Ubuntu 18.04
#For development archive
deb http://ppa.launchpad.net/rosecompiler/rose-development/ubuntu bionic main
#For release archive
deb http://ppa.launchpad.net/rosecompiler/rose-stable/ubuntu bionic main
#For Ubuntu 20.04
#For development archive
deb http://ppa.launchpad.net/rosecompiler/rose-development/ubuntu focal main
#For release archive
deb http://ppa.launchpad.net/rosecompiler/rose-stable/ubuntu focal main
Then run sudo apt-get update
and sudo apt-get install rose
.
When adding the repository if the following error can occur.
Err:3 http://ppa.launchpad.net/rosecompiler/rose-development/ubuntu bionic InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY DF61639161C9A719
Reading package lists... Done
W: GPG error: http://ppa.launchpad.net/rosecompiler/rose-development/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY DF61639161C9A719
E: The repository 'http://ppa.launchpad.net/rosecompiler/rose-development/ubuntu bionic InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
To fix this you need to manually get the public key for the repository, run the following command.
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DF61639161C9A719
Then run sudo apt-get update
and sudo apt-get install rose
.
To use these instructions you will need open ssh ports. Start by running the following commands.
sudo apt-get install software-properties-common
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DF61639161C9A719
Then one of the following lines to the file /etc/apt/sources.list
.
#For Ubuntu 18.04
#For development archive
deb http://ppa.launchpad.net/rosecompiler/rose-development/ubuntu bionic main
#For release archive
deb http://ppa.launchpad.net/rosecompiler/rose-stable/ubuntu bionic main
#For Ubuntu 20.04
#For development archive
deb http://ppa.launchpad.net/rosecompiler/rose-development/ubuntu focal main
#For release archive
deb http://ppa.launchpad.net/rosecompiler/rose-stable/ubuntu focal main
Then finish by running the following commands.
sudo apt-get update
sudo apt-get install rose
sudo apt-get install rose-tools # Optional: Installs ROSE tools in addition to ROSE Core
The instructions and scripts about how to support apt-get for ROSE: