Welcome, Guest. Please login or register.

Author Topic: BitMessage.app for Mac OS X & How To  (Read 9775 times)

gnumac

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
BitMessage.app for Mac OS X & How To
« on: June 04, 2013, 04:51:56 PM »
**Edit: This is an old post. Please use the new standalone OS X Bitmessage bundle now: https://bitmessage.org/forum/index.php/topic,2761.0.html  It doesn't require homebrew.**

I've created a BitMessage.app bundle for Mac OS X so that you don't have to run it from the command line!

Download it here: https://sourceforge.net/projects/bitmessagemac/files/

To get Bit Message working on OS X currently requires a few extra steps than just launching the app because OS X comes with some older components than what BitMessage requires. But we can just use Homebrew to upgrade OS X so that Bit Message can work with it.


1.) Install Homebrew. Open Terminal, type the following line, then press enter:

Code: [Select]
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
2.) Install a few dependencies for which Bit Messages requires newer versions than come with OS X (Credit to Teebs). Type each line one at a time, press enter, wait until it installs (may take 4 or 5 minutes), then continue to the next one.

Code: [Select]
brew install openssl
brew link openssl --force
brew install python
brew link sqlite3 --force

3.) (This next step may not be absolutely required. I did it so I've included it here. But if you want to try launching the app without this first, that's fine. Please let me know whether it was required for you.) In Terminal, type "sudo nano /etc/paths" to open this paths file and enter your computer's password when prompted. Now type "/usr/local/bin" above the current first line and delete it ("/usr/local/bin") from the last line of the file. This allows our newer packages to have priority and be used over OS X's older packages. To save and exit from the Nano text editor, type "Control + X", "Y", then press "enter".

4.) Open BitMessage.app!

5.) To get started, go to "Your Identities", click "new", and create one or more identities. Then send a test message to the working echo server at BM-orkCbppXWSqPpAxnz6jnfTZ2djb5pJKDb. You should receive a response from the echo server within about 4 minutes. If none of this works, check that your firewall is not blocking connections or temporarily disable it for testing.


Donations appreciated! I'm new to Bitcoin.
Bitcoin 1NU4Gcfy8ApFGCqfvpAfyqwYhsFbfdFzzL
Litecoin LZ7zLbQot8cRwT4tqkipsa9Gx3MPf53M1g

Tested on OS X 10.8.3
« Last Edit: July 25, 2013, 07:23:51 PM by gnumac »
Bitmessage OS X! http://sourceforge.net/projects/bitmessagemac/files/
BTC 1NU4Gcfy8ApFGCqfvpAfyqwYhsFbfdFzzL
LTC LZ7zLbQot8cRwT4tqkipsa9Gx3MPf53M1g

bitbutter

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: BitMessage.app for Mac OS X & How To
« Reply #1 on: June 07, 2013, 03:48:46 AM »
Thanks, this worked for me! (OSX 10.8.2).

