Welcome, Guest. Please login or register.

Author Topic: Installing on Mac OS X.  (Read 7049 times)

teebs

  • Newbie
  • *
  • Posts: 1
  • Karma: +2/-0
    • View Profile
Installing on Mac OS X.
« on: March 24, 2013, 11:13:31 PM »
I just wanted to make a quick how to for folks struggling with installing 0.2.7 on OS X.

I used Homebrew, and I recommend you use it to. http://mxcl.github.com/homebrew/

Next, I just ran:

Code: [Select]
$ git clone https://github.com/Bitmessage/PyBitmessage.git
Go into the directory Git creates. You'll need to install two dependencies, PyQt and OpenSSL.

PyQT is easy. Just run:

Code: [Select]
$ brew install pyqt
This should set you up fine. If you're having trouble, use the last line Homebrew spits out to update your PYTHONPATH so Python can find PyQT. If that doesn't work, consider changing your PATH to include Homebrew's copies of programs before the default OS X copies. You can then brew your own Python, too. You can change your path like so:

Code: [Select]
$ export PATH=/usr/local/bin:$PATH
Next is the tricky part: OpenSSL. OS X's OpenSSL is too old to work with PyBitmessage, so you need to install your own.

Code: [Select]
$ brew install openssl
$ brew link openssl --force

You might also need to do the following if you're using a homebrewed Python:

Code: [Select]
$ brew link sqlite3 --force

EDIT: If you're using a version <= 0.2.7, you will need to apply this patch. If you're going off the most recent Github copy, you can skip the following step and just go ahead and run bitmessagemain.py.

Now comes the worst part. You have to apply the patch I attached. (I submitted a pull request to the main repository - hopefully soon you won't need to do this at all.) Download it into the directory PyBitmessage and run:

Code: [Select]
$ git apply mac.patch

This will make PyBitmessage treat your Mac as if it were a Linux machine (which, for our purposes, it is).

Then all you have to do is run bitmessagemain.py. You can do this from the command line or from Finder.

Happy messaging!
« Last Edit: March 24, 2013, 11:35:50 PM by teebs »

Vismund

  • Newbie
  • *
  • Posts: 20
  • Karma: +1/-0
    • View Profile
Re: Installing on Mac OS X.
« Reply #1 on: March 24, 2013, 11:20:16 PM »
Thanks! I'm sure Mac users will find this helpful.  :)

deg0nz

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Installing on Mac OS X.
« Reply #2 on: March 27, 2013, 06:08:43 AM »
Thank you very much for this tutorial.
Got it finally running on Mountain lion..

I had to install a newer Python version than the one provided by OS X and linked it with homebrew.


If anyone wanna message me: BM-oqRWyPaFvVynrWE7jVR8bEGKaEwXFNWFL

EDIT:
I don't know why, but everytime I want to start the bitmessagemain.py I have to export the PATH(like it's shown above) and the PYTHONPATH(like homebrew spitted it out) to make it work.
The system seems to forget the exports.. Can anyone tell me if this is the standard case on OS X?

