Last active
June 14, 2017 16:59
-
-
Save JonathanBristow/4ea691431e8112f070ef8a9bb0e8905d to your computer and use it in GitHub Desktop.
CentOS Nightmare.JS Install
This file contains hidden or 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/bash | |
sudo yum update -y | |
sudo yum groupinstall "Development Tools" -y | |
sudo yum -y install gcc git pango pango-devel libXrandr libXrandr-devel libXcursor libXcursor-devel libXcomposite libXcomposite-devel cups libIDL libIDL-devel gtk-doc dbus dbus-devel dbus-glib dbus-glib-devel intltool indent libxml2 libxml2-devel libXi.x86_64 libXi-devel.x86_64 libXtst.x86_64 libXtst-devel.x86_64 alsa-lib.x86_64 alsa-lib-devel.x86_64 xorg-x11-server-Xorg xterm xorg-x11-drv-vesa xorg-x11-drv-evdev xorg-x11-drv-evdev-devel Xvfb | |
sudo rpm -ivh http://mirror.centos.org/centos/6/os/x86_64/Packages/atk-1.30.0-1.el6.x86_64.rpm | |
sudo rpm -ivh http://mirror.centos.org/centos/6/os/x86_64/Packages/atk-devel-1.30.0-1.el6.x86_64.rpm | |
sudo rpm -ivh http://mirror.centos.org/centos/6/os/x86_64/Packages/libXScrnSaver-1.2.2-2.el6.x86_64.rpm | |
sudo rpm -ivh http://mirror.centos.org/centos/6/os/x86_64/Packages/ORBit2-2.14.17-6.el6_8.x86_64.rpm | |
sudo rpm -ivh http://mirror.centos.org/centos/6/os/x86_64/Packages/ORBit2-devel-2.14.17-6.el6_8.x86_64.rpm | |
cd /tmp | |
wget ftp://ftp.gnome.org/pub/GNOME/sources/GConf/2.32/GConf-2.32.4.tar.bz2 | |
tar -jxvf GConf-2.32.4.tar.bz2 | |
cd GConf-2.32.4 | |
./configure && make | |
sudo make install | |
cd /tmp | |
wget http://ftp.acc.umu.se/pub/gnome/sources/gdk-pixbuf/2.24/gdk-pixbuf-2.24.0.tar.bz2 | |
tar -jxvf gdk-pixbuf-2.24.0.tar.bz2 | |
cd gdk-pixbuf-2.24.0 | |
./configure --without-libtiff --without-libjpeg | |
make | |
sudo make install | |
cd /tmp | |
wget http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-2.24.0.tar.bz2 | |
tar -jxvf gtk+-2.24.0.tar.bz2 | |
cd gtk+-2.24.0 | |
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure | |
make | |
sudo make install | |
cd | |
curl -sL https://rpm.nodesource.com/setup_7.x | bash - | |
sudo yum install nodejs -y |
ln -PL --verbose /usr/local/lib/libgconf-2.so.4
ln -PL --verbose /usr/local/lib/libgtk-x11-2.0.so.0
ln -PL --verbose /usr/local/lib/libgdk-x11-2.0.so.0
ln -PL --verbose /usr/local/lib/libgdk_pixbuf-2.0.so.0
Testing if all deps are OK
ldd electron | grep 'not found'
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
curl -o- https://gist.githubusercontent.com/JonathanBristow/4ea691431e8112f070ef8a9bb0e8905d/raw/342c410302cf2f314736c0b11ee71d491c6dedae/CentOSNightmareInstall > ~/install.sh && chmod +x ~/install.sh && ./install.sh