Skip to content

Instantly share code, notes, and snippets.

View craigminihan's full-sized avatar

Craig Minihan craigminihan

View GitHub Profile
@craigminihan
craigminihan / gist:034bd7547e6ddc65a56e
Last active September 10, 2015 13:29
How to build AvanceDB on a Raspberry Pi 2 running Raspbian 2015-05-05
sudo apt-get update
sudo apt-get upgrade
# replace wheezy with jessie
sudo nano /etc/apt/sources.list
# update from the jessie sources
sudo apt-get update
# install gcc 4.9 and soft link the binaries into /usr/local
@craigminihan
craigminihan / gist:2a169c0ef3550b078e46
Last active January 6, 2018 03:38
Build GCC 4.9.3 on a Raspberry Pi 2b running Raspian 2015-05-05
sudo apt-get install libmpc-dev
sudo apt-get install libmpfr-dev
sudo apt-get install libgmp-dev
export LDFLAGS='-L/usr/lib/arm-linux-gnueabihf/ -L/usr/lib/gcc/arm-linux-gnueabihf/4.6/'
export CFLAGS='-I/usr/include/arm-linux-gnueabihf/ -mfloat-abi=hard '${LDFLAGS}
export CXXFLAGS=${CFLAGS}
export CPPFLAGS=${CFLAGS}
sudo ln -s /usr/lib/arm-linux-gnueabihf/crti.o /usr/lib
@craigminihan
craigminihan / gist:3befd5a414847ccbe66f
Last active January 30, 2017 15:50
Script for installing CouchDB 1.6 on Debian 8
apt-get install -y erlang-nox erlang-dev
apt-get install -y libnspr4 libnspr4-0d libnspr4-dev libcurl4-openssl-dev curl libicu-dev
apt-get install -y libmozjs185-1.0 libmozjs185-dev
wget ftp://ftp.mirrorservice.org/sites/ftp.apache.org/couchdb/source/1.6.1/apache-couchdb-1.6.1.tar.gz
tar xzf apache-couchdb-1.6.1.tar.gz
cd apache-couchdb-1.6.1
./configure --prefix=/usr/local --with-js-lib=/usr/lib --with-js-include=/usr/include/mozjs --enable-init
make
make install
@craigminihan
craigminihan / gist:804056d8b23d8d6b2565
Last active September 9, 2015 13:51
Prep Ubuntu 12.04 (Travis-CI) to build with GCC 4.8 and Boost 1.57
# first update sudoers for the current user, run: sudo visudo
# append the line: username ALL = NOPASSWD : ALL
# suppress hash errors by removing files from this dir
sudo rm /var/lib/apt/lists/*
sudo apt-get update
sudo apt-get install -y gcc g++ git
sudo apt-get install -y curl
sudo apt-get install -y python-dev python-software-properties
@craigminihan
craigminihan / gist:b23c06afd9073ec32e0c
Last active September 21, 2023 12:47
Build GCC 4.9.2 for C/C++ on CentOS 7
sudo yum install libmpc-devel mpfr-devel gmp-devel
cd ~/Downloads
curl ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.9.2/gcc-4.9.2.tar.bz2 -O
tar xvfj gcc-4.9.2.tar.bz2
cd gcc-4.9.2
./configure --disable-multilib --enable-languages=c,c++
make -j 4
make install
@craigminihan
craigminihan / gist:08beacdf767904e4b965
Last active August 29, 2015 14:13
Build MonoDevelop 5.7 under Mono 3.12
# a script to build MonoDevelop 5.7 under Mono 3.12, most likely will work for all Mono 3.x and MonoDevelop 5.2+
# WFM on CentOS 6.6
curl http://download.mono-project.com/sources/monodevelop/monodevelop-5.7.0.660.tar.bz2 -O
tar xvfj monodevelop-5.7.0.660.tar.bz2
cd monodevelop-5.7
mkdir temp
pushd temp
@craigminihan
craigminihan / gist:ea6893d63665f0021c92
Last active August 31, 2017 03:06
Script to build Mono 3.10 and MonoDevelop 5.1 on CentOS 6.4+ Minimal
# run me as root
mkdir ~/Downloads
cd ~/Downloads
MONOVERSION="3.10.0"
GECKOSHARPVERSION="2.0-0.12"
yum install wget
@craigminihan
craigminihan / gist:906df50be538b7e72b8f
Last active December 27, 2015 05:19
Script for installing MonoDevelop 5.0.1 and Mono 3.8.0 on a CentOS 6.4 x64 GNOME UI system
mkdir ~/Downloads
cd ~/Downloads
MONOVERSION="3.8.0"
GECKOSHARPVERSION="2.0-0.12"
MONODEVELOPVERSION="5.0.1-0"
# download the source files we are about to build
wget http://download.mono-project.com/sources/mono/mono-$MONOVERSION.tar.bz2
wget http://download.mono-project.com/sources/gtk-sharp212/gtk-sharp-2.12.21.tar.gz
@craigminihan
craigminihan / couchdb-lucene.init
Created August 16, 2013 15:53
This is a VERY simple script to run couchdb-lucene as a daemon on CentOS 6.x. * Download and rename as couchdb-lucene and place in: /etc/rc.d/init.d * Make it executable: chmod 755 /etc/rc.d/init.d/couchdb-lucene * Add it as a daemon: chkconfig --add couchdb-lucene * Start it: service couchdb-lucene start
#!/bin/sh
#
# This is a VERY simple script to run couchdb-lucene as a daemon on CentOS 6.x
# It is assumed that Java is installed and that couchdb-lucene is present on /usr/local
#
### BEGIN INIT INFO
# Provides: couchdb-lucene
# Short-Description: Starts couchdb-lucene as a daemon
# Description: Starts couchdb-lucene as a daemon
### END INIT INFO