(If I don't do the exports, the bitmessagemain.py is not able to find PyQt)

I made a startup script to handle exports but I'm not sure if this is the correct solution.
« Last Edit: March 27, 2013, 08:10:23 AM by deg0nz »

Ruhe

  • Guest
Re: Installing on Mac OS X.
« Reply #3 on: March 29, 2013, 01:34:33 PM »
Hello teebs,

thanks for sharing!

It's running on OS X 10.8.3 here now, but still a lot of work compared with the Windows version of BM (single executable).
Let's hope there will be an official, easier to install/use Mac version soon.

In about 40% of all starts I have the problem that the client shows the red icon (it keeps red) and after some minutes its process (Python) is in the state "Not responding".
- OpenSSL 1.0.1e
- Python 2.7.3
- SQLite 3.7.16
« Last Edit: March 29, 2013, 02:06:21 PM by Ruhe »

Ruhe

  • Guest
Re: Installing on Mac OS X.
« Reply #4 on: March 29, 2013, 03:55:20 PM »
I made a startup script to handle exports but I'm not sure if this is the correct solution.

It's one solution, the cleanest in my opinion - I did it the same way (a separate startup script)

Code: [Select]
export PATH=/usr/local/bin:$PATH
export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH

cd ~/PyBitmessage/
nohup python bitmessagemain.py &

sd

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Installing on Mac OS X.
« Reply #5 on: April 10, 2013, 07:43:27 AM »
hi there.

i packed a selfcontaining Bitmessage.app v0.2.7 for mac. tested only on 10.7.5.
more testing appriciated. no warranty.

download: http://hochladen.to/files/VvTbvQV1365593773.html

--
contact: BM-oqYXuuWAc8mrJWSNPbjeBekwtfTAhfcZm
« Last Edit: April 10, 2013, 09:57:12 AM by sd »

Ruhe

  • Guest
Re: Installing on Mac OS X.
« Reply #6 on: April 10, 2013, 07:44:02 AM »
Meanwhile I love it to use the cutting-edge source code version of Bitmessage.

Ruhe

  • Guest
Re: Installing on Mac OS X.
« Reply #7 on: April 10, 2013, 08:33:43 AM »
i packed a selfcontaining Bitmessage.app v0.2.7 for mac. tested only on 10.7.5.
more testing appriciated. no warranty.

Download mirror (SHA1: 9427b367a241eb8da589551c12e349537c4f7fdd)

Untested, use at your own risk!
« Last Edit: April 10, 2013, 09:14:12 AM by Ruhe »

invious

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Installing on Mac OS X.
« Reply #8 on: May 06, 2013, 05:12:14 PM »
Can someone please resolve PyQT on Homebrew, as well as create a Formula for Bitmessage? I am trying but do not think I have the skills yet. Would really love to use Bitmessage ASAP on Mac OS

timw4mail

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Installing on Mac OS X.
« Reply #9 on: May 07, 2013, 08:36:07 AM »
As someone who has MacPorts installed, it's rather difficult to install HomeBrew safely.

Does anyone have the knowledge to make a build script with static dependencies, so that we can actually have an official Mac Binary?

jashan

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Installing on Mac OS X.
« Reply #10 on: May 08, 2013, 09:44:58 AM »
i packed a selfcontaining Bitmessage.app v0.2.7 for mac. tested only on 10.7.5.
more testing appriciated. no warranty.

download: http://hochladen.to/files/VvTbvQV1365593773.html

Download mirror (SHA1: 9427b367a241eb8da589551c12e349537c4f7fdd)

Thank you for creating the package and mirroring the download link - but for me, both currently don't work :-(

An official binary would be very very very much appreciated ;-)

dokument

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 488
  • Karma: +37/-0
    • View Profile
Re: Installing on Mac OS X.
« Reply #11 on: May 08, 2013, 12:11:51 PM »
BM-2cTtoitr47Q7weyKr9pFX363YBRMQfBWzt

bytemaster

  • Newbie
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: Installing on Mac OS X.
« Reply #12 on: May 14, 2013, 04:47:17 PM »
I created a .dmg containing a bundle that 'works for me' on 10.7.5:  http://the-iland.net/static/downloads/BitMessage.dmg

Let me know if you have any problems... it is based upon the latest github pull. 


Message me at:  BM-GtTTNSzxRFdsVsgsuyWj4j4LsUZ1xob1

mft

  • Newbie
  • *
  • Posts: 46
  • Karma: +0/-1
    • View Profile
Re: Installing on Mac OS X.
« Reply #13 on: June 09, 2013, 06:43:53 AM »
I created a .dmg containing a bundle that 'works for me' on 10.7.5:  http://the-iland.net/static/downloads/BitMessage.dmg

