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:
- Download the newest source from http://libevent.org/
- Extract it just like you extracted Tor, then change to the extracted directory
- Type: ./configure && make
- 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
(This should fix an errors related to missing the /urs/include directory in OS X 10.11)
xcode-select --installand 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)
Have a video request? Let me know: https://www.youtube.com/user/GarrettFogerlie/discussion
./configure is not in the file libevent-release-1.4.15-stable
ReplyDelete1. It's not letting me put in password after "sudo make install"
ReplyDelete2. What is password
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.
Delete1.) not letting me put in password after "Sudo make install" (I'm pressing keys but it's not typing anything)
ReplyDelete2.) what is password
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
ReplyDeletehey man, tnQ for your video, is there any way to connect every applications to the tor ??
ReplyDeletei know some ways from outside of host os but is there any way from inside of macOS?
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.
Deletewhile installing libevent here is problem :fatal error: 'openssl/bio.h' file not found how to fix?
ReplyDeleteIf 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
Deletei've googled the the error and installed it, but the problem wasn't solved. while installing libevent terminal wrote me this:
ReplyDeleteApple 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.
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/
DeleteI'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.
DeleteWhen 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!
DeleteI downloaded and extracted the libevent file as instructed but am still getting the original problem when trying to complete the tor extraction. Help?
ReplyDelete