Monday, June 30, 2014

Use Firefox Safari & Chrome with Tor for Mac OS X | Video Tutorial


How to build Tor from source and install it so you can proxy your web browsers through it.


If you receive the following error, 
checking for libevent directory... configure: WARNING: Could not find a linkable libevent.  If you have it installed somewhere unusual, you can specify an explicit path using --with-libevent-dir
configure: error: Missing libraries; unable to proceed.
It means that it could not find the program libevent, to fix this you just need to install libevent in the same way you are installing Tor, then go through the steps with Tor again. To install libevent:

  1. Download the newest source from http://libevent.org/
  2. Extract it just like you extracted Tor, then change to the extracted directory
  3. Type: ./configure && make
  4. Type: sudo make install
If you are getting no compiler found errors, or when trying to install libevent, if you get an openssl error, try typing this in terminal
xcode-select --install 
and install the command line tools by clicking install on the prompt.









(This should fix an errors related to missing the /urs/include directory in OS X 10.11)

13 comments:

  1. ./configure is not in the file libevent-release-1.4.15-stable

    ReplyDelete
  2. 1. It's not letting me put in password after "sudo make install"
    2. What is password

    ReplyDelete
    Replies
    1. You may not be on an account that is allowed to sudo. Is it even asking for a password? Try installing it from an administrator account.

      Delete
  3. 1.) not letting me put in password after "Sudo make install" (I'm pressing keys but it's not typing anything)
    2.) what is password

    ReplyDelete
  4. tbh i see i have the same error as most users but i wanted to start fresh so i trashed everything and started new with tor borwser i then followed the tor expert guides next which led me to download macports and xcode ect after that i followed steps given in the video how to install tor proxy for mac os x... by you garrett.. who im kidding boss mmm then i got that error of missing libevent so i downloaded it and installed it exactly like the tar successfully but didnt know how to switch directory so i closed it and redid the whole process of the tar -tor... which brought me back to the part where i use ./configure & still it said libevent is missing ?? :( lol so i tried xcode --install which installed but i just feel stuck what could be wrong i feel determined to successfully achieve the tut pls respond

    ReplyDelete
  5. hey man, tnQ for your video, is there any way to connect every applications to the tor ??
    i know some ways from outside of host os but is there any way from inside of macOS?

    ReplyDelete
    Replies
    1. Setting the OS to use the proxy (as I think I show in the video,) will make almost everything go through Tor. The things that don't (if there are any,) can't be changed unless you do it from outside the OS.

      Delete
  6. while installing libevent here is problem :fatal error: 'openssl/bio.h' file not found how to fix?

    ReplyDelete
    Replies
    1. If you google the error it looks like you may be able to install it and force the location. However a simpler method may be to install/use brew. http://stackoverflow.com/questions/33165174/fatal-error-openssl-bio-h-file-not-found

      Delete
  7. i've googled the the error and installed it, but the problem wasn't solved. while installing libevent terminal wrote me this:
    Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries

    Generally there are no consequences of this for you. If you build your
    own software and it requires this formula, you'll need to add to your
    build variables:

    LDFLAGS: -L/usr/local/opt/openssl/lib
    CPPFLAGS: -I/usr/local/opt/openssl/includ

    So, how should i add to my build this flags?
    Thanx for your help.

    ReplyDelete
    Replies
    1. I wonder if you just build and install openssl if that will work. You can type openssl in terminal to see if it is installed. I suggest asking your question here http://apple.stackexchange.com/

      Delete
    2. I'm having issues installing it on a new system, I built and installed a new version of openssl and used ./configure --with-openssl-dir=/usr/local/bin/openssl to tell it where to find it but I still received errors (different from yours but still.) So I tried using macports (ports and brew will install it but I don't like to use them as they aren't usually as up to date as possible,) following this https://www.torproject.org/docs/tor-doc-osx.html.en it seemed to install but I couldn't run it by typing tor. There seems to be some issue not related to $PATH but nevertheless, if I change to the /opt/local/bin/ directory (cd /opt/local/bin/) and run ./tor everything works. Also, I believe this is the current version or Tor.

      Delete
    3. When I would type tor I would get the following error, -bash: /usr/local/bin/tor: No such file or directory so I fixed this by creating a symlink to the bin with `ln -s /opt/local/bin/tor /usr/local/bin/tor` now everything works like it should. What a hassle!

      Delete