Note to others: To edit the paths in nano I had to use the command with sudo as follows (you'll be prompted for your computer password--which is not echoed to the screen as you type it):
sudo nano /etc/paths

As per the homebrew instructions that appeared in my Console I had to install the appropriate version of Command Line Tools for Xcode and XQuartz 2.7.4 too.

Any chance of rolling this into an install package that doesn't require any command line interaction?
« Last Edit: June 07, 2013, 03:56:22 AM by bitbutter »

pa

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: BitMessage.app for Mac OS X & How To
« Reply #2 on: June 08, 2013, 05:35:52 PM »
This didn't work for me, unfortunately. I'm running 10.8.3.
When I double click the Bitmessage.app, nothing happens at all.

I tried to follow gnumac's instructions. Brew doctor reports no problems.


EDIT 7/14/2013: Actually, it works now. I tried to run it from a Command window and noticed an error message mentioning that a database file already exists. So I deleted the PyMessage directory from my Application Support directory. Then I ran it again from the Command window and it worked. I then clicked on the Bismessage.app icon and that also works.  Thanks!!
« Last Edit: July 14, 2013, 07:10:52 PM by pa »
BM-2DBhYvSSK8MNLhEsX8eGW53gSdqnMuX4oV

mft

  • Newbie
  • *
  • Posts: 46
  • Karma: +0/-1
    • View Profile
Re: BitMessage.app for Mac OS X & How To
« Reply #3 on: June 11, 2013, 12:07:18 AM »
I started with this other one but yours sounds easier.  I got to the third step https://bitmessage.org/forum/index.php/topic,1451.0.html - how do I remove what I did there so it doesn't mess up future installations? 

mft

  • Newbie
  • *
  • Posts: 46
  • Karma: +0/-1
    • View Profile
Re: BitMessage.app for Mac OS X & How To
« Reply #4 on: June 11, 2013, 05:17:58 AM »
Works flawlessly and without step #3.  MacBook pro OS X 10.8.3
« Last Edit: June 16, 2013, 07:26:11 AM by mft »

dindaadaa

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: BitMessage.app for Mac OS X & How To
« Reply #5 on: June 19, 2013, 12:26:43 AM »
i'm on 10.8.4 and i'm having a problem:

Problem: The version of SQLite you have cannot store Null values. Please download and install the latest revision of your version of Python (for example, the latest Python 2.7 revision) and try again.
PyBitmessage will now exit very abruptly. You may now see threading errors related to this abrupt exit but the problem you need to solve is related to SQLite.

python version is 2.7.2, how do i upgrade?? 

sorry i'm not too skilled in the cmd line.  any help is appreciated.

gnumac

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: BitMessage.app for Mac OS X & How To
« Reply #6 on: June 20, 2013, 05:04:15 AM »
i'm on 10.8.4 and i'm having a problem:

Problem: The version of SQLite you have cannot store Null values. Please download and install the latest revision of your version of Python (for example, the latest Python 2.7 revision) and try again.
PyBitmessage will now exit very abruptly. You may now see threading errors related to this abrupt exit but the problem you need to solve is related to SQLite.

python version is 2.7.2, how do i upgrade?? 

sorry i'm not too skilled in the cmd line.  any help is appreciated.

Updating SQLite3 and python will solve that.

I'm not sure how to explain it much differently than the instructions of the original post. First, you'll need to install Homebrew (See my original post for the one line to copy and past into terminal then press 'enter'. Or you can look at their website http://mxcl.github.io/homebrew or YouTube for instructions. It's literally just copying and pasting the one line into terminal and pressing 'enter'.) Then once you have Homebrew installed, you'll be able to continue to Step 2 of my instructions to install python, sqlite3, and openssl. To do that, you'll type "brew install python" into terminal, press enter, and wait until it's done in about 4 or 5 minutes. And do that for each of the items listed in step #2 of the original post, one at a time.

brew install openssl
brew link openssl --force
brew install python
brew link sqlite3 --force

Do you have Homebrew installed? Which part of the instructions have you made it to and gotten stuck on? Then I can try to help more.
Bitmessage OS X! http://sourceforge.net/projects/bitmessagemac/files/
BTC 1NU4Gcfy8ApFGCqfvpAfyqwYhsFbfdFzzL
LTC LZ7zLbQot8cRwT4tqkipsa9Gx3MPf53M1g

Thought Police

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: BitMessage.app for Mac OS X & How To
« Reply #7 on: June 20, 2013, 10:28:03 AM »
Works for me  8) Icon missing on the .app, but installation worked without issues. 10.8.4

babymonkey

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: BitMessage.app for Mac OS X & How To
« Reply #8 on: June 22, 2013, 09:36:08 PM »
I can't get past install of homebrew:

Failed during: Error: /usr/bin/xcode-select returned unexpected error. init -q

Any suggestions?

gnumac

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: BitMessage.app for Mac OS X & How To
« Reply #9 on: June 23, 2013, 08:02:14 PM »
I can't get past install of homebrew:

Failed during: Error: /usr/bin/xcode-select returned unexpected error. init -q

Any suggestions?

hmm Do you have xcode installed? If not, I'd try installing either "xcode command line tools" or "xcode". You can search for "xcode command line tools" here: https://developer.apple.com/downloads (requires an apple account). Or can download xcode here: http://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12  Then try install Homebrew again. I think Homebrew depends upon it. Source: http://apple.stackexchange.com/questions/77416/error-while-installing-homebrew-on-lion

@all
I wrote Apple suggesting that they ship updated python, sqlite, and opensll. If they do, then we'll eventually be able to skip the Homebrew nonsense and have a simple app, just download and click. In time...
Bitmessage OS X! http://sourceforge.net/projects/bitmessagemac/files/
BTC 1NU4Gcfy8ApFGCqfvpAfyqwYhsFbfdFzzL
LTC LZ7zLbQot8cRwT4tqkipsa9Gx3MPf53M1g

babymonkey

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: BitMessage.app for Mac OS X & How To
« Reply #10 on: June 27, 2013, 09:26:39 PM »

hmm Do you have xcode installed? If not, I'd try installing either "xcode command line tools" or "xcode". You can search for "xcode command line tools" here: https://developer.apple.com/downloads (requires an apple account). Or can download xcode here: http://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12  Then try install Homebrew again. I think Homebrew depends upon it. Source: http://apple.stackexchange.com/questions/77416/error-while-installing-homebrew-on-lion

This worked to install homebrew and no errors.

Skipped step 3 and clicked bitmessage and it crashed without ever seeing a window, "bitmessagemain quit unexpectedly."

Did step 3 and same thing, "bitmessagemain quit unexpectedly."

Lengthy crash report, but this may be of interest:
Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000

Any ideas would be appreciated.

gnumac

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: BitMessage.app for Mac OS X & How To
« Reply #11 on: June 30, 2013, 06:25:34 PM »
This worked to install homebrew and no errors.

Skipped step 3 and clicked bitmessage and it crashed without ever seeing a window, "bitmessagemain quit unexpectedly."

Did step 3 and same thing, "bitmessagemain quit unexpectedly."

Lengthy crash report, but this may be of interest:
Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000

Any ideas would be appreciated.

A google search shows that EXC_BAD_ACCESS may mean you have a bad RAM module, or it could be a corrupted kernel cache file that needs to be deleted, or maybe something else. It's not possible to know without seeing more of the crash report.

Were you able to install everything in Step 2 of the original post successfully? You could also try running "brew doctor", doing anything it recommends and then repeating the install of items in Step 2.
Bitmessage OS X! http://sourceforge.net/projects/bitmessagemac/files/
BTC 1NU4Gcfy8ApFGCqfvpAfyqwYhsFbfdFzzL
LTC LZ7zLbQot8cRwT4tqkipsa9Gx3MPf53M1g

mft

  • Newbie
  • *
  • Posts: 46
  • Karma: +0/-1
    • View Profile
Re: BitMessage.app for Mac OS X & How To
« Reply #12 on: July 21, 2013, 04:18:44 AM »
I'm trying to run the latest versions of Bitmessage since it's been updated and I'm getting "You shoulod use python 2.7.5 or greater.".  However, when I try "brew install pyhton" I get "Warning: python-2.7.5 already installed" 

Can anybody help me to rectify this?

Doing step 3 above and moving /usr/local/bin to the top of the list in paths did not help.

Thanks.

Are you planning to update the package above with the latest version anytime soon?
« Last Edit: July 21, 2013, 04:37:20 AM by mft »

gnumac

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: BitMessage.app for Mac OS X & How To
« Reply #13 on: July 25, 2013, 07:25:38 PM »
@all, Please use this new OS X app bundle instead of the above: https://bitmessage.org/forum/index.php/topic,2761.0.html 

It is a stand alone version that should work without Homebrew. Just download the DMG linked in the post above and click the app to launch. It's tested to work on 10.8.4 and may not work on older OS X versions. But at least it's a standalone app finally.

p.s. Anybody with older OS X versions who doesn't want to upgrade, the best bet to get Bitmessage working for you is to follow the homebrew directions in this thread's original post, make sure you have python 2.7.5 ("python -V"), and then open terminal and type "python /the/path/to/bitmessagemain.py" (give it the correct path) and press enter. If the combination works (it may not), bitmessage will launch. If it doesn't work, time to upgrade OS X.
Bitmessage OS X! http://sourceforge.net/projects/bitmessagemac/files/
BTC 1NU4Gcfy8ApFGCqfvpAfyqwYhsFbfdFzzL
LTC LZ7zLbQot8cRwT4tqkipsa9Gx3MPf53M1g