Created
February 9, 2011 23:20
-
-
Save wvega/819557 to your computer and use it in GitHub Desktop.
Install Mendeley on Fedora
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
ARCH=`uname -m` | |
INSTALL=/usr/local/mendeley | |
# As noted by Narendiran Anandan in http://disq.us/26v7yj, | |
# required OpenSSL libraries are availabe only at the following locations: | |
# http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/11/Fedora/x86_64/os/Packages/openssl-0.9.8k-1.fc11.x86_64.rpm | |
# http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/11/Fedora/i386/os/Packages/openssl-0.9.8k-1.fc11.i586|i686.rpm | |
case $ARCH in | |
x86_64 ) | |
MENDELEY="http://www.mendeley.com/client/get/100-2" | |
OPENSSL_URL="http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/11/Fedora/$ARCH/os/Packages" | |
OPENSSL_RPM="openssl-0.9.8k-1.fc11.$ARCH.rpm" | |
;; | |
i586 ) | |
MENDELEY="http://www.mendeley.com/client/get/100-1" | |
OPENSSL_URL="http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/11/Fedora/i386/os/Packages" | |
OPENSSL_RPM="openssl-0.9.8k-1.fc11.$ARCH.rpm" | |
;; | |
i* ) | |
MENDELEY="http://www.mendeley.com/client/get/100-1" | |
OPENSSL_URL="http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/11/Fedora/i386/os/Packages" | |
OPENSSL_RPM="openssl-0.9.8k-1.fc11.i686.rpm" | |
;; | |
* ) | |
echo "This installation script currently does not support your system's architecture: $ARCH" | |
;; | |
esac | |
if [ $OPENSSL_URL ]; then | |
mkdir $INSTALL | |
cd $INSTALL | |
# Download Mendeley Desktop and extract the files to installation directory | |
wget $MENDELEY | |
tar -xjf *.tar.bz2 | |
\cp -a mendeleydesktop*/* . | |
rm mendeleydesktop* -rf | |
# Install Mendeley Icons | |
\cp -a share/icons /usr/share/ | |
# Install .desktop | |
\cp -a share/applications/mendeleydesktop.desktop /usr/share/applications/ | |
# Create executable command | |
ln -fs $INSTALL/bin/mendeleydesktop /usr/bin/ | |
# Download openssl-0.9.8 and extract the files from the RPM | |
# See: http://feedback.mendeley.com/forums/4941-mendeley-feedback/suggestions/140258-libssl-so-0-9-8-error-on-64-bit-x86-64- | |
mkdir -p /tmp/openssl | |
cd /tmp/openssl | |
wget "$OPENSSL_URL/$OPENSSL_RPM" | |
rpm2cpio $OPENSSL_RPM | cpio -idmv | |
# cd to Mendeley Desktop directory. The one you extracted the files to... | |
cd $INSTALL/lib | |
# Fix symbolic links | |
rm libssl.so.0 -rf | |
\cp -a /tmp/openssl/usr/lib*/* . | |
ln -s libssl.so.8 libssl.so.0 | |
rm /tmp/openssl -rf | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had issues with the icons sticking to the launcher in F27. Had to run the following script from http://blog.fpmurphy.com/2011/03/customizing-the-gnome-3-shell.html to update the icon cache.