Let me know if you have any problems... it is based upon the latest github pull. 


Message me at:  BM-GtTTNSzxRFdsVsgsuyWj4j4LsUZ1xob1

Is this latest version?  Anyone try on 10.8.x?

I started following the instructions above (stupidly without reading all the way through).  This is more BS than I want to deal with.  I got to the point of "brew install pyqt" but I'm bailing out here.  How do I remove what I've done so far? 


olabs

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Installing on Mac OS X.
« Reply #14 on: July 25, 2013, 09:08:42 AM »
Trying the dmg package on my MAC with 10.6.8 Build 10K549
got the folllowing message
 
25.07.13 15:05:01   [0x0-0x3cf3cf].org.pythonmac.unspecified.bitmessagemain[4061]   (On Linux) Couldn't find and load the OpenSSL library. You must install it. If you believe that you already have it installed, this exception information might be of use:
25.07.13 15:05:01   [0x0-0x3cf3cf].org.pythonmac.unspecified.bitmessagemain[4061]   argvemulator warning: fetching events failed
25.07.13 15:05:01   [0x0-0x3cf3cf].org.pythonmac.unspecified.bitmessagemain[4061]   Traceback (most recent call last):
25.07.13 15:05:01   [0x0-0x3cf3cf].org.pythonmac.unspecified.bitmessagemain[4061]     File "/Volumes/BitMessage/bitmessagemain.app/Contents/Resources/__boot__.py", line 316, in <module>
25.07.13 15:05:01   [0x0-0x3cf3cf].org.pythonmac.unspecified.bitmessagemain[4061]       _run()
25.07.13 15:05:01   [0x0-0x3cf3cf].org.pythonmac.unspecified.bitmessagemain[4061]     File "/Volumes/BitMessage/bitmessagemain.app/Contents/Resources/__boot__.py", line 311, in _run
25.07.13 15:05:01   [0x0-0x3cf3cf].org.pythonmac.unspecified.bitmessagemain[4061]       exec(compile(source, path, 'exec'), globals(), globals())
25.07.13 15:05:01   [0x0-0x3cf3cf].org.pythonmac.unspecified.bitmessagemain[4061]     File "/Volumes/BitMessage/bitmessagemain.app/Contents/Resources/bitmessagemain.py", line 24, in <module>
25.07.13 15:05:01   [0x0-0x3cf3cf].org.pythonmac.unspecified.bitmessagemain[4061]       from addresses import *
25.07.13 15:05:01   [0x0-0x3cf3cf].org.pythonmac.unspecified.bitmessagemain[4061]     File "addresses.pyc", line 3, in <module>
25.07.13 15:05:01   [0x0-0x3cf3cf].org.pythonmac.unspecified.bitmessagemain[4061]     File "pyelliptic/__init__.pyc", line 16, in <module>
25.07.13 15:05:01   [0x0-0x3cf3cf].org.pythonmac.unspecified.bitmessagemain[4061]     File "pyelliptic/openssl.pyc", line 433, in <module>
25.07.13 15:05:01   [0x0-0x3cf3cf].org.pythonmac.unspecified.bitmessagemain[4061]     File "pyelliptic/openssl.pyc", line 292, in __init__
25.07.13 15:05:01   [0x0-0x3cf3cf].org.pythonmac.unspecified.bitmessagemain[4061]     File "ctypes/__init__.pyc", line 378, in __getattr__
25.07.13 15:05:01   [0x0-0x3cf3cf].org.pythonmac.unspecified.bitmessagemain[4061]     File "ctypes/__init__.pyc", line 383, in __getitem__
25.07.13 15:05:01   [0x0-0x3cf3cf].org.pythonmac.unspecified.bitmessagemain[4061]   AttributeError: dlsym(0x1001e1090, PKCS5_PBKDF2_HMAC): symbol not found
25.07.13 15:05:01   bitmessagemain[4061]   bitmessagemain Error