diaspora

diaspora intro

What is diaspora? A piece of software for social networking. Learn more

On this page you’ll find a few tips to install it on freebsd with clang. Many ruby ports are broken at the time of this writing (20110706).

diaspora install

Before starting, make sur you get the latest version of clang.

Ruby 1.8 seems broken now, but 1.9 seems to use gcc to compile

./lib/fileutils.rb:1593: [BUG] not a node 0x06 (0x801417d80)
ruby 1.8.7 (2010-08-16 patchlevel 302) [amd64-freebsd9]
*** Signal 6
Stop in /usr/ports/lang/ruby18/work/ruby-1.8.7-p302.
*** Error code 1
Stop in /usr/ports/lang/ruby18.
*** Error code 1
Stop in /home/ports/lang/ruby18.

I’m not sure it’s mandatory but I added 2 lines to /etc/make.conf

Edit /etc/make.conf

RUBY_VERSION=1.9
RUBY_DEFAULT_VER=1.9

Get ruby 1.9.2p136

cd /usr/ports/lang/ruby19
make fetch
make extract

Apply this patch or you might get this bug.

Edit the 3 mentionned files

cd /usr/ports/lang/ruby19/work/TODO
vi cont.c
vi array.c
vi vm_insnhelper.c

Install ruby

cd /usr/ports/lang/ruby19
make config
make configure
make install clean

Install ruby-iconv from ports

cd /usr/ports/converters/ruby-iconv
make install clean

Install redis from ports

cd /usr/ports/databases/redis/
make install clean
echo 'redis_enable="YES"' >> /etc/rc.conf

Create /usr/local/etc/redis.conf

daemonize yes
pidfile /var/run/redis/redis.pid
bind 127.0.0.1
port 6379
timeout 300
loglevel verbose
logfile /pathtomylogdir/log/redis/redis.log
databases 16
save 900 1
save 300 10
save 60 10000
rdbcompression yes
dbfilename dump.rdb
dir /home/db/redis/
appendonly no
appendfsync everysec
vm-enabled no
vm-swap-file /tmp/redis.swap
vm-max-memory 0
vm-page-size 32
vm-pages 134217728
vm-max-threads 4
glueoutputbuf yes
hash-max-zipmap-entries 64
hash-max-zipmap-value 512

Install rubygems from source

fetch http://production.cf.rubygems.org/rubygems/rubygems-1.8.5.tgz
tar xvfz rubygems-1.8.5.tgz
cd rubygems-1.8.5
ruby setup.rb --help
ruby setup.rb

Install bundler from source

gem19 install bundler

Don’t forget to install mysql and follow

diaspora tips

TODO

todo