Skip to content

Instantly share code, notes, and snippets.

@ontheklaud
Created September 13, 2018 00:09
Show Gist options
  • Save ontheklaud/5378fa4334971ee5267a4b09f7bdc9b0 to your computer and use it in GitHub Desktop.
Save ontheklaud/5378fa4334971ee5267a4b09f7bdc9b0 to your computer and use it in GitHub Desktop.
Prerequisite for Using GitKraken in CentOS 7
#!/bin/bash
# GitKraken refers library named libcurl. For bare execution, it gives an error of library not found.
# libcurl-gnutls.so.4: cannot open shared object file: No such file or directory
#
# However, your C7 installation may already have libcurl installation.
# Try,
sudo yum -y install libcurl
# You may see: Package libcurl-7.29.0-46.el7.x86_64 already installed and latest version
# Also, libcurl-so.4 is located in /usr/lib64/libcurl.so.4
# If the library is installed, then we will make softlink for alias library reference
sudo tar -xf gitkraken-amd64.tar.gz -C /opt
cd /opt/gitkraken
# (sudo if you need)
ln -s /usr/lib64/libcurl.so.4 ./libcurl-gnutls.so.4
bash -c 'LD_LIBRARY_PATH=/opt/gitkraken:$LD_LIBRARY_PAYH /opt/gitkraken/gitkraken'
# Here's application entry for desktop envs.
# You can find a descent icon at: http://www.iconarchive.com/show/papirus-apps-icons-by-papirus-team/gitkraken-icon.html
vi ~/.local/share/applications/GitKraken.desktop
# Uncomment for actual usage
# [Desktop Entry]
# Encoding=UTF-8
# Name=GitKraken
# Exec=bash -c 'LD_LIBRARY_PATH=/opt/gitkraken:$LD_LIBRARY_PAYH /opt/gitkraken/gitkraken'
# Icon=/opt/gitkraken/gitkraken-logo.png
# Type=Application
# Categories=Development;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment