How to Install Samvera Hyrax on Void Linux
Samvera Hyrax is a digital repository system that helps organizations store, manage, and provide access to digital content. This tutorial will guide you through the process of installing Samvera Hyrax on Void Linux.
Prerequisites
Before we begin, make sure that you have the following prerequisites installed on your system:
- Ruby (version 2.5 or higher)
- Node.js
- Yarn
- PostgreSQL
You can install these prerequisites using the following commands:
# Install Ruby and Node.js
xbps-install -S ruby nodejs
# Install Yarn
npm install --global yarn
# Install PostgreSQL
xbps-install -S postgresql-server
Install Samvera Hyrax
Now that we have the prerequisites installed, let's proceed with the installation of Samvera Hyrax.
Open your terminal and navigate to the directory where you want to install Samvera Hyrax.
Clone the Samvera Hyrax repository using the following command:
git clone https://github.com/samvera/hyrax.gitNavigate to the cloned repository using the following command:
cd hyraxInstall the required gems using the following command:
bundle install --deployment --without development testCreate the database and run the database migration using the following commands:
bundle exec rake db:create bundle exec rake db:migrateLoad the default data using the following command:
bundle exec rake hyrax:default_admin_set:create
Start Samvera Hyrax
Now that Samvera Hyrax is installed, we can start the application.
Start the Rails server using the following command:
bundle exec rails serverOpen your web browser and navigate to
http://localhost:3000. You should see the Samvera Hyrax splash page.
Congratulations! You have successfully installed Samvera Hyrax on Void Linux.