:: [Libbitcoin] Fwd: Re: libbitcoin c…
Inizio della pagina
Delete this message
Reply to this message
Autore: Amir Taaki
Data:  
To: libbitcoin
Oggetto: [Libbitcoin] Fwd: Re: libbitcoin compilation, OS support
would appreciate any help on trying to get OpenBSD support for
libbitcoin. image and instructions below.


-------- Original Message --------
Subject:     Re: [Libbitcoin] libbitcoin compilation, OS support
Date:     Wed, 11 Dec 2013 23:31:06 +0100
From:     mlmikael <mlmikael@???>
To:     Amir Taaki <genjix@???>
CC:     d3@???




Hi guys,

So, now installed OpenBSD on a virtual machine. Find the machine's HDD
image here:



As a VMWare disk image file, gunzip it, should take like 1 minute to
plug in to your local VMWare Workstation installation!:

http://sprend.com/download.htm?C=ef8c0cf9f98b43168809adcaf0f8bd01



Raw gzipped HD image (gotten with dd if=/dev/rwd0c bs=102400 | nc
localhost 2000 + nc -l -p 2000 | gzip -1 >
obsd-libbitcoin-raw-hdimage.gz . note that /dev/rwd0c in OBSD would be
the same as /dev/hd0 in Linux - note that the dd was made while the
machine was on, so you may be dropped to emergency console and need to
do fsck on /dev/rwd0a & -b & -d .. -g and then "exit"):

http://sprend.com/download.htm?C=6dad177d0cd9490fa6da5808143bae33



Please note that the file is removed from the hosting 120 minutes after
you clicked download.



And last, find below how I put it together, exactly.

On boot it will pick up an IP using DHCP. libbitcoin has been git cloned
into the "libbitcoin" user account with pw "libbitcoin", and the root
password is "rootpassword".

All the build tools that you need should be installed - if anything is
missing please let me know and i'll send a new version of the hdd image.

So now you probably want to log in as libbitcoin and do cd
libbitcoin; autoreconf -i , this fails.



With sx, "cd ~/sx; autoreconf -i" worked! :D and ./configure fails
saying libbitcoin is not installed, which is correct.

With obelisk, "cd ~/obelisk; autoreconf -i" fails.



You can get this going on your desktop and server environments pretty
much instantly;

Please let me know you got it running, if I can improve anyting, and,
please let me know when you have any news on making it compile on OBSD,
would be great if we can get to this the next couple of days now -



Best regards,

mlmikael







* Installed VMWare Workstation (not using VirtualBox as it prohibits an
RDMSR
that OBSD tries to use on my particular processor - vbox guys working on
solution, and
also using vbox 4.2 would have worked.)

* Created a VMWare machine, chose operating system as "Other (64bit)",
25GB disk "as single file", NAT only, used image
http://athena.caslab.queensu.ca/pub/OpenBSD/5.4/amd64/install54.iso .

* Installed. The only things different from default option was:

Hostname: libbitcoin

Root password: rootpassword

After installation disconnected ISO image.

* Rebooted, logged in to root via ssh (IP the one autoassigned by
dhclient on boot).

* Edited /etc/fstab adding ",noatime,softdep" to all the FS:es. Rebooted

* Login and init account by:

echo "export
PKG_PATH=http://athena.caslab.queensu.ca/pub/OpenBSD/5.4/packages/amd64/" >>
.profile

* Re-login and ran:

pkg_add bash vim-7.3.850-gtk2 g++-4.8.1p0 autoconf-2.69p0
rsync-3.0.9p3-iconv git-1.8.3.3 boost-1.53.0p1 curl-7.26.0p3
leveldb-1.5.0p1 libtool-2.4.2 automake-1.9.6p10 zeromq-3.2.3 libconfig-1.4.8

* Added user libbitcoin pw libbitcoin using "adduser", default shell
bash, group wheel.

* Logged in as libbitcoin and to init account by:

echo
"PS1='${chrootv:+($chrootv)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[1;34m\]\w\[\033[00m\]\$
'" >> .profile

# (needed for using autoconf and automake, which you will do.)
echo "export AUTOCONF_VERSION=2.69" >> .profile

echo "export AUTOMAKE_VERSION=1.9" >> .profile

* Logged out and logged in again and:

git clone https://github.com/spesmilo/libbitcoin.git

git clone https://github.com/spesmilo/sx.git

git clone https://github.com/spesmilo/obelisk.git

* Then to make an attempt at compiling libbitcoin:

cd libbitcoin

autoreconf -i



On 2013-12-10 02:45, Amir Taaki wrote: