23 Feb 2016, 22:33

InfluxDB 0.10.x sur un Raspberry Pi (arm)

Après la série sur les version 0.9.x d'InfluxDB, le mode opératoire ayant changé un peu, cela mérite un nouveau billet :

$ wget https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer
$ chmod +x gvm-installer 
$ ./gvm-installer
Cloning from https://github.com/moovweb/gvm.git to /home/pi/.gvm
No existing Go versions detected
Installed GVM v1.0.22
Please restart your terminal session or to get started right away run
 `source /home/pi/.gvm/scripts/gvm`
$ source /home/pi/.gvm/scripts/gvm
$ gvm install go1.4.3
Downloading Go source...
Installing go1.4.3...
 * Compiling...
$ gvm use go1.4.3 --default
Now using version go1.4.3
$ mkdir $HOME/gocodez
$ export GOPATH=$HOME/gocodez
$ go get github.com/influxdata/influxdb
$ cd $GOPATH/src/github.com/influxdata/influxdb
$ ./build.py --package --version=0.10.3 --arch=armhf
$ sudo dpkg -i build/influxdb_0.10.3-1_armhf.deb

Et voilà !

Validé & testé sur un RPi2.

11 Dec 2014, 21:20

PHP 5.6.3 (dotdeb) pour cubietruck (armhf)

On continue sur la série, après les versions PHP 5.5.x, la version 5.6.x, en m'appuyant toujours sur les packages dotdeb.

!!! Even if based on dotdeb packaging, dotdeb is not responsible in any ways for the package you may build with this method !!!

### Add dotdeb src files in /etc/apt/sources.list.d/dotdeb.list with :
deb-src http://packages.dotdeb.org wheezy all
deb-src http://packages.dotdeb.org wheezy-php56 all

### Add dotdeb key
wget http://www.dotdeb.org/dotdeb.gpg
sudo apt-key add dotdeb.gpg

### Update your package list and prepare build environment
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential fakeroot

### Get dependencies
sudo apt-get build-dep php5

### compile PHP5
cd /tmp
apt-get source --compile php5

### create own repository sudo mkdir /var/local/repository sudo echo "deb [ trusted=yes ] file:///var/local/repository ./" > /etc/apt/sources.list.d/my_own_repo.list sudo mv /tmp/*.deb /var/local/repository/ cd /var/local/repository sudo dpkg-scanpackages ./ > Packages && sudo gzip -f Packages ### Update your package list sudo apt-get update ### install PHP sudo apt-get install php5 php5-fpm php5-cli ...
### List of generated packages :

php5-common_5.6.3-1~dotdeb.1_armhf.deb
php5-intl_5.6.3-1~dotdeb.1_armhf.deb
php5-recode_5.6.3-1~dotdeb.1_armhf.deb
php5-curl_5.6.3-1~dotdeb.1_armhf.deb
php5-ldap_5.6.3-1~dotdeb.1_armhf.deb
php5-snmp_5.6.3-1~dotdeb.1_armhf.deb
libapache2-mod-php5_5.6.3-1~dotdeb.1_armhf.deb
php5-dbg_5.6.3-1~dotdeb.1_armhf.deb
php5-mcrypt_5.6.3-1~dotdeb.1_armhf.deb
php5-sqlite_5.6.3-1~dotdeb.1_armhf.deb
libapache2-mod-php5filter_5.6.3-1~dotdeb.1_armhf.deb
php5-dev_5.6.3-1~dotdeb.1_armhf.deb
php5-mysql_5.6.3-1~dotdeb.1_armhf.deb
php5-sybase_5.6.3-1~dotdeb.1_armhf.deb
libphp5-embed_5.6.3-1~dotdeb.1_armhf.deb
php5-enchant_5.6.3-1~dotdeb.1_armhf.deb
php5-mysqlnd_5.6.3-1~dotdeb.1_armhf.deb
php5-tidy_5.6.3-1~dotdeb.1_armhf.deb
php5-fpm_5.6.3-1~dotdeb.1_armhf.deb
php5-odbc_5.6.3-1~dotdeb.1_armhf.deb
php5-xmlrpc_5.6.3-1~dotdeb.1_armhf.deb
php5-gd_5.6.3-1~dotdeb.1_armhf.deb
php5-pgsql_5.6.3-1~dotdeb.1_armhf.deb
php5-xsl_5.6.3-1~dotdeb.1_armhf.deb
php5_5.6.3-1~dotdeb.1_all.deb
php5-gmp_5.6.3-1~dotdeb.1_armhf.deb
php5-phpdbg_5.6.3-1~dotdeb.1_armhf.deb
php-pear_5.6.3-1~dotdeb.1_all.deb
php5-cgi_5.6.3-1~dotdeb.1_armhf.deb
php5-imap_5.6.3-1~dotdeb.1_armhf.deb
php5-pspell_5.6.3-1~dotdeb.1_armhf.deb
php5-cli_5.6.3-1~dotdeb.1_armhf.deb
php5-interbase_5.6.3-1~dotdeb.1_armhf.deb
php5-readline_5.6.3-1~dotdeb.1_armhf.deb

