Skip to content

Instantly share code, notes, and snippets.

@notmii
Created October 19, 2013 09:28
Show Gist options
  • Save notmii/7053575 to your computer and use it in GitHub Desktop.
Save notmii/7053575 to your computer and use it in GitHub Desktop.
Installion files
#!/bin/bash
make prefix=/usr/local all
sudo checkinstall
#sudo make prefix=/usr/local install
sudo update-alternatives --install /usr/bin/git git /usr/local/bin/git 1
sudo update-alternatives --set git /usr/bin/git
which git
git --version
#!/bin/bash
auto-apt run ./configure \
--prefix=/usr/local/nginx \
--sbin-path=/usr/local/sbin \
--conf-path=/etc/nginx/conf/nginx.conf \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--pid-path=/run/nginx.pid \
--lock-path=/run/nginx.lock \
--user=www-data \
--group=www-data \
--without-http_autoindex_module \
--without-http_uwsgi_module \
--without-http_scgi_module \
--without-http_empty_gif_module \
--without-http_browser_module \
--without-http_split_clients_module \
--without-http_memcached_module
make
sudo checkinstall
#!/bin/bash
./buildconf --force \
&& auto-apt run ./configure \
--prefix=/usr/local/php \
--sysconfdir=/etc \
--with-config-file-path=/usr/local/php/etc/php.ini \
--with-config-file-scan-dir=/etc/php/conf \
--with-pear \
--with-zlib \
--with-curl=/usr/include/curl \
--with-mysql \
--with-regex \
--with-openssl \
--enable-calendar \
--enable-zip \
\
--enable-fpm \
--with-fpm-user=www-data \
--with-fpm-group=www-data \
--enable-mbstring \
--enable-opcache \
--enable-sockets \
--enable-zip \
--enable-mysqlnd \
&& make \
&& sudo checkinstall \
&& php --version
#!/bin/bash
auto-apt run ./configure \
--with-features=huge \
--enable-rubyinterp \
--enable-pythoninterp \
--with-python-config-dir=/usr/lib/python2.7/config \
--enable-perlinterp \
--enable-gui=gtk2 \
--enable-cscope \
--prefix=/usr/local/vim
make VIMRUNTIMEDIR=/usr/share/vim/vim74
sudo checkinstall
sudo update-alternatives --install /usr/bin/editor editor /usr/local/vim/bin/vim 1
sudo update-alternatives --set editor /usr/local/vim/bin/vim
sudo update-alternatives --install /usr/bin/vi vi /usr/local/vim/bin/vim 1
sudo update-alternatives --set vi /usr/local/vim/bin/vim
vim --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment