Archive

Archive for November, 2015

How to use the new binary dist for Debian, Ubuntu …

November 11, 2015 Leave a comment

Lazy? Wanna skip compilation? Use the binary dist for Debian, Ubuntu and friends. Here’s an intro.

Download tar.gz

wget http://download.savannah.gnu.org/releases/searduino/bin/gnu-linux/searduino-bin-0.9.93-Linux-x86_64.tar.gz

Create and enter dir

mkdir -p /opt
cd /opt

Unpack tar.gz

tar zxvf searduino-bin-0.9.93-Linux-x86_64.tar.gz

Verify installation

bash /opt/searduino/share/searduino/scripts/verify-install.sh
Advertisements
Categories: Uncategorized

Building from git on Ubuntu

November 11, 2015 Leave a comment

Ok, time to have some fun with Searduino again. In prep for a lecture tomorrow I am making sure Searduino is working on Ubuntu which most of the students are using.

Download Searduino from savannah:

git clone git://git.savannah.nongnu.org/searduino.git

Install necessary packages

cd searduino
sudo bin/setup-ubuntu.sh

Create configure script

make -f Makefile.git

Set up environment

DEFAULT_JAVA_PATH=/usr/lib/jvm/java-8-openjdk-amd64/include/
export CFLAGS="-I${DEFAULT_JAVA_PATH} -I${DEFAULT_JAVA_PATH}/linux/"
export CXXFLAGS="-I${DEFAULT_JAVA_PATH} -I${DEFAULT_JAVA_PATH}/linux/"
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/

Connfigure

./configure --prefix=/opt --disable-python --disable-pearduino

Build

make

Install

sudo make install


Categories: Uncategorized