Pour ensuite avoir les extensions PECL

sudo aptitute install php-pear

Récupérer les packages suivant et les mettre dans votre répertoire repository :

#Get required lib to build pecl extension as deb packages :
wget http://packages.dotdeb.org/dists/wheezy-php56/debpear/binary-all/debpear_0.4-1~dotdeb.1_all.deb
wget http://packages.dotdeb.org/dists/wheezy-php56/pear-channels/binary-all/pear-channels_0~20140806-1_all.deb
wget http://packages.dotdeb.org/dists/wheezy-php56/dh-php5/binary-all/dh-php5_0.2_all.deb
wget http://packages.dotdeb.org/dists/wheezy-php56/pkg-php-tools/binary-all/pkg-php-tools_1.21_all.deb
# Add these packages to your local repository
sudo mv *.deb /var/local/repository cd /var/local/repository sudo dpkg-scanpackages ./ > Packages && sudo gzip -f Packages
sudo aptitude update
sudo aptitude install debpear dh-php5 pkg-php-tools pear-channels

Pour imageMagick en particulier

### Get dependencies
sudo apt-get install libmagickwand-dev libmagickcore-dev imagemagick

### Grab and build pecl imagick extension package
sudo debpear -c pecl imagick

### Result
=> build-area/php5-imagick_3.1.2-1~dotdeb.1_armhf.deb

Il ne reste plus qu'à l'ajouter à votre repo local, mettre à jour le référentiel et installer le paquet :-)

27 Sep 2014, 09:04

PHP 5.5.17 (dotdeb) pour cubietruck (armhf)

Je continue dans ma quête des paquets manquants pour mon hébergement sur ma cubietruck ; cette fois-ci, la recette à suivre pour avoir PHP 5.5.17, tel que packagé par dotdeb (pour architecture i386/amd_64) que je voulais réutiliser sur ma cubietruck.

!!! Even if based on dotdeb packaging, dotdeb is not responsible in any ways for the package you may build with this method !!!

### Add dotdeb src files in /etc/apt/sources.list.d/dotdeb.list with :
deb-src http://packages.dotdeb.org wheezy all
deb-src http://packages.dotdeb.org wheezy-php55 all

### Add dotdeb key wget http://www.dotdeb.org/dotdeb.gpg sudo apt-key add dotdeb.gpg ### Update your package list and prepare build environment
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential fakeroot

### Get dependencies
sudo apt-get build-dep php5

### compile PHP5
cd /tmp
apt-get source --compile php5

### create own repository sudo mkdir /var/local/repository sudo echo "deb [ trusted=yes ] file:///var/local/repository ./" > /etc/apt/sources.list.d/my_own_repo.list sudo mv /tmp/*.deb /var/local/repository/ cd /var/local/repository sudo dpkg-scanpackages ./ > Packages && gzip -f Packages ### Update your package list sudo apt-get update ### install PHP sudo apt-get install php5 php5-fpm php5-cli ...
### List of generated packages :

libapache2-mod-php5_5.5.17-1~dotdeb.1_armhf.deb
libapache2-mod-php5filter_5.5.17-1~dotdeb.1_armhf.deb
libphp5-embed_5.5.17-1~dotdeb.1_armhf.deb
php5_5.5.17-1~dotdeb.1_all.deb
php5-cgi_5.5.17-1~dotdeb.1_armhf.deb
php5-cli_5.5.17-1~dotdeb.1_armhf.deb
php5-common_5.5.17-1~dotdeb.1_armhf.deb
php5-curl_5.5.17-1~dotdeb.1_armhf.deb
php5-dbg_5.5.17-1~dotdeb.1_armhf.deb
php5-dev_5.5.17-1~dotdeb.1_armhf.deb
php5-enchant_5.5.17-1~dotdeb.1_armhf.deb
php5-fpm_5.5.17-1~dotdeb.1_armhf.deb
php5-gd_5.5.17-1~dotdeb.1_armhf.deb
php5-gmp_5.5.17-1~dotdeb.1_armhf.deb
php5-imap_5.5.17-1~dotdeb.1_armhf.deb
php5-interbase_5.5.17-1~dotdeb.1_armhf.deb
php5-intl_5.5.17-1~dotdeb.1_armhf.deb
php5-ldap_5.5.17-1~dotdeb.1_armhf.deb
php5-mcrypt_5.5.17-1~dotdeb.1_armhf.deb
php5-mysql_5.5.17-1~dotdeb.1_armhf.deb
php5-mysqlnd_5.5.17-1~dotdeb.1_armhf.deb
php5-odbc_5.5.17-1~dotdeb.1_armhf.deb
php5-pgsql_5.5.17-1~dotdeb.1_armhf.deb
php5-pspell_5.5.17-1~dotdeb.1_armhf.deb
php5-readline_5.5.17-1~dotdeb.1_armhf.deb
php5-recode_5.5.17-1~dotdeb.1_armhf.deb
php5-snmp_5.5.17-1~dotdeb.1_armhf.deb
php5-sqlite_5.5.17-1~dotdeb.1_armhf.deb
php5-sybase_5.5.17-1~dotdeb.1_armhf.deb
php5-tidy_5.5.17-1~dotdeb.1_armhf.deb
php5-xmlrpc_5.5.17-1~dotdeb.1_armhf.deb
php5-xsl_5.5.17-1~dotdeb.1_armhf.deb
php-pear_5.5.17-1~dotdeb.1_all.deb

