Bitcoin Forum
December 06, 2016, 08:25:46 AM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: « 1 2 3 4 5 6 7 [8] 9 10 »  All
  Print  
Author Topic: Building Armory on OSX  (Read 30622 times)
Red Emerald
Hero Member
*****
Offline Offline

Activity: 742



View Profile WWW
December 12, 2012, 08:53:51 PM
 #141

Wow, you are amazingly fast!

I can confirm that it works as expects (i.e. great).
Pretty much all it takes is changing the 2 lines in the formula (the download link and the file hash), so it's pretty easy. Glad it worked for you!

Quote
The "brew fetch" command is not really necessary, but I guess that it gives the truly paranoid a chance to check what is being installed.

Thank you very much, indeed!
Yeah, it isn't necessary.  I figured I might as well provide the most paranoid level of instructions as the default though.

Can't we just come up with a DMG file with an installer for all of us who don't like to deal with compilers, etc? Can't we get a mac release that doesn't take so much work to get it up and running?

Is that a crazy request?
That's the end goal.  However it is more work than providing a brew formula.  It's been a pain so far to compile custom c extensions and pyqt into a distributable app.

1481012746
Hero Member
*
Offline Offline

Posts: 1481012746

View Profile Personal Message (Offline)

Ignore
1481012746
Reply with quote  #2

1481012746
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481012746
Hero Member
*
Offline Offline

Posts: 1481012746

View Profile Personal Message (Offline)

Ignore
1481012746
Reply with quote  #2

1481012746
Report to moderator
1481012746
Hero Member
*
Offline Offline

Posts: 1481012746

View Profile Personal Message (Offline)

Ignore
1481012746
Reply with quote  #2

1481012746
Report to moderator
Red Emerald
Hero Member
*****
Offline Offline

Activity: 742



View Profile WWW
December 24, 2012, 01:11:39 AM
 #142

I've updated the tap again!  It's now using git to checkout v0.86.3-beta and then checks to make sure the git tag is valid.

To update your existing install:
Code:
brew update
brew doctor
brew fetch --deps armory-qt
brew upgrade armory-qt

To install fresh:
Code:
brew update
brew doctor
brew tap WyseNynja/bitcoin
brew fetch --deps wysenynja/bitcoin/armory-qt
brew install wysenynja/bitcoin/armory-qt

You will need to have imported etotheipi's key for verifying the tag to work.

RSA key ID 98832223 "Alan C. Reiner (Armory Signing Key) <alan.reiner@gmail.com>"

You can skip the tag checking by adding "--skip-verify" "--without-gpg" to the install/upgrade command

Red Emerald
Hero Member
*****
Offline Offline

Activity: 742



View Profile WWW
December 28, 2012, 07:30:29 PM
 #143

I've added support for the "--devel" flag!  You can use it to easily install the "testing" branch of armory-qt.

I've also setup a thread for my brew tap.  https://bitcointalk.org/index.php?topic=133097.0

Rampion
Legendary
*
Offline Offline

Activity: 1078


View Profile
February 07, 2013, 10:26:25 AM
 #144

May I ask how far away in time is an Armory OSX bundle?

Thanks

etotheipi
Legendary
*
Offline Offline

Activity: 1428


Core Armory Developer


View Profile WWW
February 07, 2013, 12:46:01 PM
 #145

May I ask how far away in time is an Armory OSX bundle?

Thanks

There are two main factors to answering that question/request:

(1) While Armory is still a fairly advanced program and Red Emerald has done a fantastic job helping people get it going on OSX, I have put this slightly lower in priority.  Mainly because I know nothing about OSX, and it's currently accessible to those that really want it.  When I finally get Armory's usability up to par, then I will make it a high priority to bring that usability to all platforms (and right now, there are some pretty epic usability improvements in the works).

(2) Everything I just said in #1 is based on getting no help from anyone else.  If someone else were to make an OSX bundle of Armory for me, and then give me what I need to know to understand how it was made and can rebuild/update it myself... then I can bump it way up in priority.  It's current priority is based on how much else has to be put on hold while I figure it out.  If someone gives me what I need to figure it out in day or two, there's no reason for me not to do it right way.


Founder and CEO of Armory Technologies, Inc.
Armory Bitcoin Wallet: Bringing cold storage to the average user!
Only use Armory software signed by the Armory Offline Signing Key (0x98832223)

