Author

Topic: Armory in a virtual machine (OSX) (Read 1494 times)

sr. member
Activity: 302
Merit: 250
October 01, 2013, 12:51:08 PM
#9
So I tried to run 'make' with the file how it was downloaded from the testing branch with no edits and (I think?) it failed:

Code:
make[2]: Leaving directory `/home/will/BitcoinArmory/cppForSwig/cryptopp'
cd leveldb; make libleveldb.a; mv libleveldb.a ..
make[2]: Entering directory `/home/will/BitcoinArmory/cppForSwig/leveldb'
g++ -I. -I./include -fno-builtin-memcmp -pthread -DOS_LINUX -DLEVELDB_PLATFORM_POSIX -fPIC -O2 -DNDEBUG        -c db/builder.cc -o db/builder.o
g++ -I. -I./include -fno-builtin-memcmp -pthread -DOS_LINUX -DLEVELDB_PLATFORM_POSIX -fPIC -O2 -DNDEBUG        -c db/c.cc -o db/c.o
db/c.cc: In function ‘bool SaveError(char**, const leveldb::Status&)’:
db/c.cc:141:42: error: ‘_strdup’ was not declared in this scope
db/c.cc:145:42: error: ‘_strdup’ was not declared in this scope
db/c.cc: In function ‘char* leveldb_property_value(leveldb_t*, const char*)’:
db/c.cc:250:30: error: ‘_strdup’ was not declared in this scope
make[2]: *** [db/c.o] Error 1
make[2]: Leaving directory `/home/will/BitcoinArmory/cppForSwig/leveldb'
mv: cannot stat ‘libleveldb.a’: No such file or directory
make[1]: *** [libleveldb.a] Error 1
make[1]: Leaving directory `/home/will/BitcoinArmory/cppForSwig'
make: *** [all] Error 2
sr. member
Activity: 302
Merit: 250
October 01, 2013, 12:04:10 PM
#8
Im sorry for what is probably quite a n00bish question, but how do I uncomment those lines? To me they already look uncommented:

Code:
LIBRARY_OPTS += -lpthread -Lleveldb -L/usr/lib/python2.7/config-x86_64-linux-gnu/ -lpython2.7
SWIG_OPTS    += -c++ -python -classic -threads


UNAME := $(shell uname)

ifeq ($(UNAME), Darwin)
   # This configuration assumes you have setup your 10.X.X system like
   # Red Emerald in this thread:
   #    https://bitcointalk.org/index.php?topic=73648.msg976015#msg976015
# The makefile updates he shows are already tied into this if/else branch
   PYVER += `python -c 'import sys; print str(sys.version_info[0]) + "." + str(sys.version_info[1])'`
   SWIG_INC     += -I"/usr/include/python$(PYVER)"
   STATICPYTHON +=   "/usr/lib/python$(PYVER)/config/libpython$(PYVER).a"
else
   PYVER += `python2 -c 'import sys; print str(sys.version_info[0]) + "." + str(sys.version_info[1])'`
   SWIG_INC     += -I"$(DEPSDIR)/include/python$(PYVER)"
   #STATICPYTHON +=   "$(DEPSDIR)/lib/libpython$(PYVER).a"
   STATICPYTHON =

I am using TextEditor (gedit) in Ubuntu
sr. member
Activity: 302
Merit: 250
October 01, 2013, 05:13:47 AM
#7
Pants, I'm using the (old) 0.88.1 version. I love new untested software, plus on linux I might get to learn a new command in the terminal, so will download and give that a shot tonight.

One question (sorry I am not a programmer):

To get to the test branch do I do:
Code:
sudo apt-get install git-core build-essential pyqt4-dev-tools swig libqtcore4 libqt4-dev python-qt4 python-dev python-twisted python-psutil

git clone git://github.com/etotheipi/BitcoinArmory.git

cd BitcoinArmory

git checkout testing

Then:

...open the cppForSwig/Makefile and uncomment the LIBRARY_OPTS line around line 13 that includes "config-x86_64-linux" and also remove the STATICPYTHON variable (just use "STATICPYTHON =" without anything after it)...
[I am guessing this will be found in directory BitcoinArmory]

Then:
Code:
make

python ArmoryQt.py