Pour ensuite avoir les extensions PECL

sudo aptitute install php-pear

Pour imageMagick en particulier

### Get dependencies
sudo apt-get install libmagickwand-dev libmagickcore-dev imagemagick

## Get debianize script
wget https://raw.githubusercontent.com/gplessis/dotdeb-php5-pecl/wheezy-php55/debianize
chmod +x debianize

### Define some variables
export DEBFULLNAME="Your Self"
export DEBEMAIL="Mail@Some.Where"

### Grab pecl archive
pecl download imagick
tar xzf imagick-3.1.2.tgz

### Build package (as root)
./debianize imagick-3.1.2

### Result
=> php5-imagick_5.5.17-1~dotdeb.1_armhf.deb

04 Sep 2014, 13:00

Postgresql 9.3.5 pour Debian Wheezy et architecture armhf (raspberry, cubieboard, cubietruck, etc)

La fondation Postgres ne fournit des paquets debian/ubuntu que pour les architectures i386/x86_64 ; Voulant avoir une version 9.3 pour mes projets sur carte Raspberry / Cubietruck, j'ai donc recompilé les paquets sur la base des informations fournies ici que je complète.

### add postgre’s sources to apt
sudo echo "deb-src http://apt.postgresql.org/pub/repos/apt/ wheezy-pgdg main" >> /etc/apt/sources.list.d/pgdg.list

### add apt key if not done before
wget –quiet -O – https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -

### Prepare your own environment
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential fakeroot

### Satisfy your dependencies
sudo apt-get build-dep postgresql-9.3
sudo apt-get build-dep postgresql-common
sudo apt-get build-dep postgresql-client-common
sudo apt-get build-dep pgdg-keyring

### !!! ATTENTION -> do not run as root or build will fail on test “can not run tests as root”.
### As it can require quite a long time, you are encourage to have a remote session using screen or tmux for example to avoid network disconnection.
cd /tmp
apt-get source --compile postgresql-9.3
apt-get source --compile postgresql-common
apt-get source --compile postgresql-client-common
apt-get source --compile pgdg-keyring

### create own repository
sudo mkdir /var/local/repository
sudo echo "deb [ trusted=yes ] file:///var/local/repository ./" > /etc/apt/sources.list.d/my_own_repo.list
sudo mv /tmp/*.deb /var/local/repository/
cd /var/local/repository
sudo dpkg-scanpackages ./ > Packages && gzip -f Packages

### Update your package list
sudo apt-get update

### <:o) install postgres
sudo apt-get install postgresql-9.3

### list of generated packages :
libecpg6_9.3.5-1.pgdg70+1_armhf.deb
libecpg-compat3_9.3.5-1.pgdg70+1_armhf.deb
libecpg-dev_9.3.5-1.pgdg70+1_armhf.deb
libpgtypes3_9.3.5-1.pgdg70+1_armhf.deb
libpq5_9.3.5-1.pgdg70+1_armhf.deb
libpq-dev_9.3.5-1.pgdg70+1_armhf.deb
pgdg-keyring_2013.2_all.deb
postgresql_9.3+154.pgdg70+1_all.deb
postgresql-9.3_9.3.5-1.pgdg70+1_armhf.deb
postgresql-9.3-dbg_9.3.5-1.pgdg70+1_armhf.deb
postgresql-client_9.3+154.pgdg70+1_all.deb
postgresql-client-9.3_9.3.5-1.pgdg70+1_armhf.deb
postgresql-client-common_154.pgdg70+1_all.deb
postgresql-common_154.pgdg70+1_all.deb
postgresql-contrib_9.3+154.pgdg70+1_all.deb
postgresql-contrib-9.3_9.3.5-1.pgdg70+1_armhf.deb
postgresql-doc_9.3+154.pgdg70+1_all.deb
postgresql-doc-9.3_9.3.5-1.pgdg70+1_all.deb
postgresql-plperl-9.3_9.3.5-1.pgdg70+1_armhf.deb
postgresql-plpython3-9.3_9.3.5-1.pgdg70+1_armhf.deb
postgresql-plpython-9.3_9.3.5-1.pgdg70+1_armhf.deb
postgresql-pltcl-9.3_9.3.5-1.pgdg70+1_armhf.deb
postgresql-server-dev-9.3_9.3.5-1.pgdg70+1_armhf.deb
postgresql-server-dev-all_154.pgdg70+1_all.deb

have fun.

Si quelqu'un est intérressé par la mise en place d'un dépôt, qu'il se manifeste.