Please donate to the Armory project by clicking here!    (or donate directly via 1QBDLYTDFHHZAABYSKGKPWKLSXZWCCJQBX -- yes, it's a real address!)
Red Emerald
Hero Member
*****
Offline Offline

Activity: 742



View Profile WWW
February 07, 2013, 06:45:59 PM
 #146

(2) Everything I just said in #1 is based on getting no help from anyone else.  If someone else were to make an OSX bundle of Armory for me, and then give me what I need to know to understand how it was made and can rebuild/update it myself... then I can bump it way up in priority.  It's current priority is based on how much else has to be put on hold while I figure it out.  If someone gives me what I need to figure it out in day or two, there's no reason for me not to do it right way.
I've given it a good try a couple times, but pyinstaller barfs on some macholib errors that I haven't been able to sort out and py2app does similarly Sad

When I gave up on that, I made the brew tap.

etotheipi
Legendary
*
Offline Offline

Activity: 1428


Core Armory Developer


View Profile WWW
February 09, 2013, 05:55:29 AM
 #147

(2) Everything I just said in #1 is based on getting no help from anyone else.  If someone else were to make an OSX bundle of Armory for me, and then give me what I need to know to understand how it was made and can rebuild/update it myself... then I can bump it way up in priority.  It's current priority is based on how much else has to be put on hold while I figure it out.  If someone gives me what I need to figure it out in day or two, there's no reason for me not to do it right way.
I've given it a good try a couple times, but pyinstaller barfs on some macholib errors that I haven't been able to sort out and py2app does similarly Sad

When I gave up on that, I made the brew tap.

That's pretty bad news for me.  I have pretty much never used OSX for anything, and if you can't get it working,  I'm pretty sure it's going to be a total bear for me. 

On the upside,  the satoshi client uses Qt,  too (though not python/PyQt),  and they bundle it all up into a pretty OSX package the way I want to do it.   Perhaps we can start from their packaging system and modify it until we get there...  I think Gavin actually responded in this thread a while ago with some links... But I'm on my phone right with poor Internet connection, so I can't really go back and check easily.

Again,  this is something I will make happen at some point but not soon unless users with more OSX experience help.

And Red Emerald, don't feel bad.   You've already helped out so much already!  Without it,  there might not have been any OSX support at all! 

Founder and CEO of Armory Technologies, Inc.
Armory Bitcoin Wallet: Bringing cold storage to the average user!
Only use Armory software signed by the Armory Offline Signing Key (0x98832223)

Please donate to the Armory project by clicking here!    (or donate directly via 1QBDLYTDFHHZAABYSKGKPWKLSXZWCCJQBX -- yes, it's a real address!)
ErebusBat
Hero Member
*****
Offline Offline

Activity: 560

I am the one who knocks


View Profile
February 10, 2013, 04:16:16 PM
 #148

I am very grateful for Red Emeralds work.

░▒▓█ Coinroll.it - 1% House Edge Dice Game █▓▒░ • Coinroll Thread • *FREE* 100 BTC Raffle

Signup for CEX.io BitFury exchange and get GHS Instantly!  Don't wait for shipping, mine NOW!
Red Emerald
Hero Member
*****
Offline Offline

Activity: 742



View Profile WWW
February 11, 2013, 08:22:01 AM
 #149

Thanks guys!

Rampion
Legendary
*
Offline Offline

Activity: 1078


View Profile
February 11, 2013, 10:17:18 AM
 #150

I'm trying just now to install Armory on a Macbook Pro running 10.8.2. I installed brew and downloading last version of XCODE and Xcode command line tools.

Will update later Wink

EDIT: everything was going smooth, until I got this errors:

==> ./configure --prefix=/usr/local/Cellar/gnupg/1.4.12 --disable-asm
==> make CFLAGS= -std=gnu89 -fheinous-gnu-extensions
==> make check
==> make install
Warning: Could not link gnupg. Unlinking...
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using `brew link gnupg'
==> Summary
🍺  /usr/local/Cellar/gnupg/1.4.12: 54 files, 5,0M, built in 2.1 minutes
==> Installing armory-qt
==> Cloning https://github.com/etotheipi/BitcoinArmory.git
Updating /Library/Caches/Homebrew/armory-qt--git
==> Checking out tag v0.86.3-beta
==> Patching
patching file ArmoryQt.command
==> git verify-tag v0.86.3-beta
gpg: /Users/****/.gnupg/gpg.conf:233: invalid auto-key-locate list


and then, when I try to run the client:

MacBook-Pro:~ mr$ ArmoryQt.command
-bash: ArmoryQt.command: command not found


Any idea why this happens? I had installed MacGPG2 before running the commands, maybe that's a problem? I tryed "brew link gnupg" and I get this:

MacBook-Pro:~ mr$ brew link gnupg
Linking /usr/local/Cellar/gnupg/1.4.12... Warning: Could not link gnupg. Unlinking...

Error: Could not symlink file: /usr/local/Cellar/gnupg/1.4.12/bin/gpg
Target /usr/local/bin/gpg already exists. You may need to delete it.
To force the link and delete this file, do:
  brew link --overwrite formula_name

To list all files that would be deleted:
  brew link --overwrite --dry-run formula_name
MacBook-Pro:~ mr$ brew link --overwrite --dry-run formula_name
Error: No such keg: /usr/local/Cellar/formula_name


I'm afraid that deleting those files could make me loose my private GPG key... Any idea of how to proceed?

picobit
Hero Member
*****
Offline Offline

Activity: 547


Decor in numeris


View Profile
February 11, 2013, 01:06:49 PM
 #151

Yes, a sufficiently old MacGPG will cause that kind of problems.  I uninstalled mine and allowed Homebrew's gnupg to install, but then I have never been able to get MacGPG to work even in a remotely satisfactory way, and the newest version does not yet support Mountain Lion. Sad

Do not worry about your private GPG keys, surely you have them backed up in three different places already. Smiley 
Joking aside, uninstalling MacGPG should not uninstall them, they should be kept in ~/.gnupg but you certainly want to back up that directory before experimenting!

ErebusBat
Hero Member
*****
Offline Offline

Activity: 560

I am the one who knocks


View Profile
February 11, 2013, 01:21:00 PM
 #152

I had all sort of troubles caused by MacGPG, even after I uninstalled it.   I think I ven had to force brew to link the files to move on.

░▒▓█ Coinroll.it - 1% House Edge Dice Game █▓▒░ • Coinroll Thread • *FREE* 100 BTC Raffle

Signup for CEX.io BitFury exchange and get GHS Instantly!  Don't wait for shipping, mine NOW!
Rampion
Legendary
*
Offline Offline

Activity: 1078


View Profile
February 11, 2013, 02:15:41 PM
 #153

Yes, a sufficiently old MacGPG will cause that kind of problems.  I uninstalled mine and allowed Homebrew's gnupg to install, but then I have never been able to get MacGPG to work even in a remotely satisfactory way, and the newest version does not yet support Mountain Lion. Sad

Do not worry about your private GPG keys, surely you have them backed up in three different places already. Smiley 
Joking aside, uninstalling MacGPG should not uninstall them, they should be kept in ~/.gnupg but you certainly want to back up that directory before experimenting!



This seems like a serious problem. I use GPG daily, mostly to encrypt files... I cannot risk to not being able to use it again Sad

I had all sort of troubles caused by MacGPG, even after I uninstalled it.   I think I ven had to force brew to link the files to move on.

I tried the brew link gnupg" and I got this error:

MacBook-Pro:~ mr$ brew link gnupg
Linking /usr/local/Cellar/gnupg/1.4.12... Warning: Could not link gnupg. Unlinking...

Error: Could not symlink file: /usr/local/Cellar/gnupg/1.4.12/bin/gpg
Target /usr/local/bin/gpg already exists. You may need to delete it.
To force the link and delete this file, do:
  brew link --overwrite formula_name

To list all files that would be deleted:
  brew link --overwrite --dry-run formula_name
MacBook-Pro:~ mr$ brew link --overwrite --dry-run formula_name
Error: No such keg: /usr/local/Cellar/formula_name


I really hope Red Emerald could find a workaround for this

picobit
Hero Member
*****
Offline Offline

Activity: 547


Decor in numeris


View Profile
February 11, 2013, 02:56:14 PM
 #154

The GPG stuff is only used to validate the downloads.  In a previous post in this thread he gives a command line option to disable the check, hopefully that will also disable the dependency of gnupg.
Rampion
Legendary
*
Offline Offline

Activity: 1078


View Profile
February 11, 2013, 03:16:06 PM
 #155

The GPG stuff is only used to validate the downloads.  In a previous post in this thread he gives a command line option to disable the check, hopefully that will also disable the dependency of gnupg.


Do you think it's safe to disable the GPG check? Armory handles sensitive stuff Wink

Rampion
Legendary
*
Offline Offline

Activity: 1078


View Profile
February 11, 2013, 04:27:51 PM
 #156

The GPG stuff is only used to validate the downloads.  In a previous post in this thread he gives a command line option to disable the check, hopefully that will also disable the dependency of gnupg.


I tried

brew install --skip-verify wysenynja/bitcoin/armory-qt

AND

brew install wysenynja/bitcoin/armory-qt --skip-verify

I still get:

Error: You must `brew link gnupg' before armory-qt can be installed

picobit
Hero Member
*****
Offline Offline

Activity: 547


Decor in numeris


View Profile
February 11, 2013, 04:28:06 PM
 #157

Do you think it's safe to disable the GPG check? Armory handles sensitive stuff Wink
You can always download first, and check signatures manually.  But if you are really paranoid: no.  But have you checked that the homebrew script actually checks the gpg signatures instead of just pretending to do so and install something nasty? Smiley
Red Emerald
Hero Member
*****
Offline Offline

Activity: 742



View Profile WWW
February 11, 2013, 04:50:14 PM
 #158

The GPG stuff is only used to validate the downloads.  In a previous post in this thread he gives a command line option to disable the check, hopefully that will also disable the dependency of gnupg.


I tried

brew install --skip-verify wysenynja/bitcoin/armory-qt

I still get:

Error: You must `brew link gnupg' before armory-qt can be installed


Sorry about that.

I've tweaked the formula, and it should work better now.

Instead of "--skip-verify," now you can use "--without-gpg" and brew should be smart enough to skip the installation step.

Additionally, I just bumped the version to 0.87-beta.  As always, you can use "--devel" to install the testing branch.

Code:
brew update
brew install wysenynja/bitcoin/armory-qt --without-gpg


About gpgtools and OSX Mountain Lion.  If you donate (hint: they accept bitcoin), you can get early access to the beta.  Just send them an email with a signed txid and a message saying how awesome they are.  I have had both brew's gpg and gpgtools beta installed without problem for months now.

Red Emerald
Hero Member
*****
Offline Offline

Activity: 742



View Profile WWW
February 11, 2013, 04:54:54 PM
 #159

I'm trying just now to install Armory on a Macbook Pro running 10.8.2. I installed brew and downloading last version of XCODE and Xcode command line tools.

Will update later Wink

EDIT: everything was going smooth, until I got this errors:

==> ./configure --prefix=/usr/local/Cellar/gnupg/1.4.12 --disable-asm
==> make CFLAGS= -std=gnu89 -fheinous-gnu-extensions
==> make check
==> make install
Warning: Could not link gnupg. Unlinking...
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using `brew link gnupg'
==> Summary
🍺  /usr/local/Cellar/gnupg/1.4.12: 54 files, 5,0M, built in 2.1 minutes
==> Installing armory-qt
==> Cloning https://github.com/etotheipi/BitcoinArmory.git
Updating /Library/Caches/Homebrew/armory-qt--git
==> Checking out tag v0.86.3-beta
==> Patching
patching file ArmoryQt.command
==> git verify-tag v0.86.3-beta
gpg: /Users/xxxxxx/.gnupg/gpg.conf:233: invalid auto-key-locate list


and then, when I try to run the client:

MacBook-Pro:~ mr$ ArmoryQt.command
-bash: ArmoryQt.command: command not found

Well of course you can't run "ArmoryQt.command" if the install fails Smiley

This error means there is more than likely an error in your gpg.conf.  Can you make sure nothing is sensitive in there and then post the contents here?  I don't think this is a problem with brew.

In the mean time, read my post above for working around gpg.

Red Emerald
Hero Member
*****
Offline Offline

Activity: 742



View Profile WWW
February 11, 2013, 05:15:28 PM
 #160

Do you think it's safe to disable the GPG check? Armory handles sensitive stuff Wink
You can always download first, and check signatures manually.  But if you are really paranoid: no.  But have you checked that the homebrew script actually checks the gpg signatures instead of just pretending to do so and install something nasty? Smiley

I highly encourage everyone check out the formula code.  It's only 64 lines with blank lines and some comments and you don't even need to know ruby (I don't) or really even know how to program at all to read it.

I also recommend that you read the source for everything you install, but that is probably more difficult for non-programmers and programmers with not-enough time (e.g. all programmers).  The formula is really strait forward. 

Code:
cat `brew --prefix`/Library/Taps/wysenynja-bitcoin/armory-qt.rb

Or read it on github.

Pages: « 1 2 3 4 5 6 7 [8] 9 10 »  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!