And launch using

Code:
python BitcoinArmory/ArmoryQt.py
legendary
Activity: 1428
Merit: 1093
Core Armory Developer
September 30, 2013, 02:22:54 PM
#6
Wow, after realising that I needed Bitcoind and not Bitcoin-QT (the message "point to bitcoin installation directory" is a bit vague, seeing as it specifically needs bitcoind and not bitcoin QT) Armory opened for the first time and was ready to use in 1.5 minutes? Consider me impressed!  Shocked

Thanks etotheipi

Either Bitcoin-Qt or bitcoind needs to be running for Armory to work.  But if you let Armory "manage Bitcoin software for you", it will only run bitcoind, otherwise there will be window open that the user didn't open themselves, and they might close which would mess up Armory.

If you choose to manage the "bitcoin software" yourself, you can run either one.

Glad to hear it's working for you.  Are you running the new version (0.89.99.5) or the one that's been out for a while (0.88.1)?

sr. member
Activity: 302
Merit: 250
September 30, 2013, 02:13:21 PM
#5
Wow, after realising that I needed Bitcoind and not Bitcoin-QT (the message "point to bitcoin installation directory" is a bit vague, seeing as it specifically needs bitcoind and not bitcoin QT) Armory opened for the first time and was ready to use in 1.5 minutes? Consider me impressed!  Shocked

Thanks etotheipi
sr. member
Activity: 302
Merit: 250
September 30, 2013, 05:07:28 AM
#4
Well,

I loaded up Ubuntu 13.04 in VMWare (running on Mavericks) which may or may not end up being a bad idea, but downloaded bootstrap.dat and copied into the VM environment.

Started up the import of the bootsrtap file and IT IS FREAKING FLYING! I have done half of the weeks in literally 30 minutes. If I extrapolate that to 1 hour or so for the whole blockchain (import from disk only)...

The same task, running on OSX (my native OS) took approx 3 days, no kidding... ANyone else experience this? (I was using the precomplied OSX binary, I think a guy called GreenDiamond or something made it).

Anyway, so far, this seems much better!

FYI, I have a 2012 iMac with 16GB ram and i7 3770k, with 8GB ram and 4 cores dedicated to VM, which seems to be doing the job.
sr. member
Activity: 302
Merit: 250
September 29, 2013, 07:11:18 AM
#3
Thanks; exactly what I wanted to know!
legendary
Activity: 1428
Merit: 1093
Core Armory Developer
September 28, 2013, 12:50:20 PM
#2
Hi,

So my question here is two-fold really; I am running OSX (Mavericks DP8 I think) and Armory in unusable. So I want to run it inside a virtual machine.

1) Which is the *primary* Armory development platform? Windows or Linux? I want to know which is most functional and developed. I always thought it was Linux but from the recent threads I am beginning to think that it is Windows...?

2) Am i best off running one or other of these as a VM if there is no definitive answer to the above question (i.e. is it *easier* to run a windows VM or visa-verss)?

Thanks.

I develop in Linux exclusively.  It has best support there.  And the most recent version will run better in Linux due to optimizations that are not well-executed in Windows (but it's not terrible, either, after I get this next update in there).  The recent threads are because (1) most users are in Windows, and (2) I've had the tremendous difficulty porting the new version to Windows, and it has been the center of attention for the past 1-2 weeks, while I battle through it. 

I find both OS in the VM are easy.  Windows requires more setup and more hard-drive space, but if you have the Linux experience, it's probably better to go the linux route. 

With the new funding, we hope to get someone in here with good OSX experience who will fix the OSX problems once and for all.  But it still may be a while before we find that person...
sr. member
Activity: 302
Merit: 250
September 27, 2013, 09:35:49 AM
#1
Hi,

So my question here is two-fold really; I am running OSX (Mavericks DP8 I think) and Armory in unusable. So I want to run it inside a virtual machine.

1) Which is the *primary* Armory development platform? Windows or Linux? I want to know which is most functional and developed. I always thought it was Linux but from the recent threads I am beginning to think that it is Windows...?

2) Am i best off running one or other of these as a VM if there is no definitive answer to the above question (i.e. is it *easier* to run a windows VM or visa-verss)?

Thanks.
Jump to: